Class GenericDescriptorList<E extends UniqueTupleDescriptor>

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<E>, java.util.Collection<E>, java.util.List<E>, java.util.RandomAccess
    Direct Known Subclasses:
    TriggerDescriptorList

    public class GenericDescriptorList<E extends UniqueTupleDescriptor>
    extends java.util.ArrayList<E>
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean scanned  
      • Fields inherited from class java.util.AbstractList

        modCount
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean getScanned()
      Return whether or not the underlying system table has been scanned.
      E getUniqueTupleDescriptor​(UUID uuid)
      Get the UniqueTupleDescriptor that matches the input uuid.
      void setScanned​(boolean scanned)
      Mark whether or not the underlying system table has been scanned.
      • Methods inherited from class java.util.ArrayList

        add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
      • Methods inherited from class java.util.AbstractCollection

        containsAll, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, stream, toArray
      • Methods inherited from interface java.util.List

        containsAll
    • Field Detail

      • scanned

        private boolean scanned
    • Constructor Detail

      • GenericDescriptorList

        public GenericDescriptorList()
    • Method Detail

      • setScanned

        public void setScanned​(boolean scanned)
        Mark whether or not the underlying system table has been scanned. (If a table does not have any constraints then the size of its CDL will always be 0. We used these get/set methods to determine when we need to scan the table.
        Parameters:
        scanned - Whether or not the underlying system table has been scanned.
      • getScanned

        public boolean getScanned()
        Return whether or not the underlying system table has been scanned.
        Returns:
        Where or not the underlying system table has been scanned.
      • getUniqueTupleDescriptor

        public E getUniqueTupleDescriptor​(UUID uuid)
        Get the UniqueTupleDescriptor that matches the input uuid.
        Parameters:
        uuid - The UUID for the object
        Returns:
        The matching UniqueTupleDescriptor.