Package edu.caltech.nanodb.relations
Class KeyColumnRefs
- java.lang.Object
-
- edu.caltech.nanodb.relations.ColumnRefs
-
- edu.caltech.nanodb.relations.KeyColumnRefs
-
public class KeyColumnRefs extends ColumnRefs
This class represents a primary key or other unique key, specifying the indexes of the columns in the key.
-
-
Constructor Summary
Constructors Constructor Description KeyColumnRefs(int[] colIndexes, java.lang.String constraintName, TableConstraintType constraintType)
KeyColumnRefs(IndexColumnRefs idxColRefs)
Builds a KeyColumnRefs object off of a unique index definition.
-
Method Summary
-
Methods inherited from class edu.caltech.nanodb.relations.ColumnRefs
equalsColumns, equalsColumns, getCol, getCols, getConstraintName, getConstraintType, hasSameColumns, hasSameColumns, setConstraintName, setConstraintType, size, toString
-
-
-
-
Constructor Detail
-
KeyColumnRefs
public KeyColumnRefs(int[] colIndexes, java.lang.String constraintName, TableConstraintType constraintType)
-
KeyColumnRefs
public KeyColumnRefs(IndexColumnRefs idxColRefs)
Builds a KeyColumnRefs object off of a unique index definition.- Parameters:
idxColRefs
- the unique index used for the key definition.
-
-