Class BoundedSourceP<T>
- java.lang.Object
-
- com.hazelcast.jet.core.AbstractProcessor
-
- org.apache.beam.runners.jet.processors.BoundedSourceP<T>
-
- All Implemented Interfaces:
com.hazelcast.jet.core.Processor,com.hazelcast.jet.Traverser
public class BoundedSourceP<T> extends com.hazelcast.jet.core.AbstractProcessor implements com.hazelcast.jet.TraverserJetProcessorimplementation for reading from a bounded Beam source.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleancomplete()protected voidinit(com.hazelcast.jet.core.Processor.Context context)booleanisCooperative()java.lang.Objectnext()static <T> com.hazelcast.jet.core.ProcessorMetaSuppliersupplier(org.apache.beam.sdk.io.BoundedSource<T> boundedSource, org.apache.beam.runners.core.construction.SerializablePipelineOptions options, org.apache.beam.sdk.coders.Coder outputCoder, java.lang.String ownerId)-
Methods inherited from class com.hazelcast.jet.core.AbstractProcessor
emitFromTraverser, emitFromTraverser, emitFromTraverser, emitFromTraverserToSnapshot, flatMapper, flatMapper, flatMapper, getLogger, getOutbox, init, process, restoreFromSnapshot, restoreFromSnapshot, tryEmit, tryEmit, tryEmit, tryEmitToSnapshot, tryProcess, tryProcess0, tryProcess1, tryProcess2, tryProcess3, tryProcess4, tryProcessWatermark
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
init
protected void init(@Nonnull com.hazelcast.jet.core.Processor.Context context) throws java.lang.Exception- Overrides:
initin classcom.hazelcast.jet.core.AbstractProcessor- Throws:
java.lang.Exception
-
next
public java.lang.Object next()
- Specified by:
nextin interfacecom.hazelcast.jet.Traverser<T>
-
complete
public boolean complete()
- Specified by:
completein interfacecom.hazelcast.jet.core.Processor
-
isCooperative
public boolean isCooperative()
- Specified by:
isCooperativein interfacecom.hazelcast.jet.core.Processor
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacecom.hazelcast.jet.core.Processor- Throws:
java.lang.Exception
-
supplier
public static <T> com.hazelcast.jet.core.ProcessorMetaSupplier supplier(org.apache.beam.sdk.io.BoundedSource<T> boundedSource, org.apache.beam.runners.core.construction.SerializablePipelineOptions options, org.apache.beam.sdk.coders.Coder outputCoder, java.lang.String ownerId)
-
-