Class 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 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 Row:

    BEAM_ROW: ROW

    FAMILY: ROW<[columnName ARRAY or VALUE]+>

    VALUE:ROW_CELL or Schema type except for: ARRAY, DECIMAL, ITERABLE, MAP, ROW

    ROW_CELL: ROW]>

    Note: ARRAY is not supported for now.

    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class org.apache.beam.sdk.transforms.PTransform

        name, resourceHints
    • 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)  
      • Methods inherited from class org.apache.beam.sdk.transforms.PTransform

        compose, compose, getAdditionalInputs, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, populateDisplayData, setResourceHints, toString, validate, validate
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • BigtableRowToBeamRow

        public BigtableRowToBeamRow​(org.apache.beam.sdk.schemas.Schema schema)
    • 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 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>>