Class NullColumn
- java.lang.Object
-
- org.apache.iotdb.tsfile.read.common.block.column.NullColumn
-
-
Constructor Summary
Constructors Constructor Description NullColumn(int positionCount)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Columncreate(TSDataType dataType, int positionCount)TSDataTypegetDataType()Get the data type.ColumnEncodinggetEncoding()Get the encoding for this column.intgetInstanceSize()intgetPositionCount()Returns the number of positions in this block.ColumngetRegion(int positionOffset, int length)Returns a column starting at the specified position and extends for the specified length.longgetRetainedSizeInBytes()Returns the retained size of this column in memory, including over-allocations.boolean[]isNull()Returns the array to determine whether each position of the column is null or not.booleanisNull(int position)Is the specified position null?booleanmayHaveNull()Is it possible the column may have a null value? If false, the column cannot contain a null, but if true, the column may or may not have a null.voidreverse()reverse the columnColumnsubColumn(int fromIndex)This method will create a temporary view of origin column, which will reuse the array of column but with different array offset.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.iotdb.tsfile.read.common.block.column.Column
getBinaries, getBinary, getBoolean, getBooleans, getDouble, getDoubles, getFloat, getFloats, getInt, getInts, getLong, getLongs, getObject, getObjects, getTsPrimitiveType
-
-
-
-
Method Detail
-
getDataType
public TSDataType getDataType()
Description copied from interface:ColumnGet the data type.- Specified by:
getDataTypein interfaceColumn
-
getEncoding
public ColumnEncoding getEncoding()
Description copied from interface:ColumnGet the encoding for this column.- Specified by:
getEncodingin interfaceColumn
-
mayHaveNull
public boolean mayHaveNull()
Description copied from interface:ColumnIs it possible the column may have a null value? If false, the column cannot contain a null, but if true, the column may or may not have a null.- Specified by:
mayHaveNullin interfaceColumn
-
isNull
public boolean isNull(int position)
Description copied from interface:ColumnIs the specified position null?
-
isNull
public boolean[] isNull()
Description copied from interface:ColumnReturns the array to determine whether each position of the column is null or not.
-
getPositionCount
public int getPositionCount()
Description copied from interface:ColumnReturns the number of positions in this block.- Specified by:
getPositionCountin interfaceColumn
-
getRetainedSizeInBytes
public long getRetainedSizeInBytes()
Description copied from interface:ColumnReturns the retained size of this column in memory, including over-allocations. This method is called from the inner most execution loop and must be fast.- Specified by:
getRetainedSizeInBytesin interfaceColumn
-
getRegion
public Column getRegion(int positionOffset, int length)
Description copied from interface:ColumnReturns a column starting at the specified position and extends for the specified length. The specified region must be entirely contained within this column.The region can be a view over this column. If this column is released, the region column may also be released. If the region column is released, this block may also be released.
-
subColumn
public Column subColumn(int fromIndex)
Description copied from interface:ColumnThis method will create a temporary view of origin column, which will reuse the array of column but with different array offset.
-
reverse
public void reverse()
Description copied from interface:Columnreverse the column
-
create
public static Column create(TSDataType dataType, int positionCount)
-
getInstanceSize
public int getInstanceSize()
- Specified by:
getInstanceSizein interfaceColumn
-
-