public class TiBlockColumnVector extends TiColumnVector
type
Constructor and Description |
---|
TiBlockColumnVector(CHType type) |
TiBlockColumnVector(CHType type,
ByteBuffer nullMap,
ByteBuffer offsets,
ByteBuffer data,
int numOfRows)
Sets up the data type of this column vector.
|
TiBlockColumnVector(CHType type,
ByteBuffer nullMap,
ByteBuffer data,
int numOfRows,
int fixedLength) |
TiBlockColumnVector(CHType type,
ByteBuffer data,
int numOfRows,
int fixedLength) |
Modifier and Type | Method and Description |
---|---|
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.
|
int |
sizeAt(int i) |
dataType, getBooleans, getBytes, getDoubles, getFloats, getInts, getLongs, getShorts, numOfRows
public TiBlockColumnVector(CHType type, ByteBuffer data, int numOfRows, int fixedLength)
public TiBlockColumnVector(CHType type)
public TiBlockColumnVector(CHType type, ByteBuffer nullMap, ByteBuffer data, int numOfRows, int fixedLength)
public TiBlockColumnVector(CHType type, ByteBuffer nullMap, ByteBuffer offsets, ByteBuffer data, int numOfRows)
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 AutoCloseable
close
in class TiColumnVector
public boolean hasNull()
hasNull
in class TiColumnVector
public int numNulls()
numNulls
in class TiColumnVector
public boolean isNullAt(int rowId)
isNullAt
in class TiColumnVector
public boolean getBoolean(int rowId)
getBoolean
in class TiColumnVector
public byte getByte(int rowId)
getByte
in class TiColumnVector
public short getShort(int rowId)
getShort
in class TiColumnVector
public int getInt(int rowId)
getInt
in class TiColumnVector
public long getLong(int rowId)
getLong
in class TiColumnVector
public float getFloat(int rowId)
getFloat
in class TiColumnVector
public double getDouble(int rowId)
getDouble
in class TiColumnVector
public BigDecimal getDecimal(int rowId, int precision, int scale)
getDecimal
in class TiColumnVector
public int sizeAt(int i)
public String getUTF8String(int rowId)
getUTF8String
in class TiColumnVector
public byte[] getBinary(int rowId)
getBinary
in class TiColumnVector
protected TiColumnVector getChild(int ordinal)
getChild
in class TiColumnVector
Copyright © 2024 PingCAP. All rights reserved.