public abstract class ObjectArrayRow extends Object implements BaseRow
Constructor and Description |
---|
ObjectArrayRow(int arity) |
Modifier and Type | Method and Description |
---|---|
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()
BaseRow
public byte getHeader()
BaseRow
public void setHeader(byte header)
BaseRow
public boolean isNullAt(int ordinal)
TypeGetterSetters
isNullAt
in interface TypeGetterSetters
public void setNullAt(int ordinal)
TypeGetterSetters
setNullAt
in interface TypeGetterSetters
public void setDecimal(int i, Decimal value, int precision)
TypeGetterSetters
Note: 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
in interface TypeGetterSetters
public void setTimestamp(int ordinal, SqlTimestamp value, int precision)
TypeGetterSetters
Note: 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
in interface TypeGetterSetters
public BinaryString getString(int ordinal)
TypeGetterSetters
getString
in interface TypeGetterSetters
public byte[] getBinary(int ordinal)
TypeGetterSetters
getBinary
in interface TypeGetterSetters
public BaseArray getArray(int ordinal)
TypeGetterSetters
getArray
in interface TypeGetterSetters
public BaseMap getMap(int ordinal)
TypeGetterSetters
getMap
in interface TypeGetterSetters
public Decimal getDecimal(int ordinal, int precision, int scale)
TypeGetterSetters
getDecimal
in interface TypeGetterSetters
public SqlTimestamp getTimestamp(int ordinal, int precision)
TypeGetterSetters
getTimestamp
in interface TypeGetterSetters
public <T> BinaryGeneric<T> getGeneric(int ordinal)
TypeGetterSetters
getGeneric
in interface TypeGetterSetters
public BaseRow getRow(int ordinal, int numFields)
TypeGetterSetters
getRow
in interface TypeGetterSetters
public boolean equalsWithoutHeader(BaseRow o)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.