SourceFunction API, which is due to be
removed. Use the new Source API instead.@Deprecated public class FiniteTestSource<T> extends Object implements org.apache.flink.streaming.api.functions.source.SourceFunction<T>, org.apache.flink.api.common.state.CheckpointListener
This class was written to test the Bulk Writers used by the StreamingFileSink.
| Constructor and Description |
|---|
FiniteTestSource(java.util.function.BooleanSupplier couldExit,
Iterable<T> elements)
Deprecated.
|
FiniteTestSource(java.util.function.BooleanSupplier couldExit,
long waitTimeOut,
Iterable<T> elements)
Deprecated.
|
FiniteTestSource(Iterable<T> elements)
Deprecated.
|
FiniteTestSource(T... elements)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Deprecated.
|
void |
notifyCheckpointAborted(long checkpointId)
Deprecated.
|
void |
notifyCheckpointComplete(long checkpointId)
Deprecated.
|
void |
run(org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<T> ctx)
Deprecated.
|
@SafeVarargs public FiniteTestSource(T... elements)
public FiniteTestSource(@Nullable java.util.function.BooleanSupplier couldExit, long waitTimeOut, Iterable<T> elements)
public FiniteTestSource(@Nullable java.util.function.BooleanSupplier couldExit, Iterable<T> elements)
public void run(org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<T> ctx) throws Exception
public void cancel()
cancel in interface org.apache.flink.streaming.api.functions.source.SourceFunction<T>public void notifyCheckpointComplete(long checkpointId)
throws Exception
notifyCheckpointComplete in interface org.apache.flink.api.common.state.CheckpointListenerExceptionpublic void notifyCheckpointAborted(long checkpointId)
notifyCheckpointAborted in interface org.apache.flink.api.common.state.CheckpointListenerCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.