public class SegmentId extends Object implements Comparable<SegmentId>
| Constructor and Description |
|---|
SegmentId(SegmentTracker tracker,
long msb,
long lsb) |
| Modifier and Type | Method and Description |
|---|---|
UUID |
asUUID() |
int |
compareTo(SegmentId that) |
boolean |
equals(long msb,
long lsb) |
boolean |
equals(Object object) |
long |
getCreationTime() |
long |
getLeastSignificantBits() |
long |
getMostSignificantBits() |
Segment |
getSegment() |
SegmentTracker |
getTracker() |
int |
hashCode() |
boolean |
isBulkSegmentId()
Checks whether this is a bulk segment identifier.
|
boolean |
isDataSegmentId()
Checks whether this is a data segment identifier.
|
static boolean |
isDataSegmentId(long lsb)
Checks whether this is a data segment identifier.
|
String |
toString() |
public SegmentId(SegmentTracker tracker, long msb, long lsb)
public static boolean isDataSegmentId(long lsb)
true for a data segment, false otherwisepublic boolean isDataSegmentId()
true for a data segment, false otherwisepublic boolean isBulkSegmentId()
true for a bulk segment, false otherwisepublic boolean equals(long msb,
long lsb)
public long getMostSignificantBits()
public long getLeastSignificantBits()
public Segment getSegment()
public SegmentTracker getTracker()
public long getCreationTime()
public UUID asUUID()
public int compareTo(SegmentId that)
compareTo in interface Comparable<SegmentId>Copyright © 2012-2018 The Apache Software Foundation. All Rights Reserved.