Package org.apache.storm.hdfs.spout
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextFileReader.Offset
clone()
int
compareTo(org.apache.storm.hdfs.spout.FileOffset o)
boolean
equals(Object o)
int
hashCode()
boolean
isNextOffset(org.apache.storm.hdfs.spout.FileOffset rhs)
String
toString()
-
-
-
Constructor Detail
-
Offset
public Offset(long byteOffset, long lineNumber)
-
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 interfaceComparable<org.apache.storm.hdfs.spout.FileOffset>
-
clone
public TextFileReader.Offset clone()
-
-