public interface Column
| Modifier and Type | Method and Description |
|---|---|
default Binary |
getBinary(int position)
Gets a Binary at
position. |
default boolean |
getBoolean(int position)
Gets a boolean at
position. |
TSDataType |
getDataType()
Get the data type.
|
default double |
getDouble(int position)
Gets a double at
position. |
ColumnEncoding |
getEncoding()
Get the encoding for this column.
|
default float |
getFloat(int position)
Gets a float at
position. |
default int |
getInt(int position)
Gets a little endian int at
position. |
default long |
getLong(int position)
Gets a little endian long at
position. |
default Object |
getObject(int position)
Gets an Object at
position. |
int |
getPositionCount()
Returns the number of positions in this block.
|
Column |
getRegion(int positionOffset,
int length)
Returns a column starting at the specified position and extends for the specified length.
|
long |
getRetainedSizeInBytes()
Returns the retained size of this column in memory, including over-allocations.
|
default TsPrimitiveType |
getTsPrimitiveType(int position)
Gets a TsPrimitiveType at
position. |
boolean |
isNull(int position)
Is the specified position null?
|
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.
|
void |
reverse()
reverse the column
|
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.
|
TSDataType getDataType()
ColumnEncoding getEncoding()
default boolean getBoolean(int position)
position.default int getInt(int position)
position.default long getLong(int position)
position.default float getFloat(int position)
position.default double getDouble(int position)
position.default Binary getBinary(int position)
position.default Object getObject(int position)
position.default TsPrimitiveType getTsPrimitiveType(int position)
position.boolean mayHaveNull()
boolean isNull(int position)
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
invalidint getPositionCount()
long getRetainedSizeInBytes()
Column getRegion(int positionOffset, int length)
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.
Column subColumn(int fromIndex)
void reverse()
Copyright © 2022 The Apache Software Foundation. All rights reserved.