Class DataStoreV1SchemaIOProvider
java.lang.Object
org.apache.beam.sdk.io.gcp.datastore.DataStoreV1SchemaIOProvider
- All Implemented Interfaces:
SchemaIOProvider
@Internal
@AutoService(SchemaIOProvider.class)
public class DataStoreV1SchemaIOProvider
extends Object
implements SchemaIOProvider
An implementation of
SchemaIOProvider for reading and writing payloads with DatastoreIO.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn abstraction to create schema aware IOs. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the expected schema of the configuration object.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.Returns an id that uniquely represents this IO.booleanIndicates whether the dataSchema value is necessary.
-
Field Details
-
KEY_FIELD_PROPERTY
- See Also:
-
-
Constructor Details
-
DataStoreV1SchemaIOProvider
public DataStoreV1SchemaIOProvider()
-
-
Method Details
-
identifier
Returns an id that uniquely represents this IO.- Specified by:
identifierin interfaceSchemaIOProvider
-
configurationSchema
Returns the expected schema of the configuration object. Note this is distinct from the schema of the data source itself.Configuration Parameters:
- STRING keyField: The name of the Beam schema field to map the DataStore entity key.
Defaults to
__key__if not set or null.
- Specified by:
configurationSchemain interfaceSchemaIOProvider
- STRING keyField: The name of the Beam schema field to map the DataStore entity key.
Defaults to
-
from
public DataStoreV1SchemaIOProvider.DataStoreV1SchemaIO from(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:
fromin interfaceSchemaIOProvider
-
requiresDataSchema
public boolean requiresDataSchema()Description copied from interface:SchemaIOProviderIndicates whether the dataSchema value is necessary.- Specified by:
requiresDataSchemain interfaceSchemaIOProvider
-
isBounded
- Specified by:
isBoundedin interfaceSchemaIOProvider
-