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| 构造器和说明 |
|---|
GenericRow(int arity) |
| 限定符和类型 | 方法和说明 |
|---|---|
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, toStringgetpublic boolean getBoolean(int ordinal)
TypeGetterSetterspublic byte getByte(int ordinal)
TypeGetterSetterspublic short getShort(int ordinal)
TypeGetterSetterspublic int getInt(int ordinal)
TypeGetterSetterspublic long getLong(int ordinal)
TypeGetterSetterspublic float getFloat(int ordinal)
TypeGetterSetterspublic double getDouble(int ordinal)
TypeGetterSetterspublic void setBoolean(int ordinal,
boolean value)
TypeGetterSetterspublic void setByte(int ordinal,
byte value)
TypeGetterSetterspublic void setShort(int ordinal,
short value)
TypeGetterSetterspublic void setInt(int ordinal,
int value)
TypeGetterSetterspublic void setLong(int ordinal,
long value)
TypeGetterSetterspublic void setFloat(int ordinal,
float value)
TypeGetterSetterspublic void setDouble(int ordinal,
double value)
TypeGetterSetterspublic 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.