public final class GenericRow extends ObjectArrayRow
The fields in the Row can be accessed by position (zero-based) getInt(int)
.
And can update fields by setField(int, Object)
.
GenericRow is in principle serializable. However, it may contain non-serializable fields, in which case serialization will fail.
fields
Constructor and Description |
---|
GenericRow(int arity) |
Modifier and Type | Method and Description |
---|---|
static GenericRow |
copyReference(GenericRow row) |
boolean |
getBoolean(int ordinal)
Get boolean value.
|
byte |
getByte(int ordinal)
Get byte value.
|
double |
getDouble(int ordinal)
Get double value.
|
Object |
getField(int ordinal) |
float |
getFloat(int ordinal)
Get float value.
|
int |
getInt(int ordinal)
Get int value.
|
long |
getLong(int ordinal)
Get long value.
|
short |
getShort(int ordinal)
Get short value.
|
static GenericRow |
of(Object... values) |
void |
setBoolean(int ordinal,
boolean value)
Set boolean value.
|
void |
setByte(int ordinal,
byte value)
Set byte 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 |
setInt(int ordinal,
int value)
Set int value.
|
void |
setLong(int ordinal,
long value)
Set long value.
|
void |
setShort(int ordinal,
short value)
Set short value.
|
equals, equalsWithoutHeader, getArity, getArray, getBinary, getDecimal, getGeneric, getHeader, getMap, getRow, getString, getTimestamp, hashCode, isNullAt, setDecimal, setHeader, setNullAt, setTimestamp, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
get
public boolean getBoolean(int ordinal)
TypeGetterSetters
public byte getByte(int ordinal)
TypeGetterSetters
public short getShort(int ordinal)
TypeGetterSetters
public int getInt(int ordinal)
TypeGetterSetters
public long getLong(int ordinal)
TypeGetterSetters
public float getFloat(int ordinal)
TypeGetterSetters
public double getDouble(int ordinal)
TypeGetterSetters
public void setBoolean(int ordinal, boolean value)
TypeGetterSetters
public void setByte(int ordinal, byte value)
TypeGetterSetters
public void setShort(int ordinal, short value)
TypeGetterSetters
public void setInt(int ordinal, int value)
TypeGetterSetters
public void setLong(int ordinal, long value)
TypeGetterSetters
public void setFloat(int ordinal, float value)
TypeGetterSetters
public void setDouble(int ordinal, double value)
TypeGetterSetters
public void setField(int ordinal, Object value)
public Object getField(int ordinal)
public static GenericRow of(Object... values)
public static GenericRow copyReference(GenericRow row)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.