Class HadoopBatchLogReader

  • All Implemented Interfaces:
    cz.o2.proxima.direct.core.batch.BatchLogReader

    public class HadoopBatchLogReader
    extends java.lang.Object
    implements cz.o2.proxima.direct.core.batch.BatchLogReader
    Reader of data stored in SequenceFiles in HDFS.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface cz.o2.proxima.direct.core.batch.BatchLogReader

        cz.o2.proxima.direct.core.batch.BatchLogReader.Factory<T extends cz.o2.proxima.direct.core.batch.BatchLogReader>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      cz.o2.proxima.direct.core.batch.BatchLogReader.Factory<?> asFactory()  
      java.util.List<cz.o2.proxima.core.storage.Partition> getPartitions​(long startStamp, long endStamp)  
      cz.o2.proxima.direct.core.batch.ObserveHandle observe​(java.util.List<cz.o2.proxima.core.storage.Partition> partitions, java.util.List<cz.o2.proxima.core.repository.AttributeDescriptor<?>> attributes, cz.o2.proxima.direct.core.batch.BatchLogObserver observer)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface cz.o2.proxima.direct.core.batch.BatchLogReader

        getPartitions, getPartitions, observeOffsets
    • Constructor Detail

      • HadoopBatchLogReader

        public HadoopBatchLogReader​(HadoopDataAccessor accessor,
                                    cz.o2.proxima.direct.core.Context context)
    • Method Detail

      • getPartitions

        public java.util.List<cz.o2.proxima.core.storage.Partition> getPartitions​(long startStamp,
                                                                                  long endStamp)
        Specified by:
        getPartitions in interface cz.o2.proxima.direct.core.batch.BatchLogReader
      • observe

        public cz.o2.proxima.direct.core.batch.ObserveHandle observe​(java.util.List<cz.o2.proxima.core.storage.Partition> partitions,
                                                                     java.util.List<cz.o2.proxima.core.repository.AttributeDescriptor<?>> attributes,
                                                                     cz.o2.proxima.direct.core.batch.BatchLogObserver observer)
        Specified by:
        observe in interface cz.o2.proxima.direct.core.batch.BatchLogReader
      • asFactory

        public cz.o2.proxima.direct.core.batch.BatchLogReader.Factory<?> asFactory()
        Specified by:
        asFactory in interface cz.o2.proxima.direct.core.batch.BatchLogReader