Package io.pravega.connectors.flink
Class FlinkPravegaOutputFormat.Builder<T>
- java.lang.Object
-
- io.pravega.connectors.flink.AbstractWriterBuilder<FlinkPravegaOutputFormat.Builder<T>>
-
- io.pravega.connectors.flink.FlinkPravegaOutputFormat.Builder<T>
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- FlinkPravegaOutputFormat<T>
public static class FlinkPravegaOutputFormat.Builder<T> extends AbstractWriterBuilder<FlinkPravegaOutputFormat.Builder<T>>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlinkPravegaOutputFormat<T>
build()
Builds theFlinkPravegaOutputFormat
.protected FlinkPravegaOutputFormat.Builder<T>
builder()
FlinkPravegaOutputFormat.Builder<T>
withEventRouter(PravegaEventRouter<T> eventRouter)
Sets the event router.FlinkPravegaOutputFormat.Builder<T>
withSerializationSchema(org.apache.flink.api.common.serialization.SerializationSchema<T> serializationSchema)
Sets the serialization schema.-
Methods inherited from class io.pravega.connectors.flink.AbstractWriterBuilder
enableMetrics, forStream, forStream, getPravegaConfig, isMetricsEnabled, resolveStream, withPravegaConfig
-
-
-
-
Method Detail
-
withSerializationSchema
public FlinkPravegaOutputFormat.Builder<T> withSerializationSchema(org.apache.flink.api.common.serialization.SerializationSchema<T> serializationSchema)
Sets the serialization schema.- Parameters:
serializationSchema
- The serialization schema- Returns:
- A builder to configure and create a batch writer.
-
withEventRouter
public FlinkPravegaOutputFormat.Builder<T> withEventRouter(PravegaEventRouter<T> eventRouter)
Sets the event router.- Parameters:
eventRouter
- the event router which produces a key per event.- Returns:
- A builder to configure and create a batch writer.
-
builder
protected FlinkPravegaOutputFormat.Builder<T> builder()
- Specified by:
builder
in classAbstractWriterBuilder<FlinkPravegaOutputFormat.Builder<T>>
-
build
public FlinkPravegaOutputFormat<T> build()
Builds theFlinkPravegaOutputFormat
.- Returns:
- An instance of
FlinkPravegaOutputFormat
-
-