Class 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 Detail

      • RecordIdSet

        public RecordIdSet()
    • Method Detail

      • 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.