Interface Column
-
public interface Column
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Binary[]getBinaries()Gets the Binary list.default BinarygetBinary(int position)Gets a Binary atposition.default booleangetBoolean(int position)Gets a boolean atposition.default boolean[]getBooleans()Gets the boolean array.TSDataTypegetDataType()Get the data type.default doublegetDouble(int position)Gets a double atposition.default double[]getDoubles()Gets the double array.ColumnEncodinggetEncoding()Get the encoding for this column.default floatgetFloat(int position)Gets a float atposition.default float[]getFloats()Gets the float array.intgetInstanceSize()default intgetInt(int position)Gets a little endian int atposition.default int[]getInts()Gets the little endian int array.default longgetLong(int position)Gets a little endian long atposition.default long[]getLongs()Gets the little endian long array.default ObjectgetObject(int position)Gets an Object atposition.default Object[]getObjects()Gets the Object array.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.default 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.
-
-
-
Method Detail
-
getDataType
TSDataType getDataType()
Get the data type.
-
getEncoding
ColumnEncoding getEncoding()
Get the encoding for this column.
-
getBoolean
default boolean getBoolean(int position)
Gets a boolean atposition.
-
getInt
default int getInt(int position)
Gets a little endian int atposition.
-
getLong
default long getLong(int position)
Gets a little endian long atposition.
-
getFloat
default float getFloat(int position)
Gets a float atposition.
-
getDouble
default double getDouble(int position)
Gets a double atposition.
-
getBinary
default Binary getBinary(int position)
Gets a Binary atposition.
-
getObject
default Object getObject(int position)
Gets an Object atposition.
-
getBooleans
default boolean[] getBooleans()
Gets the boolean array.
-
getInts
default int[] getInts()
Gets the little endian int array.
-
getLongs
default long[] getLongs()
Gets the little endian long array.
-
getFloats
default float[] getFloats()
Gets the float array.
-
getDoubles
default double[] getDoubles()
Gets the double array.
-
getBinaries
default Binary[] getBinaries()
Gets the Binary list.
-
getObjects
default Object[] getObjects()
Gets the Object array.
-
getTsPrimitiveType
default TsPrimitiveType getTsPrimitiveType(int position)
Gets a TsPrimitiveType atposition.
-
mayHaveNull
boolean mayHaveNull()
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.
-
isNull
boolean isNull(int position)
Is the specified position null?- Throws:
IllegalArgumentException- if this position is not valid. The method may return false without throwing exception when there are no nulls in the block, even if the position is invalid
-
isNull
boolean[] isNull()
Returns the array to determine whether each position of the column is null or not.
-
getPositionCount
int getPositionCount()
Returns the number of positions in this block.
-
getRetainedSizeInBytes
long getRetainedSizeInBytes()
Returns 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.
-
getRegion
Column getRegion(int positionOffset, int length)
Returns 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
Column subColumn(int fromIndex)
This method will create a temporary view of origin column, which will reuse the array of column but with different array offset.
-
reverse
void reverse()
reverse the column
-
getInstanceSize
int getInstanceSize()
-
-