public class LogOffsetImpl extends Object implements LogOffset
| Modifier and Type | Field and Description |
|---|---|
protected long |
offset |
protected LogPartition |
partition |
| Constructor and Description |
|---|
LogOffsetImpl(LogPartition partition,
long offset) |
LogOffsetImpl(String name,
int partition,
long offset) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(LogOffset o) |
boolean |
equals(Object o) |
int |
hashCode() |
LogOffset |
nextOffset()
Returns the next offset corresponding to the next position in the same partition.
|
long |
offset()
The position for the this
LogOffset.partition(). |
LogPartition |
partition()
Returns the tuple Log name and partition.
|
String |
toString() |
protected final LogPartition partition
protected final long offset
public LogOffsetImpl(LogPartition partition, long offset)
public LogOffsetImpl(String name, int partition, long offset)
public LogPartition partition()
LogOffsetpublic long offset()
LogOffsetLogOffset.partition().public LogOffset nextOffset()
LogOffsetnextOffset in interface LogOffsetpublic int compareTo(LogOffset o)
compareTo in interface Comparable<LogOffset>Copyright © 2018 Nuxeo. All rights reserved.