public class OffsetRange extends java.lang.Object implements java.io.Serializable, HasDefaultTracker<OffsetRange,OffsetRangeTracker>
Constructor and Description |
---|
OffsetRange(long from,
long to) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
long |
getFrom() |
long |
getTo() |
int |
hashCode() |
OffsetRangeTracker |
newTracker()
Creates a new tracker for
this . |
java.util.List<OffsetRange> |
split(long desiredNumOffsetsPerSplit,
long minNumOffsetPerSplit) |
java.lang.String |
toString() |
public long getFrom()
public long getTo()
public OffsetRangeTracker newTracker()
HasDefaultTracker
this
.newTracker
in interface HasDefaultTracker<OffsetRange,OffsetRangeTracker>
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.util.List<OffsetRange> split(long desiredNumOffsetsPerSplit, long minNumOffsetPerSplit)