Uses of Class
edu.caltech.nanodb.relations.KeyColumnRefs
-
Packages that use KeyColumnRefs Package Description edu.caltech.nanodb.relations This package contains the basic data-types for representing relations in NanoDB.edu.caltech.nanodb.storage This package contains the classes for the Storage Manager, which is responsible for how data is stored in and retrieved from database files. -
-
Uses of KeyColumnRefs in edu.caltech.nanodb.relations
Fields in edu.caltech.nanodb.relations with type parameters of type KeyColumnRefs Modifier and Type Field Description private java.util.ArrayList<KeyColumnRefs>
Schema. candidateKeys
A collection of all candidate-key objects specifying the sets of columns that comprise candidate keys on this table.Methods in edu.caltech.nanodb.relations that return KeyColumnRefs Modifier and Type Method Description KeyColumnRefs
Schema. getKeyOnColumns(int[] colIndexes)
Returns any candidate-key from this schema that has the specified set of columns.KeyColumnRefs
Schema. getKeyOnColumns(ColumnRefs colRefs)
Returns any candidate-key from this schema that has the specified set of columns.KeyColumnRefs
Schema. getPrimaryKey()
Returns the primary key on this table, ornull
if there is no primary key.Methods in edu.caltech.nanodb.relations that return types with arguments of type KeyColumnRefs Modifier and Type Method Description java.util.List<KeyColumnRefs>
Schema. getAllKeysOnColumns(int[] colIndexes)
Returns all candidate-keys from this schema that have the specified set of columns.java.util.List<KeyColumnRefs>
Schema. getAllKeysOnColumns(ColumnRefs colRefs)
Returns all candidate-keys from this schema that have the specified set of columns.java.util.List<KeyColumnRefs>
Schema. getCandidateKeys()
Returns an unmodifiable list of candidate keys present on the schema.Methods in edu.caltech.nanodb.relations with parameters of type KeyColumnRefs Modifier and Type Method Description void
Schema. addCandidateKey(KeyColumnRefs ck)
Adds another candidate key to the schema.private boolean
DatabaseConstraintEnforcer. hasCandidateKeyValue(TableInfo tableInfo, KeyColumnRefs candidateKey, Tuple tuple)
Checks to see if a particular candidate-key value already appears in a table.Constructors in edu.caltech.nanodb.relations with parameters of type KeyColumnRefs Constructor Description IndexColumnRefs(java.lang.String indexName, KeyColumnRefs keyColRefs)
-
Uses of KeyColumnRefs in edu.caltech.nanodb.storage
Methods in edu.caltech.nanodb.storage that return KeyColumnRefs Modifier and Type Method Description protected KeyColumnRefs
SchemaWriter. readKey(PageReader pgReader, int typeID, TableConstraintType type)
This helper function writes a primary key or candidate key to the table's schema stored in the header page.Methods in edu.caltech.nanodb.storage with parameters of type KeyColumnRefs Modifier and Type Method Description protected void
SchemaWriter. writeKey(PageWriter pgWriter, TableConstraintType type, KeyColumnRefs key)
This helper function writes a primary key or candidate key to the schema representation.
-