public class SingleBucketBuilder extends java.lang.Object implements RowConsumer, CompletionListenable
Constructor and Description |
---|
SingleBucketBuilder(Streamer<?>[] streamers) |
Modifier and Type | Method and Description |
---|---|
void |
accept(BatchIterator<Row> iterator,
java.lang.Throwable failure)
Start consumption of the given
BatchIterator . |
java.util.concurrent.CompletableFuture<Bucket> |
completionFuture() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
requiresScroll
public SingleBucketBuilder(Streamer<?>[] streamers)
public java.util.concurrent.CompletableFuture<Bucket> completionFuture()
completionFuture
in interface CompletionListenable
public void accept(BatchIterator<Row> iterator, @Nullable java.lang.Throwable failure)
RowConsumer
BatchIterator
.
The given iterator must be in it's start position and must be usable until BatchIterator.close()
is called.
If failure
is not null the iterator
cannot be used,
but instead the consumer has to process the failure.
accept
in interface RowConsumer
accept
in interface java.util.function.BiConsumer<BatchIterator<Row>,java.lang.Throwable>
iterator
- the iterator to be consumed, if a failure is present this iterator isn't usable or null.failure
- the cause of the failure or null if successful