Class BigtableRowToBeamRow
- java.lang.Object
-
- org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<com.google.bigtable.v2.Row>,org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.Row>>
-
- org.apache.beam.sdk.io.gcp.bigtable.BigtableRowToBeamRow
-
- All Implemented Interfaces:
java.io.Serializable
,org.apache.beam.sdk.transforms.display.HasDisplayData
public class BigtableRowToBeamRow extends org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<com.google.bigtable.v2.Row>,org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.Row>> implements java.io.Serializable
Bigtable reference: .Bigtable
Row
is mapped to BeamRow
in the following way:row: key, columnFamily[] -> BEAM_ROW
columnFamily: familyName, column[] -> FAMILY
column: columnQualifier, cell[] -> most recent cell or ARRAY
cell: value, timestampMicros, labels -> VALUE
Mapped Beam
Row
:BEAM_ROW: ROW
FAMILY: ROW<[columnName ARRAY
or VALUE]+> VALUE:ROW_CELL or
Schema
type except for: ARRAY, DECIMAL, ITERABLE, MAP, ROWROW_CELL: ROW
]> Note: ARRAY
is not supported for now. - See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BigtableRowToBeamRow(org.apache.beam.sdk.schemas.Schema schema)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.Row>
expand(org.apache.beam.sdk.values.PCollection<com.google.bigtable.v2.Row> input)
-
-
-
Method Detail
-
expand
public org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.Row> expand(org.apache.beam.sdk.values.PCollection<com.google.bigtable.v2.Row> input)
- Specified by:
expand
in classorg.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<com.google.bigtable.v2.Row>,org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.Row>>
-
-