Class EntityToRow

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

    public class EntityToRow
    extends org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<com.google.datastore.v1.Entity>,​org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.Row>>
    A PTransform to perform a conversion of Entity to Row.
    See Also:
    Serialized Form
    • Field Summary

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

        name, resourceHints
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static EntityToRow create​(org.apache.beam.sdk.schemas.Schema schema, java.lang.String keyField)
      Create a PTransform instance.
      org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.Row> expand​(org.apache.beam.sdk.values.PCollection<com.google.datastore.v1.Entity> 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
    • Method Detail

      • create

        public static EntityToRow create​(org.apache.beam.sdk.schemas.Schema schema,
                                         java.lang.String keyField)
        Create a PTransform instance.
        Parameters:
        schema - Schema of the target row.
        keyField - A name of the row field to store the Key in.
        Returns:
        PTransform instance for Entity to Row conversion.
      • expand

        public org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.Row> expand​(org.apache.beam.sdk.values.PCollection<com.google.datastore.v1.Entity> input)
        Specified by:
        expand in class org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<com.google.datastore.v1.Entity>,​org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.Row>>