public abstract class ObjectArrayRow extends Object implements BaseRow
| 构造器和说明 |
|---|
ObjectArrayRow(int arity) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object o) |
boolean |
equalsWithoutHeader(BaseRow 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[].
|
Decimal |
getDecimal(int ordinal,
int precision,
int scale)
Get decimal value, internal format is Decimal.
|
<T> BinaryGeneric<T> |
getGeneric(int ordinal)
Get generic value, internal format is BinaryGeneric.
|
byte |
getHeader()
The header represents the type of this Row.
|
BaseMap |
getMap(int ordinal)
Get map value, internal format is BaseMap.
|
BaseRow |
getRow(int ordinal,
int numFields)
Get row value, internal format is BaseRow.
|
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 |
setDecimal(int i,
Decimal value,
int precision)
Set the decimal column value.
|
void |
setHeader(byte header)
Set the byte header.
|
void |
setNullAt(int ordinal)
Set null to this field.
|
void |
setTimestamp(int ordinal,
SqlTimestamp value,
int precision)
Set Timestamp value.
|
String |
toString() |
protected final Object[] fields
public int getArity()
BaseRowpublic byte getHeader()
BaseRowpublic void setHeader(byte header)
BaseRowpublic boolean isNullAt(int ordinal)
TypeGetterSettersisNullAt 在接口中 TypeGetterSetterspublic void setNullAt(int ordinal)
TypeGetterSetterssetNullAt 在接口中 TypeGetterSetterspublic void setDecimal(int i,
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 在接口中 TypeGetterSetterspublic BinaryString getString(int ordinal)
TypeGetterSettersgetString 在接口中 TypeGetterSetterspublic byte[] getBinary(int ordinal)
TypeGetterSettersgetBinary 在接口中 TypeGetterSetterspublic BaseArray getArray(int ordinal)
TypeGetterSettersgetArray 在接口中 TypeGetterSetterspublic BaseMap getMap(int ordinal)
TypeGetterSettersgetMap 在接口中 TypeGetterSetterspublic Decimal getDecimal(int ordinal, int precision, int scale)
TypeGetterSettersgetDecimal 在接口中 TypeGetterSetterspublic SqlTimestamp getTimestamp(int ordinal, int precision)
TypeGetterSettersgetTimestamp 在接口中 TypeGetterSetterspublic <T> BinaryGeneric<T> getGeneric(int ordinal)
TypeGetterSettersgetGeneric 在接口中 TypeGetterSetterspublic BaseRow getRow(int ordinal, int numFields)
TypeGetterSettersgetRow 在接口中 TypeGetterSetterspublic boolean equalsWithoutHeader(BaseRow o)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.