Class BigtableIO.Write

  • All Implemented Interfaces:
    java.io.Serializable, org.apache.beam.sdk.transforms.display.HasDisplayData
    Enclosing class:
    BigtableIO

    public abstract static class BigtableIO.Write
    extends org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<com.google.protobuf.ByteString,​java.lang.Iterable<com.google.bigtable.v2.Mutation>>>,​org.apache.beam.sdk.values.PDone>
    A PTransform that writes to Google Cloud Bigtable. See the class-level Javadoc on BigtableIO for more information.
    See Also:
    BigtableIO, Serialized Form
    • Constructor Detail

      • Write

        public Write()
    • Method Detail

      • getBigtableOptions

        @Deprecated
        public @Nullable com.google.cloud.bigtable.config.BigtableOptions getBigtableOptions()
        Deprecated.
        will be replaced by bigtable options configurator.
        Returns the Google Cloud Bigtable instance being written to, and other parameters.
      • withTableId

        public BigtableIO.Write withTableId​(org.apache.beam.sdk.options.ValueProvider<java.lang.String> tableId)
        Returns a new BigtableIO.Write that will write to the specified table.

        Does not modify this object.

      • withTableId

        public BigtableIO.Write withTableId​(java.lang.String tableId)
        Returns a new BigtableIO.Write that will write to the specified table.

        Does not modify this object.

      • withoutValidation

        public BigtableIO.Write withoutValidation()
        Disables validation that the table being written to exists.
      • withEmulator

        public BigtableIO.Write withEmulator​(java.lang.String emulatorHost)
        Returns a new BigtableIO.Write that will use an official Bigtable emulator.

        This is used for testing.

      • expand

        public org.apache.beam.sdk.values.PDone expand​(org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<com.google.protobuf.ByteString,​java.lang.Iterable<com.google.bigtable.v2.Mutation>>> input)
        Specified by:
        expand in class org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<com.google.protobuf.ByteString,​java.lang.Iterable<com.google.bigtable.v2.Mutation>>>,​org.apache.beam.sdk.values.PDone>
      • validate

        public void validate​(org.apache.beam.sdk.options.PipelineOptions options)
        Overrides:
        validate in class org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<com.google.protobuf.ByteString,​java.lang.Iterable<com.google.bigtable.v2.Mutation>>>,​org.apache.beam.sdk.values.PDone>
      • populateDisplayData

        public void populateDisplayData​(org.apache.beam.sdk.transforms.display.DisplayData.Builder builder)
        Specified by:
        populateDisplayData in interface org.apache.beam.sdk.transforms.display.HasDisplayData
        Overrides:
        populateDisplayData in class org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<com.google.protobuf.ByteString,​java.lang.Iterable<com.google.bigtable.v2.Mutation>>>,​org.apache.beam.sdk.values.PDone>
      • toString

        public final java.lang.String toString()
        Overrides:
        toString in class org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<com.google.protobuf.ByteString,​java.lang.Iterable<com.google.bigtable.v2.Mutation>>>,​org.apache.beam.sdk.values.PDone>