Package org.apache.storm.hdfs.spout
Class SequenceFileReader.Offset
- java.lang.Object
-
- org.apache.storm.hdfs.spout.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 Summary
Fields Modifier and Type Field Description long
currentRecord
long
lastSyncPoint
long
recordsSinceLastSync
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SequenceFileReader.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 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 interfaceComparable<org.apache.storm.hdfs.spout.FileOffset>
-
clone
public SequenceFileReader.Offset clone()
-
-