Class AvroSchemaIOProvider

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Schema configurationSchema()
      Returns the expected schema of the configuration object.
      org.apache.beam.sdk.io.AvroSchemaIOProvider.AvroSchemaIO from​(java.lang.String location, Row configuration, Schema dataSchema)
      Produce a SchemaIO given a String representing the data's location, the schema of the data that resides there, and some IO-specific configuration object.
      java.lang.String identifier()
      Returns an id that uniquely represents this IO.
      PCollection.IsBounded isBounded()  
      boolean requiresDataSchema()
      Indicates whether the dataSchema value is necessary.
      • Methods inherited from class java.lang.Object

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

      • AvroSchemaIOProvider

        public AvroSchemaIOProvider()
    • Method Detail

      • identifier

        public java.lang.String identifier()
        Returns an id that uniquely represents this IO.
        Specified by:
        identifier in interface SchemaIOProvider
      • configurationSchema

        public Schema configurationSchema()
        Returns the expected schema of the configuration object. Note this is distinct from the schema of the data source itself. No configuration expected for Avro.
        Specified by:
        configurationSchema in interface SchemaIOProvider
      • from

        public org.apache.beam.sdk.io.AvroSchemaIOProvider.AvroSchemaIO from​(java.lang.String location,
                                                                             Row configuration,
                                                                             Schema dataSchema)
        Produce a SchemaIO given a String representing the data's location, the schema of the data that resides there, and some IO-specific configuration object.
        Specified by:
        from in interface SchemaIOProvider