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 Row
is mapped to Beam Row
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 BEAM_ROW: ROW FAMILY: ROW<[columnName ARRAY VALUE:ROW_CELL or ROW_CELL: ROW Note: ARRAYRow
:
Schema
type except for: ARRAY, DECIMAL, ITERABLE, MAP, ROW
Constructor and Description |
---|
BigtableRowToBeamRow(org.apache.beam.sdk.schemas.Schema schema) |
Modifier and Type | Method and 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) |
addAnnotation, compose, compose, getAdditionalInputs, getAnnotations, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, populateDisplayData, setResourceHints, toString, validate, validate
public BigtableRowToBeamRow(org.apache.beam.sdk.schemas.Schema schema)
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)
expand
in class 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>>