Class TextFileReader.Offset

java.lang.Object
org.apache.storm.hdfs.spout.TextFileReader.Offset
All Implemented Interfaces:
Cloneable, Comparable<org.apache.storm.hdfs.spout.FileOffset>
Enclosing class:
TextFileReader

public static class TextFileReader.Offset extends Object
  • Constructor Details

    • Offset

      public Offset(long byteOffset, long lineNumber)
    • Offset

      public Offset(String offset)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public TextFileReader.Offset clone()
      Overrides:
      clone in class Object