public final class UpdatableRow extends Object implements BaseRow
Constructor and Description |
---|
UpdatableRow(BaseRow row,
int arity) |
Modifier and Type | Method and Description |
---|---|
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 ordinal)
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() |
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.
|
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 |
setField(int ordinal,
Object value) |
void |
setFloat(int ordinal,
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 |
setShort(int ordinal,
short value)
Set short value.
|
void |
setTimestamp(int ordinal,
SqlTimestamp value,
int precision)
Set Timestamp value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get
public UpdatableRow(BaseRow row, int arity)
public BaseRow getRow()
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 boolean getBoolean(int ordinal)
TypeGetterSetters
getBoolean
in interface TypeGetterSetters
public byte getByte(int ordinal)
TypeGetterSetters
getByte
in interface TypeGetterSetters
public short getShort(int ordinal)
TypeGetterSetters
getShort
in interface TypeGetterSetters
public int getInt(int ordinal)
TypeGetterSetters
getInt
in interface TypeGetterSetters
public long getLong(int ordinal)
TypeGetterSetters
getLong
in interface TypeGetterSetters
public float getFloat(int ordinal)
TypeGetterSetters
getFloat
in interface TypeGetterSetters
public double getDouble(int ordinal)
TypeGetterSetters
getDouble
in interface TypeGetterSetters
public byte[] getBinary(int ordinal)
TypeGetterSetters
getBinary
in interface TypeGetterSetters
public BinaryString getString(int ordinal)
TypeGetterSetters
getString
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 BaseArray getArray(int ordinal)
TypeGetterSetters
getArray
in interface TypeGetterSetters
public BaseMap getMap(int ordinal)
TypeGetterSetters
getMap
in interface TypeGetterSetters
public void setNullAt(int ordinal)
TypeGetterSetters
setNullAt
in interface TypeGetterSetters
public void setBoolean(int ordinal, boolean value)
TypeGetterSetters
setBoolean
in interface TypeGetterSetters
public void setByte(int ordinal, byte value)
TypeGetterSetters
setByte
in interface TypeGetterSetters
public void setShort(int ordinal, short value)
TypeGetterSetters
setShort
in interface TypeGetterSetters
public void setInt(int ordinal, int value)
TypeGetterSetters
setInt
in interface TypeGetterSetters
public void setLong(int ordinal, long value)
TypeGetterSetters
setLong
in interface TypeGetterSetters
public void setFloat(int ordinal, float value)
TypeGetterSetters
setFloat
in interface TypeGetterSetters
public void setDouble(int ordinal, double value)
TypeGetterSetters
setDouble
in interface TypeGetterSetters
public void setDecimal(int ordinal, 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 void setField(int ordinal, Object value)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.