blob: 39e5bae9f1c407b37054135a8a83bffb4d391c25 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.flink.table.dataformat.vector;
import org.apache.flink.util.TimeConvertUtils;
/**
* This class represents a nullable int column vector.
* This class will be used for operations on all time types
* The vector[] field is public by design for high-performance access in the inner
* loop of query execution.
*/
public class TimeColumnVector extends IntegerColumnVector {
/**
* Don't use this except for testing purposes.
*
* @param len the number of rows
*/
public TimeColumnVector(int len) {
super(len);
}
@Override
public Object get(int index) {
return TimeConvertUtils.internalToTime(vector[index]);
}
}