@Stable public interface BatchLogReader
| Modifier and Type | Interface and Description |
|---|---|
static interface |
BatchLogReader.Factory<T extends BatchLogReader>
Serializable factory for BatchLogReader. |
| Modifier and Type | Method and Description |
|---|---|
BatchLogReader.Factory<?> |
asFactory()
Convert instance of this reader to
BatchLogReader.Factory suitable for serialization. |
default java.util.List<Partition> |
getPartitions()
Retrieve list of partitions of this batch observer.
|
default java.util.List<Partition> |
getPartitions(long startStamp)
Retrieve list of partitions covering data at least from given starting stamp.
|
java.util.List<Partition> |
getPartitions(long startStamp,
long endStamp)
Retrieve list of partitions covering data from the given range.
|
ObserveHandle |
observe(java.util.List<Partition> partitions,
java.util.List<AttributeDescriptor<?>> attributes,
BatchLogObserver observer)
Observe data stored in given partitions.
|
default java.util.List<Partition> getPartitions()
default java.util.List<Partition> getPartitions(long startStamp)
startStamp - timestamp to start reading fromjava.util.List<Partition> getPartitions(long startStamp, long endStamp)
startStamp - starting timestamp (inclusive)endStamp - ending timestamp (exclusive)ObserveHandle observe(java.util.List<Partition> partitions, java.util.List<AttributeDescriptor<?>> attributes, BatchLogObserver observer)
partitions - partitions to observeattributes - attribute descriptors to filter outobserver - the observer by which to consume the dataObserveHandle to control the consumptionBatchLogReader.Factory<?> asFactory()
BatchLogReader.Factory suitable for serialization.BatchLogReader.Factory representing this readerCopyright © 2017–2021. All rights reserved.