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_ARRAYstatic RecordIdNULLAnullrecord id not identifying any record.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UUIDasUUID()intcompareTo(@NotNull RecordId that)booleanequals(Object object)intestimateMemoryUsage()static RecordIdfromString(SegmentIdProvider idProvider, String id)intgetRecordNumber()@NotNull SegmentgetSegment()SegmentIdgetSegmentId()inthashCode()StringtoString()StringtoString10()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:
compareToin interfaceComparable<RecordId>
-
toString10
public String toString10()
Returns the record id string representation used in Oak 1.0.
-
estimateMemoryUsage
public int estimateMemoryUsage()
-
-