Package org.apache.beam.sdk.values
Class RowWithGetters<T extends @NonNull Object>
java.lang.Object
org.apache.beam.sdk.values.Row
org.apache.beam.sdk.values.RowWithGetters<T>
- All Implemented Interfaces:
Serializable
A Concrete subclass of
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.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.beam.sdk.values.Row
Row.Builder, Row.Equals, Row.FieldValueBuilder
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Return the size of data fields.<W> W
getValue
(int fieldIdx) Get value by field index,ClassCastException
is thrown if schema doesn't match.Return the list of raw unmodified data values to enable 0-copy code.int
hashCode()
Methods inherited from class org.apache.beam.sdk.values.Row
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, sorted, toCamelCase, toRow, toSnakeCase, toString, toString, withSchema
-
Method Details
-
getValue
public <W> W getValue(int fieldIdx) Description copied from class:Row
Get value by field index,ClassCastException
is thrown if schema doesn't match. -
getFieldCount
public int getFieldCount()Description copied from class:Row
Return the size of data fields.- Specified by:
getFieldCount
in classRow
-
getValues
Return the list of raw unmodified data values to enable 0-copy code. -
getGetters
-
getGetterTarget
-
equals
-
hashCode
public int hashCode()
-