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()
BlockStreamgetRemoteExecutorId in interface BlockStreampublic boolean isEncodePartialBlockEnabled()
BlockStreamisEncodePartialBlockEnabled in interface BlockStreampublic Optional<DataStoreProperty.Value> getBlockStore()
BlockStreamgetBlockStore in interface BlockStreamOptional with block store type if this stream belongs to a pull-based transfer,
an empty Optional otherwise.public String getBlockId()
BlockStreamgetBlockId in interface BlockStreampublic String getRuntimeEdgeId()
BlockStreamgetRuntimeEdgeId in interface BlockStreampublic KeyRange getKeyRange()
BlockStreamgetKeyRange in interface BlockStreamKeyRangepublic 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.