@Experimental(value=SCHEMAS) public class RowWithGetters extends Row
Row
that delegates to a set of provided FieldValueGetter
s.
This allows us to have Row
objects for which the actual storage is in another object.
For example, the user's type may be a POJO, in which case the provided getters will simple read
the appropriate fields from the POJO.
Row.Builder, Row.Equals, Row.FieldValueBuilder
Modifier and Type | Method and Description |
---|---|
boolean |
equals(@Nullable java.lang.Object o) |
int |
getFieldCount()
Return the size of data fields.
|
java.util.List<FieldValueGetter> |
getGetters() |
java.lang.Object |
getGetterTarget() |
<T> T |
getValue(int fieldIdx)
Get value by field index,
ClassCastException is thrown if schema doesn't match. |
java.util.List<java.lang.Object> |
getValues()
Return the list of raw unmodified data values to enable 0-copy code.
|
int |
hashCode() |
fromRow, getArray, getArray, getBaseValue, getBaseValue, getBaseValue, getBaseValue, getBaseValues, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getDateTime, getDateTime, getDecimal, getDecimal, getDouble, getDouble, getFloat, getFloat, getInt16, getInt16, getInt32, getInt32, getInt64, getInt64, getIterable, getIterable, getLogicalTypeValue, getLogicalTypeValue, getMap, getMap, getRow, getRow, getSchema, getString, getString, getValue, nullRow, toRow, toString, toString, withSchema
public <T> T getValue(int fieldIdx)
Row
ClassCastException
is thrown if schema doesn't match.public int getFieldCount()
Row
getFieldCount
in class Row
@Internal public java.util.List<java.lang.Object> getValues()
public java.util.List<FieldValueGetter> getGetters()
public java.lang.Object getGetterTarget()