@AutoService(value=SchemaTransformProvider.class) public class PubsubLiteWriteSchemaTransformProvider extends TypedSchemaTransformProvider<PubsubLiteWriteSchemaTransformProvider.PubsubLiteWriteSchemaTransformConfiguration>
Modifier and Type | Class and Description |
---|---|
static class |
PubsubLiteWriteSchemaTransformProvider.ErrorCounterFn |
static class |
PubsubLiteWriteSchemaTransformProvider.PubsubLiteWriteSchemaTransformConfiguration |
static class |
PubsubLiteWriteSchemaTransformProvider.SetUuidFromPubSubMessage |
Modifier and Type | Field and Description |
---|---|
static TupleTag<Row> |
ERROR_TAG |
static TupleTag<com.google.cloud.pubsublite.proto.PubSubMessage> |
OUTPUT_TAG |
static java.util.Set<java.lang.String> |
SUPPORTED_FORMATS |
static java.lang.String |
SUPPORTED_FORMATS_STR |
Constructor and Description |
---|
PubsubLiteWriteSchemaTransformProvider() |
Modifier and Type | Method and Description |
---|---|
protected @UnknownKeyFor @NonNull @Initialized java.lang.Class<PubsubLiteWriteSchemaTransformProvider.PubsubLiteWriteSchemaTransformConfiguration> |
configurationClass() |
@UnknownKeyFor @NonNull @Initialized SchemaTransform |
from(PubsubLiteWriteSchemaTransformProvider.PubsubLiteWriteSchemaTransformConfiguration configuration)
Produce a SchemaTransform from ConfigT.
|
static SerializableFunction<Row,byte[]> |
getRowToRawBytesFunction(java.lang.String rowFieldName) |
static Schema |
getSchemaWithoutAttributes(Schema inputSchema,
java.util.List<java.lang.String> attributes) |
@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 SUPPORTED_FORMATS_STR
public static final java.util.Set<java.lang.String> SUPPORTED_FORMATS
public static final TupleTag<com.google.cloud.pubsublite.proto.PubSubMessage> OUTPUT_TAG
public PubsubLiteWriteSchemaTransformProvider()
protected @UnknownKeyFor @NonNull @Initialized java.lang.Class<PubsubLiteWriteSchemaTransformProvider.PubsubLiteWriteSchemaTransformConfiguration> configurationClass()
public @UnknownKeyFor @NonNull @Initialized SchemaTransform from(PubsubLiteWriteSchemaTransformProvider.PubsubLiteWriteSchemaTransformConfiguration configuration)
TypedSchemaTransformProvider
InvalidConfigurationException
or a
InvalidSchemaException
.public static Schema getSchemaWithoutAttributes(Schema inputSchema, java.util.List<java.lang.String> attributes)
public static SerializableFunction<Row,byte[]> getRowToRawBytesFunction(java.lang.String rowFieldName)
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