Class ColumnDescriptorList
java.lang.Object
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<ColumnDescriptor>
,Collection<ColumnDescriptor>
,List<ColumnDescriptor>
,RandomAccess
,SequencedCollection<ColumnDescriptor>
This represents a list of column descriptors.
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(UUID tableID, ColumnDescriptor column) Add the column.elementAt
(int n) Return the nth (0-based) element in the list.getColumnDescriptor
(UUID tableID, int columnID) Get the column descriptorgetColumnDescriptor
(UUID tableID, String columnName) Get the column descriptorString[]
Get an array of strings for all the columns in this CDL.Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, 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, reversed
-
Constructor Details
-
ColumnDescriptorList
public ColumnDescriptorList()
-
-
Method Details
-
add
Add the column. Currently, the table id is ignored.- Parameters:
tableID
- the table id (ignored)column
- the column to add
-
getColumnDescriptor
Get the column descriptor- Parameters:
tableID
- the table id (ignored)columnName
- the column get- Returns:
- the column descriptor if found
-
getColumnDescriptor
Get the column descriptor- Parameters:
tableID
- the table id (ignored)columnID
- the column id- Returns:
- the column descriptor if found
-
elementAt
Return the nth (0-based) element in the list.- Parameters:
n
- Which element to return.- Returns:
- The nth element in the list.
-
getColumnNames
Get an array of strings for all the columns in this CDL.- Returns:
- the array of strings
-