Class RecordId
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.RecordId
-
-
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 java.util.UUID
asUUID()
int
compareTo(@NotNull RecordId that)
boolean
equals(java.lang.Object object)
int
estimateMemoryUsage()
static RecordId
fromString(SegmentIdProvider idProvider, java.lang.String id)
int
getRecordNumber()
@NotNull Segment
getSegment()
SegmentId
getSegmentId()
int
hashCode()
java.lang.String
toString()
java.lang.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, java.lang.String id)
-
getSegmentId
public SegmentId getSegmentId()
-
getRecordNumber
public int getRecordNumber()
-
asUUID
public java.util.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 interfacejava.lang.Comparable<RecordId>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toString10
public java.lang.String toString10()
Returns the record id string representation used in Oak 1.0.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in classjava.lang.Object
-
estimateMemoryUsage
public int estimateMemoryUsage()
-
-