T
- the type of elementpublic final class BlockInputStream<T> extends Object implements BlockStream
Modifier and Type | Method and Description |
---|---|
String |
getBlockId()
Gets the block id.
|
Optional<DataStoreProperty.Value> |
getBlockStore()
Gets the block store type.
|
CompletableFuture<Iterator<T>> |
getCompleteFuture()
Gets a
CompletableFuture that completes with the block transfer being done. |
KeyRange |
getKeyRange()
Gets the key range.
|
String |
getRemoteExecutorId()
Gets the id of the remote executor.
|
String |
getRuntimeEdgeId()
Gets the runtime edge id.
|
boolean |
isEncodePartialBlockEnabled()
Gets whether the sender should start encoding even though the whole block has not been written yet.
|
String |
toString() |
public String getRemoteExecutorId()
BlockStream
getRemoteExecutorId
in interface BlockStream
public boolean isEncodePartialBlockEnabled()
BlockStream
isEncodePartialBlockEnabled
in interface BlockStream
public Optional<DataStoreProperty.Value> getBlockStore()
BlockStream
getBlockStore
in interface BlockStream
Optional
with block store type if this stream belongs to a pull-based transfer,
an empty Optional
otherwise.public String getBlockId()
BlockStream
getBlockId
in interface BlockStream
public String getRuntimeEdgeId()
BlockStream
getRuntimeEdgeId
in interface BlockStream
public KeyRange getKeyRange()
BlockStream
getKeyRange
in interface BlockStream
KeyRange
public CompletableFuture<Iterator<T>> getCompleteFuture()
CompletableFuture
that completes with the block transfer being done.
This future is completed by one of the decoding thread. Consider using separate ExecutorService
when
chaining a task to this future.CompletableFuture
that completes with the block transfer being doneCopyright © 2018. All rights reserved.