public class GenericRow extends Object implements Row
Row| Constructor and Description |
|---|
GenericRow(StructType schema,
java.util.Map<Integer,Object> ordinalToValue) |
| Modifier and Type | Method and Description |
|---|---|
ArrayValue |
getArray(int ordinal)
Return array value of the column located at the given ordinal.
|
byte[] |
getBinary(int ordinal)
Return binary value of the column located at the given ordinal.
|
boolean |
getBoolean(int ordinal)
Return boolean value of the column located at the given ordinal.
|
byte |
getByte(int ordinal)
Return byte value of the column located at the given ordinal.
|
java.math.BigDecimal |
getDecimal(int ordinal)
Return decimal value of the column located at the given ordinal.
|
double |
getDouble(int ordinal)
Return double value of the column located at the given ordinal.
|
float |
getFloat(int ordinal)
Return float value of the column located at the given ordinal.
|
int |
getInt(int ordinal)
Return integer value of the column located at the given ordinal.
|
long |
getLong(int ordinal)
Return long value of the column located at the given ordinal.
|
MapValue |
getMap(int ordinal)
Return map value of the column located at the given ordinal.
|
StructType |
getSchema() |
short |
getShort(int ordinal)
Return short value of the column located at the given ordinal.
|
String |
getString(int ordinal)
Return string value of the column located at the given ordinal.
|
Row |
getStruct(int ordinal)
Return struct value of the column located at the given ordinal.
|
boolean |
isNullAt(int ordinal) |
public GenericRow(StructType schema, java.util.Map<Integer,Object> ordinalToValue)
schema - the schema of the rowordinalToValue - a mapping of column ordinal to objects; for each column the object must
be of the return type corresponding to the data type's getter method in the Row interfacepublic StructType getSchema()
public boolean isNullAt(int ordinal)
public boolean getBoolean(int ordinal)
RowgetBoolean in interface Rowpublic byte getByte(int ordinal)
Rowpublic short getShort(int ordinal)
Rowpublic int getInt(int ordinal)
Rowpublic long getLong(int ordinal)
Rowpublic float getFloat(int ordinal)
Rowpublic double getDouble(int ordinal)
Rowpublic String getString(int ordinal)
Rowpublic java.math.BigDecimal getDecimal(int ordinal)
RowgetDecimal in interface Rowpublic byte[] getBinary(int ordinal)
Rowpublic Row getStruct(int ordinal)
Rowpublic ArrayValue getArray(int ordinal)
Row