Class ColumnDescriptorList

All Implemented Interfaces:
Serializable, Cloneable, Iterable<ColumnDescriptor>, Collection<ColumnDescriptor>, List<ColumnDescriptor>, RandomAccess, SequencedCollection<ColumnDescriptor>

public class ColumnDescriptorList extends ArrayList<ColumnDescriptor>
This represents a list of column descriptors.
See Also:
  • Constructor Details

    • ColumnDescriptorList

      public ColumnDescriptorList()
  • Method Details

    • add

      public void add(UUID tableID, ColumnDescriptor column)
      Add the column. Currently, the table id is ignored.
      Parameters:
      tableID - the table id (ignored)
      column - the column to add
    • getColumnDescriptor

      public ColumnDescriptor getColumnDescriptor(UUID tableID, String columnName)
      Get the column descriptor
      Parameters:
      tableID - the table id (ignored)
      columnName - the column get
      Returns:
      the column descriptor if found
    • getColumnDescriptor

      public ColumnDescriptor getColumnDescriptor(UUID tableID, int columnID)
      Get the column descriptor
      Parameters:
      tableID - the table id (ignored)
      columnID - the column id
      Returns:
      the column descriptor if found
    • elementAt

      public ColumnDescriptor elementAt(int n)
      Return the nth (0-based) element in the list.
      Parameters:
      n - Which element to return.
      Returns:
      The nth element in the list.
    • getColumnNames

      public String[] getColumnNames()
      Get an array of strings for all the columns in this CDL.
      Returns:
      the array of strings