Package org.apache.beam.sdk.values
Class RowWithStorage
- java.lang.Object
-
- org.apache.beam.sdk.values.Row
-
- org.apache.beam.sdk.values.RowWithStorage
-
- All Implemented Interfaces:
java.io.Serializable
@Experimental(SCHEMAS) public class RowWithStorage extends Row
Concrete subclass ofRow
that explicitly stores all fields of the row.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.beam.sdk.values.Row
Row.Builder, Row.Equals, Row.FieldValueBuilder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getFieldCount()
Return the size of data fields.<T extends @Nullable java.lang.Object>
TgetValue(int fieldIdx)
Get value by field index,ClassCastException
is thrown if schema doesn't match.java.util.List<@Nullable java.lang.Object>
getValues()
Return the list of raw unmodified data values to enable 0-copy code.-
Methods inherited from class org.apache.beam.sdk.values.Row
equals, 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, hashCode, nullRow, toRow, toString, toString, withSchema
-
-
-
-
Method Detail
-
getValue
public <T extends @Nullable java.lang.Object> T getValue(int fieldIdx)
Description copied from class:Row
Get value by field index,ClassCastException
is thrown if schema doesn't match.
-
getValues
public java.util.List<@Nullable java.lang.Object> getValues()
Description copied from class:Row
Return the list of raw unmodified data values to enable 0-copy code.
-
getFieldCount
public int getFieldCount()
Description copied from class:Row
Return the size of data fields.- Specified by:
getFieldCount
in classRow
-
-