public class TiChunkColumnVector extends TiColumnVector
TiColumnVector. All data is stored in TiDB chunk format.type| Constructor and Description |
|---|
TiChunkColumnVector(DataType dataType,
int fixLength,
int numOfRows,
int numOfNulls,
byte[] nullBitMaps,
long[] offsets,
ByteBuffer data) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Cleans up memory for this column vector.
|
void |
free() |
byte[] |
getBinary(int rowId)
Returns the binary type value for rowId.
|
boolean |
getBoolean(int rowId)
Returns the boolean type value for rowId.
|
byte |
getByte(int rowId)
Returns the byte type value for rowId.
|
protected TiColumnVector |
getChild(int ordinal) |
BigDecimal |
getDecimal(int rowId,
int precision,
int scale)
Returns the decimal type value for rowId.
|
double |
getDouble(int rowId)
Returns the double type value for rowId.
|
float |
getFloat(int rowId)
Returns the float type value for rowId.
|
int |
getInt(int rowId)
Returns the int type value for rowId.
|
long |
getLong(int rowId)
Returns the long type value for rowId.
|
short |
getShort(int rowId)
Returns the short type value for rowId.
|
String |
getUTF8String(int rowId)
Returns the string type value for rowId.
|
boolean |
hasNull()
Returns true if this column vector contains any null values.
|
boolean |
isNullAt(int rowId)
Returns whether the value at rowId is NULL.
|
int |
numNulls()
Returns the number of nulls in this column vector.
|
String |
typeName() |
dataType, getBooleans, getBytes, getDoubles, getFloats, getInts, getLongs, getShorts, numOfRowspublic TiChunkColumnVector(DataType dataType, int fixLength, int numOfRows, int numOfNulls, byte[] nullBitMaps, long[] offsets, ByteBuffer data)
public final String typeName()
public void free()
public void close()
This overwrites `AutoCloseable.close` to remove the `throws` clause, as column vector is in-memory and we don't expect any exception to happen during closing.
close in interface AutoCloseableclose in class TiColumnVectorpublic boolean hasNull()
hasNull in class TiColumnVectorpublic int numNulls()
numNulls in class TiColumnVectorpublic boolean isNullAt(int rowId)
TiColumnVectorisNullAt in class TiColumnVectorpublic boolean getBoolean(int rowId)
getBoolean in class TiColumnVectorpublic byte getByte(int rowId)
TiColumnVectorgetByte in class TiColumnVectorpublic short getShort(int rowId)
TiColumnVectorgetShort in class TiColumnVectorpublic int getInt(int rowId)
TiColumnVectorgetInt in class TiColumnVectorpublic long getLong(int rowId)
TiColumnVectorgetLong in class TiColumnVectorpublic float getFloat(int rowId)
TiColumnVectorgetFloat in class TiColumnVectorpublic double getDouble(int rowId)
TiColumnVectorgetDouble in class TiColumnVectorpublic BigDecimal getDecimal(int rowId, int precision, int scale)
getDecimal in class TiColumnVectorpublic String getUTF8String(int rowId)
TiColumnVectorgetUTF8String in class TiColumnVectorpublic byte[] getBinary(int rowId)
getBinary in class TiColumnVectorprotected TiColumnVector getChild(int ordinal)
getChild in class TiColumnVectorCopyright © 2025 PingCAP. All rights reserved.