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 FieldValueGetters.
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 TypeMethodDescriptionbooleanintReturn the size of data fields.<W> WgetValue(int fieldIdx) Get value by field index,ClassCastExceptionis thrown if schema doesn't match.Return the list of raw unmodified data values to enable 0-copy code.inthashCode()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:RowGet value by field index,ClassCastExceptionis thrown if schema doesn't match. -
getFieldCount
public int getFieldCount()Description copied from class:RowReturn the size of data fields.- Specified by:
getFieldCountin classRow
-
getValues
Return the list of raw unmodified data values to enable 0-copy code. -
getGetters
-
getGetterTarget
-
equals
-
hashCode
public int hashCode()
-