Class SequenceFileReader.Offset

  • All Implemented Interfaces:
    Cloneable, Comparable<org.apache.storm.hdfs.spout.FileOffset>
    Enclosing class:
    SequenceFileReader<KeyT extends org.apache.hadoop.io.Writable,​ValueT extends org.apache.hadoop.io.Writable>

    public static class SequenceFileReader.Offset
    extends Object
    • Field Detail

      • lastSyncPoint

        public long lastSyncPoint
      • recordsSinceLastSync

        public long recordsSinceLastSync
      • currentRecord

        public long currentRecord
    • Constructor Detail

      • Offset

        public Offset​(long lastSyncPoint,
                      long recordsSinceLastSync,
                      long currentRecord)
      • Offset

        public Offset​(long lastSyncPoint,
                      long recordsSinceLastSync,
                      long currentRecord,
                      long currRecordEndOffset,
                      long prevRecordEndOffset)
      • Offset

        public Offset​(String offset)
    • Method Detail

      • isNextOffset

        public boolean isNextOffset​(org.apache.storm.hdfs.spout.FileOffset rhs)
      • compareTo

        public int compareTo​(org.apache.storm.hdfs.spout.FileOffset o)
        Specified by:
        compareTo in interface Comparable<org.apache.storm.hdfs.spout.FileOffset>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object