public final class ColumnarRow extends Object implements BaseRow
VectorizedColumnBatch.| 构造器和说明 |
|---|
ColumnarRow() |
ColumnarRow(VectorizedColumnBatch vectorizedColumnBatch) |
ColumnarRow(VectorizedColumnBatch vectorizedColumnBatch,
int rowId) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object o) |
int |
getArity()
Get the number of fields in the BaseRow.
|
BaseArray |
getArray(int ordinal)
Get array value, internal format is BaseArray.
|
byte[] |
getBinary(int ordinal)
Get binary value, internal format is byte[].
|
boolean |
getBoolean(int ordinal)
Get boolean value.
|
byte |
getByte(int ordinal)
Get byte value.
|
Decimal |
getDecimal(int ordinal,
int precision,
int scale)
Get decimal value, internal format is Decimal.
|
double |
getDouble(int ordinal)
Get double value.
|
float |
getFloat(int ordinal)
Get float value.
|
<T> BinaryGeneric<T> |
getGeneric(int pos)
Get generic value, internal format is BinaryGeneric.
|
byte |
getHeader()
The header represents the type of this Row.
|
int |
getInt(int ordinal)
Get int value.
|
long |
getLong(int ordinal)
Get long value.
|
BaseMap |
getMap(int ordinal)
Get map value, internal format is BaseMap.
|
BaseRow |
getRow(int ordinal,
int numFields)
Get row value, internal format is BaseRow.
|
short |
getShort(int ordinal)
Get short value.
|
BinaryString |
getString(int ordinal)
Get string value, internal format is BinaryString.
|
SqlTimestamp |
getTimestamp(int ordinal,
int precision)
Get Timestamp value, internal format is SqlTimestamp.
|
int |
hashCode() |
boolean |
isNullAt(int ordinal)
Because the specific row implementation such as BinaryRow uses the binary format.
|
void |
setBoolean(int ordinal,
boolean value)
Set boolean value.
|
void |
setByte(int ordinal,
byte value)
Set byte value.
|
void |
setDecimal(int ordinal,
Decimal value,
int precision)
Set the decimal column value.
|
void |
setDouble(int ordinal,
double value)
Set double value.
|
void |
setFloat(int pos,
float value)
Set float value.
|
void |
setHeader(byte header)
Set the byte header.
|
void |
setInt(int ordinal,
int value)
Set int value.
|
void |
setLong(int ordinal,
long value)
Set long value.
|
void |
setNullAt(int ordinal)
Set null to this field.
|
void |
setRowId(int rowId) |
void |
setShort(int ordinal,
short value)
Set short value.
|
void |
setTimestamp(int ordinal,
SqlTimestamp value,
int precision)
Set Timestamp value.
|
void |
setVectorizedColumnBatch(VectorizedColumnBatch vectorizedColumnBatch) |
getpublic ColumnarRow()
public ColumnarRow(VectorizedColumnBatch vectorizedColumnBatch)
public ColumnarRow(VectorizedColumnBatch vectorizedColumnBatch, int rowId)
public void setVectorizedColumnBatch(VectorizedColumnBatch vectorizedColumnBatch)
public void setRowId(int rowId)
public byte getHeader()
BaseRowpublic void setHeader(byte header)
BaseRowpublic int getArity()
BaseRowpublic boolean isNullAt(int ordinal)
TypeGetterSettersisNullAt 在接口中 TypeGetterSetterspublic boolean getBoolean(int ordinal)
TypeGetterSettersgetBoolean 在接口中 TypeGetterSetterspublic byte getByte(int ordinal)
TypeGetterSettersgetByte 在接口中 TypeGetterSetterspublic short getShort(int ordinal)
TypeGetterSettersgetShort 在接口中 TypeGetterSetterspublic int getInt(int ordinal)
TypeGetterSettersgetInt 在接口中 TypeGetterSetterspublic long getLong(int ordinal)
TypeGetterSettersgetLong 在接口中 TypeGetterSetterspublic float getFloat(int ordinal)
TypeGetterSettersgetFloat 在接口中 TypeGetterSetterspublic double getDouble(int ordinal)
TypeGetterSettersgetDouble 在接口中 TypeGetterSetterspublic BinaryString getString(int ordinal)
TypeGetterSettersgetString 在接口中 TypeGetterSetterspublic Decimal getDecimal(int ordinal, int precision, int scale)
TypeGetterSettersgetDecimal 在接口中 TypeGetterSetterspublic SqlTimestamp getTimestamp(int ordinal, int precision)
TypeGetterSettersgetTimestamp 在接口中 TypeGetterSetterspublic <T> BinaryGeneric<T> getGeneric(int pos)
TypeGetterSettersgetGeneric 在接口中 TypeGetterSetterspublic byte[] getBinary(int ordinal)
TypeGetterSettersgetBinary 在接口中 TypeGetterSetterspublic BaseRow getRow(int ordinal, int numFields)
TypeGetterSettersgetRow 在接口中 TypeGetterSetterspublic BaseArray getArray(int ordinal)
TypeGetterSettersgetArray 在接口中 TypeGetterSetterspublic BaseMap getMap(int ordinal)
TypeGetterSettersgetMap 在接口中 TypeGetterSetterspublic void setNullAt(int ordinal)
TypeGetterSetterssetNullAt 在接口中 TypeGetterSetterspublic void setBoolean(int ordinal,
boolean value)
TypeGetterSetterssetBoolean 在接口中 TypeGetterSetterspublic void setByte(int ordinal,
byte value)
TypeGetterSetterssetByte 在接口中 TypeGetterSetterspublic void setShort(int ordinal,
short value)
TypeGetterSetterssetShort 在接口中 TypeGetterSetterspublic void setInt(int ordinal,
int value)
TypeGetterSetterssetInt 在接口中 TypeGetterSetterspublic void setLong(int ordinal,
long value)
TypeGetterSetterssetLong 在接口中 TypeGetterSetterspublic void setFloat(int pos,
float value)
TypeGetterSetterssetFloat 在接口中 TypeGetterSetterspublic void setDouble(int ordinal,
double value)
TypeGetterSetterssetDouble 在接口中 TypeGetterSetterspublic void setDecimal(int ordinal,
Decimal value,
int precision)
TypeGetterSettersNote: Precision is compact: can call setNullAt when decimal is null. Precision is not compact: can not call setNullAt when decimal is null, must call setDecimal(i, null, precision) because we need update var-length-part.
setDecimal 在接口中 TypeGetterSetterspublic void setTimestamp(int ordinal,
SqlTimestamp value,
int precision)
TypeGetterSettersNote: If precision is compact: can call setNullAt when SqlTimestamp value is null. Otherwise: can not call setNullAt when SqlTimestamp value is null, must call setTimestamp(ordinal, null, precision) because we need to update var-length-part.
setTimestamp 在接口中 TypeGetterSettersCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.