public interface TypeGetterSetters
There is only setter for the fixed-length type field, because the variable-length type
cannot be set to the binary format such as BinaryFormat
.
All the getXxx(int)
methods do not guarantee new object returned when every
time called.
Modifier and Type | Method and Description |
---|---|
static Object |
get(TypeGetterSetters row,
int ordinal,
LogicalType type) |
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 ordinal)
Get generic value, internal format is BinaryGeneric.
|
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.
|
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 i,
Decimal value,
int precision)
Set the decimal column value.
|
void |
setDouble(int ordinal,
double value)
Set double value.
|
void |
setFloat(int ordinal,
float value)
Set float value.
|
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 |
setShort(int ordinal,
short value)
Set short value.
|
boolean isNullAt(int ordinal)
void setNullAt(int ordinal)
boolean getBoolean(int ordinal)
byte getByte(int ordinal)
short getShort(int ordinal)
int getInt(int ordinal)
long getLong(int ordinal)
float getFloat(int ordinal)
double getDouble(int ordinal)
BinaryString getString(int ordinal)
Decimal getDecimal(int ordinal, int precision, int scale)
<T> BinaryGeneric<T> getGeneric(int ordinal)
byte[] getBinary(int ordinal)
BaseArray getArray(int ordinal)
BaseMap getMap(int ordinal)
BaseRow getRow(int ordinal, int numFields)
void setBoolean(int ordinal, boolean value)
void setByte(int ordinal, byte value)
void setShort(int ordinal, short value)
void setInt(int ordinal, int value)
void setLong(int ordinal, long value)
void setFloat(int ordinal, float value)
void setDouble(int ordinal, double value)
void setDecimal(int i, Decimal value, int precision)
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.
static Object get(TypeGetterSetters row, int ordinal, LogicalType type)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.