Class TypedSchemaTransformProvider<ConfigT>
- java.lang.Object
-
- org.apache.beam.sdk.schemas.transforms.TypedSchemaTransformProvider<ConfigT>
-
- All Implemented Interfaces:
SchemaTransformProvider
@Internal @Experimental(SCHEMAS) public abstract class TypedSchemaTransformProvider<ConfigT> extends java.lang.Object implements SchemaTransformProvider
LikeSchemaTransformProvider
except uses a configuration object instead of Schema and Row.ConfigT should be available in the SchemaRegistry.
Internal only: This interface is actively being worked on and it will likely change as we provide implementations for more standard Beam transforms. We provide no backwards compatibility guarantees and it should not be implemented outside of the Beam repository.
-
-
Constructor Summary
Constructors Constructor Description TypedSchemaTransformProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.lang.Class<ConfigT>
configurationClass()
Schema
configurationSchema()
Returns the expected schema of the configuration object.java.util.Optional<java.util.List<java.lang.String>>
dependencies(Row configuration, PipelineOptions options)
List the dependencies needed for this transform.protected abstract SchemaTransform
from(ConfigT configuration)
Produce a SchemaTransform from ConfigT.SchemaTransform
from(Row configuration)
Produce a SchemaTransform some transform-specific configuration object.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.beam.sdk.schemas.transforms.SchemaTransformProvider
identifier, inputCollectionNames, outputCollectionNames
-
-
-
-
Method Detail
-
configurationClass
protected abstract java.lang.Class<ConfigT> configurationClass()
-
from
protected abstract SchemaTransform from(ConfigT configuration)
Produce a SchemaTransform from ConfigT. Can throw aInvalidConfigurationException
or aInvalidSchemaException
.
-
configurationSchema
public final Schema configurationSchema()
Description copied from interface:SchemaTransformProvider
Returns the expected schema of the configuration object. Note this is distinct from the schema of the transform itself.- Specified by:
configurationSchema
in interfaceSchemaTransformProvider
-
from
public final SchemaTransform from(Row configuration)
Description copied from interface:SchemaTransformProvider
Produce a SchemaTransform some transform-specific configuration object. Can throw aInvalidConfigurationException
or aInvalidSchemaException
.- Specified by:
from
in interfaceSchemaTransformProvider
-
dependencies
public final java.util.Optional<java.util.List<java.lang.String>> dependencies(Row configuration, PipelineOptions options)
Description copied from interface:SchemaTransformProvider
List the dependencies needed for this transform. Jars from classpath are used by default when Optional.empty() is returned.- Specified by:
dependencies
in interfaceSchemaTransformProvider
-
-