Package cz.o2.proxima.beam.util.state
Class ExternalStateExpander
- java.lang.Object
-
- cz.o2.proxima.beam.util.state.ExternalStateExpander
-
public class ExternalStateExpander extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.beam.sdk.Pipeline
expand(org.apache.beam.sdk.Pipeline pipeline, org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PBegin,org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<java.lang.String,StateValue>>> inputs, org.joda.time.Instant stateWriteInstant, UnaryFunction<org.joda.time.Instant,org.joda.time.Instant> nextFlushInstantFn, org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<java.lang.String,StateValue>>,org.apache.beam.sdk.values.PDone> stateSink)
Expand the given @{link Pipeline} to support external state store and restore
-
-
-
Method Detail
-
expand
public static org.apache.beam.sdk.Pipeline expand(org.apache.beam.sdk.Pipeline pipeline, org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PBegin,org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<java.lang.String,StateValue>>> inputs, org.joda.time.Instant stateWriteInstant, UnaryFunction<org.joda.time.Instant,org.joda.time.Instant> nextFlushInstantFn, org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<java.lang.String,StateValue>>,org.apache.beam.sdk.values.PDone> stateSink) throws java.io.IOException
Expand the given @{link Pipeline} to support external state store and restore- Parameters:
pipeline
- the Pipeline to expandinputs
- transform to read inputsstateWriteInstant
- the instant at which write of the last state occurrednextFlushInstantFn
- function that returns instant of next flush from current timestateSink
- transform to store outputs- Throws:
java.io.IOException
-
-