@AutoService(value=SchemaTransformProvider.class) public class PubsubLiteReadSchemaTransformProvider extends TypedSchemaTransformProvider<PubsubLiteReadSchemaTransformProvider.PubsubLiteReadSchemaTransformConfiguration>
Modifier and Type | Class and Description |
---|---|
static class |
PubsubLiteReadSchemaTransformProvider.ErrorFn |
static class |
PubsubLiteReadSchemaTransformProvider.PubsubLiteReadSchemaTransformConfiguration |
Modifier and Type | Field and Description |
---|---|
static TupleTag<Row> |
ERROR_TAG |
static TupleTag<Row> |
OUTPUT_TAG |
static java.util.Set<java.lang.String> |
VALID_DATA_FORMATS |
static java.lang.String |
VALID_FORMATS_STR |
Constructor and Description |
---|
PubsubLiteReadSchemaTransformProvider() |
Modifier and Type | Method and Description |
---|---|
static Schema |
buildSchemaWithAttributes(Schema schema,
java.util.List<java.lang.String> attributes,
java.lang.String attributesMap)
Builds a new
Schema by adding additional optional attributes and map field to the
provided schema. |
protected @UnknownKeyFor @NonNull @Initialized java.lang.Class<PubsubLiteReadSchemaTransformProvider.PubsubLiteReadSchemaTransformConfiguration> |
configurationClass() |
@UnknownKeyFor @NonNull @Initialized SchemaTransform |
from(PubsubLiteReadSchemaTransformProvider.PubsubLiteReadSchemaTransformConfiguration configuration)
Produce a SchemaTransform from ConfigT.
|
static SerializableFunction<byte[],Row> |
getRawBytesToRowFunction(Schema rawSchema) |
static SerializableFunction<com.google.cloud.pubsublite.proto.SequencedMessage,Uuid> |
getUuidFromMessage(java.lang.String attributeId) |
@UnknownKeyFor @NonNull @Initialized java.lang.String |
identifier()
Returns an id that uniquely represents this transform.
|
@UnknownKeyFor @NonNull @Initialized java.util.List<java.lang.String> |
inputCollectionNames()
Returns the input collection names of this transform.
|
@UnknownKeyFor @NonNull @Initialized java.util.List<java.lang.String> |
outputCollectionNames()
Returns the output collection names of this transform.
|
configurationSchema, dependencies, from
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
description
public static final java.lang.String VALID_FORMATS_STR
public static final java.util.Set<java.lang.String> VALID_DATA_FORMATS
public PubsubLiteReadSchemaTransformProvider()
protected @UnknownKeyFor @NonNull @Initialized java.lang.Class<PubsubLiteReadSchemaTransformProvider.PubsubLiteReadSchemaTransformConfiguration> configurationClass()
public @UnknownKeyFor @NonNull @Initialized SchemaTransform from(PubsubLiteReadSchemaTransformProvider.PubsubLiteReadSchemaTransformConfiguration configuration)
TypedSchemaTransformProvider
InvalidConfigurationException
or a
InvalidSchemaException
.public static Schema buildSchemaWithAttributes(Schema schema, java.util.List<java.lang.String> attributes, java.lang.String attributesMap)
Schema
by adding additional optional attributes and map field to the
provided schema.schema
- The base schema to which additional attributes and map field will be added.attributes
- A list of optional attribute names to be added as STRING fields to the
schema.attributesMap
- The name of the optional map field to be added to the schema. If empty, no
map field will be added.Schema
with the specified attributes and an optional map field.java.lang.IllegalArgumentException
- if the schema is null or if any attribute name in the
attributes list is null or empty.public static SerializableFunction<byte[],Row> getRawBytesToRowFunction(Schema rawSchema)
public static SerializableFunction<com.google.cloud.pubsublite.proto.SequencedMessage,Uuid> getUuidFromMessage(java.lang.String attributeId)
public @UnknownKeyFor @NonNull @Initialized java.lang.String identifier()
SchemaTransformProvider
public @UnknownKeyFor @NonNull @Initialized java.util.List<java.lang.String> inputCollectionNames()
SchemaTransformProvider
public @UnknownKeyFor @NonNull @Initialized java.util.List<java.lang.String> outputCollectionNames()
SchemaTransformProvider