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 Details

    • NULL

      public static final RecordId NULL
      A null record id not identifying any record.
    • EMPTY_ARRAY

      public static RecordId[] EMPTY_ARRAY
  • Constructor Details

    • RecordId

      public RecordId(SegmentId segmentId, int offset)
  • Method Details

    • 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 interface Comparable<RecordId>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toString10

      public String toString10()
      Returns the record id string representation used in Oak 1.0.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • estimateMemoryUsage

      public int estimateMemoryUsage()