Class RecordIdSet


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

      Constructors 
      Constructor Description
      RecordIdSet()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean addIfNotPresent​(RecordId id)
      Add id to this set if not already present
      boolean contains​(RecordId id)
      Check whether id is present is this set.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.