Class RecordId
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.RecordId
-
- All Implemented Interfaces:
Comparable<RecordId>
public final class RecordId extends Object implements Comparable<RecordId>
The record id. This includes the segment id and the offset within the segment.
-
-
Field Summary
Fields Modifier and Type Field Description static RecordId[]
EMPTY_ARRAY
static RecordId
NULL
Anull
record id not identifying any record.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UUID
asUUID()
int
compareTo(@NotNull RecordId that)
boolean
equals(Object object)
int
estimateMemoryUsage()
static RecordId
fromString(SegmentIdProvider idProvider, String id)
int
getRecordNumber()
@NotNull Segment
getSegment()
SegmentId
getSegmentId()
int
hashCode()
String
toString()
String
toString10()
Returns the record id string representation used in Oak 1.0.
-
-
-
Constructor Detail
-
RecordId
public RecordId(SegmentId segmentId, int offset)
-
-
Method Detail
-
fromString
public static RecordId fromString(SegmentIdProvider idProvider, String id)
-
getSegmentId
public SegmentId getSegmentId()
-
getRecordNumber
public int getRecordNumber()
-
asUUID
public UUID asUUID()
- Returns:
- the segment id part of this record id as UUID
-
getSegment
@NotNull public @NotNull Segment getSegment()
-
compareTo
public int compareTo(@NotNull @NotNull RecordId that)
- Specified by:
compareTo
in interfaceComparable<RecordId>
-
toString10
public String toString10()
Returns the record id string representation used in Oak 1.0.
-
estimateMemoryUsage
public int estimateMemoryUsage()
-
-