public class TiRowColumnVector extends TiColumnVector
TiColumnVector. It is a faked column vector; the underlying data is
in row format.type| 构造器和说明 |
|---|
TiRowColumnVector(DataType type,
int colIdx,
Row[] rows,
int numOfRows)
Sets up the data type of this column vector.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Cleans up memory for this column vector.
|
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.
|
dataType, getBooleans, getBytes, getDoubles, getFloats, getInts, getLongs, getShorts, numOfRowspublic 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 在接口中 AutoCloseableclose 在类中 TiColumnVectorpublic boolean hasNull()
hasNull 在类中 TiColumnVectorpublic int numNulls()
numNulls 在类中 TiColumnVectorpublic boolean isNullAt(int rowId)
isNullAt 在类中 TiColumnVectorpublic boolean getBoolean(int rowId)
getBoolean 在类中 TiColumnVectorpublic byte getByte(int rowId)
getByte 在类中 TiColumnVectorpublic short getShort(int rowId)
getShort 在类中 TiColumnVectorpublic int getInt(int rowId)
getInt 在类中 TiColumnVectorpublic long getLong(int rowId)
getLong 在类中 TiColumnVectorpublic float getFloat(int rowId)
getFloat 在类中 TiColumnVectorpublic double getDouble(int rowId)
getDouble 在类中 TiColumnVectorpublic BigDecimal getDecimal(int rowId, int precision, int scale)
getDecimal 在类中 TiColumnVectorpublic String getUTF8String(int rowId)
getUTF8String 在类中 TiColumnVectorpublic byte[] getBinary(int rowId)
getBinary 在类中 TiColumnVectorprotected TiColumnVector getChild(int ordinal)
getChild 在类中 TiColumnVectorCopyright © 2023 PingCAP. All rights reserved.