| Constructor and Description |
|---|
RunLengthEncodedColumn(Column value,
int positionCount) |
| Modifier and Type | Method and Description |
|---|---|
Binary |
getBinary(int position)
Gets a Binary at
position. |
boolean |
getBoolean(int position)
Gets a boolean at
position. |
TSDataType |
getDataType()
Get the data type.
|
double |
getDouble(int position)
Gets a double at
position. |
ColumnEncoding |
getEncoding()
Get the encoding for this column.
|
float |
getFloat(int position)
Gets a float at
position. |
int |
getInt(int position)
Gets a little endian int at
position. |
long |
getLong(int position)
Gets a little endian long at
position. |
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.
|
TsPrimitiveType |
getTsPrimitiveType(int position)
Gets a TsPrimitiveType at
position. |
Column |
getValue() |
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.
|
public RunLengthEncodedColumn(Column value, int positionCount)
public Column getValue()
public TSDataType getDataType()
ColumngetDataType in interface Columnpublic ColumnEncoding getEncoding()
ColumngetEncoding in interface Columnpublic boolean getBoolean(int position)
Columnposition.getBoolean in interface Columnpublic int getInt(int position)
Columnposition.public long getLong(int position)
Columnposition.public float getFloat(int position)
Columnposition.public double getDouble(int position)
Columnposition.public Binary getBinary(int position)
Columnposition.public Object getObject(int position)
Columnposition.public TsPrimitiveType getTsPrimitiveType(int position)
Columnposition.getTsPrimitiveType in interface Columnpublic boolean mayHaveNull()
ColumnmayHaveNull in interface Columnpublic boolean isNull(int position)
Columnpublic int getPositionCount()
ColumngetPositionCount in interface Columnpublic long getRetainedSizeInBytes()
ColumngetRetainedSizeInBytes in interface Columnpublic Column getRegion(int positionOffset, int length)
ColumnThe 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.
public Column subColumn(int fromIndex)
ColumnCopyright © 2022 The Apache Software Foundation. All rights reserved.