Class RecordIdSet

java.lang.Object
org.apache.jackrabbit.oak.segment.RecordIdSet

public class RecordIdSet extends Object
A memory optimised set of RecordIds. The set doesn't keep references to the actual record ids it contains.
  • Constructor Details

    • RecordIdSet

      public RecordIdSet()
  • Method Details

    • addIfNotPresent

      public boolean addIfNotPresent(RecordId id)
      Add id to this set if not already present
      Parameters:
      id - the record id to add
      Returns:
      true if added, false if already present
    • contains

      public boolean contains(RecordId id)
      Check whether id is present is this set.
      Parameters:
      id - the record id to check for
      Returns:
      true iff id is present.