@Internal @AutoService(value=SchemaIOProvider.class) public class DataStoreV1SchemaIOProvider extends java.lang.Object implements SchemaIOProvider
SchemaIOProvider
for reading and writing payloads with DatastoreIO
.Modifier and Type | Class and Description |
---|---|
static class |
DataStoreV1SchemaIOProvider.DataStoreV1SchemaIO
An abstraction to create schema aware IOs.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
KEY_FIELD_PROPERTY |
Constructor and Description |
---|
DataStoreV1SchemaIOProvider() |
Modifier and Type | Method and Description |
---|---|
Schema |
configurationSchema()
Returns the expected schema of the configuration object.
|
DataStoreV1SchemaIOProvider.DataStoreV1SchemaIO |
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.
|
public static final java.lang.String KEY_FIELD_PROPERTY
public java.lang.String identifier()
identifier
in interface SchemaIOProvider
public Schema configurationSchema()
Configuration Parameters:
__key__
if not set or null.
configurationSchema
in interface SchemaIOProvider
public DataStoreV1SchemaIOProvider.DataStoreV1SchemaIO from(java.lang.String location, Row configuration, Schema dataSchema)
from
in interface SchemaIOProvider
public boolean requiresDataSchema()
SchemaIOProvider
requiresDataSchema
in interface SchemaIOProvider
public PCollection.IsBounded isBounded()
isBounded
in interface SchemaIOProvider