Class BooleanColumn
- java.lang.Object
-
- org.apache.iotdb.tsfile.read.common.block.column.BooleanColumn
-
-
Field Summary
Fields Modifier and Type Field Description static intSIZE_IN_BYTES_PER_POSITION
-
Constructor Summary
Constructors Constructor Description BooleanColumn(int positionCount, java.util.Optional<boolean[]> valueIsNull, boolean[] values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetBoolean(int position)Gets a boolean atposition.boolean[]getBooleans()Gets the boolean array.TSDataTypegetDataType()Get the data type.ColumnEncodinggetEncoding()Get the encoding for this column.intgetInstanceSize()java.lang.ObjectgetObject(int position)Gets an Object atposition.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.TsPrimitiveTypegetTsPrimitiveType(int position)Gets a TsPrimitiveType atposition.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, getDouble, getDoubles, getFloat, getFloats, getInt, getInts, getLong, getLongs, getObjects
-
-
-
-
Field Detail
-
SIZE_IN_BYTES_PER_POSITION
public static final int SIZE_IN_BYTES_PER_POSITION
- See Also:
- Constant Field Values
-
-
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
-
getBoolean
public boolean getBoolean(int position)
Description copied from interface:ColumnGets a boolean atposition.- Specified by:
getBooleanin interfaceColumn
-
getBooleans
public boolean[] getBooleans()
Description copied from interface:ColumnGets the boolean array.- Specified by:
getBooleansin interfaceColumn
-
getObject
public java.lang.Object getObject(int position)
Description copied from interface:ColumnGets an Object atposition.
-
getTsPrimitiveType
public TsPrimitiveType getTsPrimitiveType(int position)
Description copied from interface:ColumnGets a TsPrimitiveType atposition.- Specified by:
getTsPrimitiveTypein 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
-
getInstanceSize
public int getInstanceSize()
- Specified by:
getInstanceSizein interfaceColumn
-
-