private static class DirectAttributeFamilyProxyDescriptor.ProxyBatchLogReader extends java.lang.Object implements BatchLogReader
BatchLogReader.Factory<T extends BatchLogReader>| Modifier and Type | Field and Description |
|---|---|
private DirectAttributeFamilyProxyDescriptor.AttrLookup |
lookup |
private BatchLogReader |
reader |
| Constructor and Description |
|---|
ProxyBatchLogReader(BatchLogReader reader,
DirectAttributeFamilyProxyDescriptor.AttrLookup lookup) |
| Modifier and Type | Method and Description |
|---|---|
BatchLogReader.Factory<?> |
asFactory()
Convert instance of this reader to
BatchLogReader.Factory suitable for serialization. |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPartitions, getPartitionsprivate final BatchLogReader reader
private final DirectAttributeFamilyProxyDescriptor.AttrLookup lookup
public ProxyBatchLogReader(BatchLogReader reader, DirectAttributeFamilyProxyDescriptor.AttrLookup lookup)
public java.util.List<Partition> getPartitions(long startStamp, long endStamp)
BatchLogReadergetPartitions in interface BatchLogReaderstartStamp - starting timestamp (inclusive)endStamp - ending timestamp (exclusive)public ObserveHandle observe(java.util.List<Partition> partitions, java.util.List<AttributeDescriptor<?>> attributes, BatchLogObserver observer)
BatchLogReaderobserve in interface BatchLogReaderpartitions - partitions to observeattributes - attribute descriptors to filter outobserver - the observer by which to consume the dataObserveHandle to control the consumptionpublic BatchLogReader.Factory<?> asFactory()
BatchLogReaderBatchLogReader.Factory suitable for serialization.asFactory in interface BatchLogReaderBatchLogReader.Factory representing this readerCopyright © 2017–2021. All rights reserved.