Uses of Class
edu.caltech.nanodb.relations.TableInfo
-
Packages that use TableInfo Package Description edu.caltech.nanodb.commands This package contains the classes that represent the commands that the NanoSQL database recognizes.edu.caltech.nanodb.indexes edu.caltech.nanodb.plannodes This package contains classes for representing query execution plans, as well as analyzing their costs.edu.caltech.nanodb.relations This package contains the basic data-types for representing relations in NanoDB.edu.caltech.nanodb.server 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 TableInfo in edu.caltech.nanodb.commands
Fields in edu.caltech.nanodb.commands declared as TableInfo Modifier and Type Field Description (package private) TableInfo
DeleteCommand. tableInfo
private TableInfo
DeleteCommand.TupleRemover. tableInfo
The table whose tuples will be deleted.private TableInfo
InsertCommand. tableInfo
The table that the data will be inserted into, once it has been opened.private TableInfo
InsertCommand.TupleInserter. tableInfo
The table into which the new tuples will be inserted.private TableInfo
UpdateCommand. tableInfo
private TableInfo
UpdateCommand.TupleUpdater. tableInfo
The table whose tuples will be modified.Methods in edu.caltech.nanodb.commands with parameters of type TableInfo Modifier and Type Method Description private void
CreateTableCommand. initIndexes(StorageManager storageManager, TableInfo tableInfo)
static ForeignKeyColumnRefs
DDLUtils. makeForeignKey(Schema tableSchema, TableInfo refTableInfo, ConstraintDecl constraintDecl)
This method constructs aForeignKeyColumnRefs
object that includes the columns named in the input list, as well as the referenced table and column names.Method parameters in edu.caltech.nanodb.commands with type arguments of type TableInfo Modifier and Type Method Description private void
CreateTableCommand. initTableConstraints(StorageManager storageManager, Schema schema, java.util.HashMap<java.lang.String,TableInfo> referencedTables)
Constructors in edu.caltech.nanodb.commands with parameters of type TableInfo Constructor Description TupleInserter(EventDispatcher eventDispatcher, TableInfo tableInfo)
Initialize the tuple-inserter object with the details it needs to insert tuples into the specified table.TupleRemover(EventDispatcher eventDispatcher, TableInfo tableInfo)
Initialize the tuple-remover object with the details it needs to delete tuples from the specified table.TupleUpdater(EventDispatcher eventDispatcher, TableInfo tableInfo, java.util.List<UpdateValue> values)
Initialize the tuple-updater object with the details it needs to modify tuples in the specified table. -
Uses of TableInfo in edu.caltech.nanodb.indexes
Fields in edu.caltech.nanodb.indexes declared as TableInfo Modifier and Type Field Description private TableInfo
IndexInfo. tableInfo
The details of the table that the index is built against.Methods in edu.caltech.nanodb.indexes that return TableInfo Modifier and Type Method Description TableInfo
IndexInfo. getTableInfo()
Methods in edu.caltech.nanodb.indexes with parameters of type TableInfo Modifier and Type Method Description IndexInfo
BasicIndexManager. addIndexToTable(TableInfo tableInfo, IndexColumnRefs indexColRefs)
IndexInfo
IndexManager. addIndexToTable(TableInfo tableInfo, IndexColumnRefs indexColRefs)
private void
IndexUpdater. addRowToIndexes(TableInfo tblFileInfo, PageTuple ptup)
This helper method handles the case when a tuple is being added to the table, after the row has already been added to the table.void
IndexUpdater. afterRowDeleted(TableInfo tblFileInfo, Tuple oldValues)
void
IndexUpdater. afterRowInserted(TableInfo tblFileInfo, Tuple newTuple)
void
IndexUpdater. afterRowUpdated(TableInfo tblFileInfo, Tuple oldValues, Tuple newTuple)
void
IndexUpdater. beforeRowDeleted(TableInfo tblFileInfo, Tuple oldTuple)
void
IndexUpdater. beforeRowInserted(TableInfo tblFileInfo, Tuple newValues)
void
IndexUpdater. beforeRowUpdated(TableInfo tblFileInfo, Tuple oldTuple, Tuple newValues)
void
BasicIndexManager. dropIndex(TableInfo tableInfo, java.lang.String indexName)
void
IndexManager. dropIndex(TableInfo tableInfo, java.lang.String indexName)
IndexInfo
BasicIndexManager. openIndex(TableInfo tableInfo, java.lang.String indexName)
This method opens the data file corresponding to the specified index name and reads in the index's details.IndexInfo
IndexManager. openIndex(TableInfo tableInfo, java.lang.String indexName)
This method opens the data file corresponding to the specified index name and reads in the index's details.private void
BasicIndexManager. populateIndex(TableInfo srcTableInfo, IndexInfo newIndexInfo)
private void
IndexUpdater. removeRowFromIndexes(TableInfo tableInfo, PageTuple ptup)
This helper method handles the case when a tuple is being removed from the table, before the row has actually been removed from the table.Constructors in edu.caltech.nanodb.indexes with parameters of type TableInfo Constructor Description IndexInfo(TableInfo tableInfo, IndexColumnRefs indexColRefs)
Construct an index file information object for the specified index name.IndexInfo(TableInfo tableInfo, IndexColumnRefs indexColRefs, TupleFile tupleFile)
-
Uses of TableInfo in edu.caltech.nanodb.plannodes
Fields in edu.caltech.nanodb.plannodes declared as TableInfo Modifier and Type Field Description private TableInfo
FileScanNode. tableInfo
The table-info for the table being scanned, ornull
if the node is performing a scan over an index.Constructors in edu.caltech.nanodb.plannodes with parameters of type TableInfo Constructor Description FileScanNode(TableInfo tableInfo, Expression predicate)
Construct a file scan node that traverses a table file. -
Uses of TableInfo in edu.caltech.nanodb.relations
Methods in edu.caltech.nanodb.relations with parameters of type TableInfo Modifier and Type Method Description void
DatabaseConstraintEnforcer. afterRowDeleted(TableInfo tableInfo, Tuple oldTuple)
Perform processing after a row has been deleted from a table.void
DatabaseConstraintEnforcer. afterRowInserted(TableInfo tblFileInfo, Tuple newTuple)
Perform processing after a row is inserted into a table.void
DatabaseConstraintEnforcer. afterRowUpdated(TableInfo tableInfo, Tuple oldTuple, Tuple newTuple)
Perform processing after a row is updated in a table.private void
DatabaseConstraintEnforcer. applyOnDeleteEffects(TableInfo tableInfo, java.lang.String referencingTableName, Tuple oldTuple)
This function checks the ON DELETE option for each child table affected by the deletion of tup due to a foreign key, and then executes that option.private void
DatabaseConstraintEnforcer. applyOnUpdateEffects(TableInfo tableInfo, java.lang.String referencingTableName, Tuple oldTuple, Tuple newTuple)
This function performs ON UPDATE tasks for each referencing table that is potentially affected by the update of a tuple in the referenced table.void
DatabaseConstraintEnforcer. beforeRowDeleted(TableInfo tableInfo, Tuple oldTuple)
Perform processing after a row has been deleted from a table.void
DatabaseConstraintEnforcer. beforeRowInserted(TableInfo tableInfo, Tuple newTuple)
Perform processing before a row is inserted into a table.void
DatabaseConstraintEnforcer. beforeRowUpdated(TableInfo tableInfo, Tuple oldTuple, Tuple newTuple)
Perform processing before a row is updated in a table.private void
DatabaseConstraintEnforcer. checkNotNullConstraints(TableInfo tableInfo, Tuple tuple)
This helper function verifies that a tuple being added to a table satisfies all the NOT NULL constraints on the table.static ColumnRefs
TableUtils. findIndexOnColumns(TableInfo tableInfo, int[] colIndexes)
private boolean
DatabaseConstraintEnforcer. hasCandidateKeyValue(TableInfo tableInfo, KeyColumnRefs candidateKey, Tuple tuple)
Checks to see if a particular candidate-key value already appears in a table.private DeleteCommand
DatabaseConstraintEnforcer. makeDeleteCommand(TableInfo tableInfo, int[] schemaIndexes, Tuple oldTuple, int[] tupleIndexes)
private Expression
DatabaseConstraintEnforcer. makeExistsPredicate(TableInfo tableInfo, int[] schemaIndexes, Tuple tuple, int[] tupleIndexes)
private UpdateCommand
DatabaseConstraintEnforcer. makeUpdateCommand(TableInfo tableInfo, int[] schemaIndexes, Tuple oldTuple, Tuple newTuple, int[] tupleIndexes)
-
Uses of TableInfo in edu.caltech.nanodb.server
Methods in edu.caltech.nanodb.server with parameters of type TableInfo Modifier and Type Method Description void
RowEventListener. afterRowDeleted(TableInfo tblFileInfo, Tuple oldValues)
Perform processing after a row has been deleted from a table.void
RowEventListener. afterRowInserted(TableInfo tblFileInfo, Tuple newTuple)
Perform processing after a row is inserted into a table.void
RowEventListener. afterRowUpdated(TableInfo tblFileInfo, Tuple oldValues, Tuple newTuple)
Perform processing after a row is updated in a table.void
RowEventListener. beforeRowDeleted(TableInfo tblFileInfo, Tuple oldTuple)
Perform processing after a row has been deleted from a table.void
RowEventListener. beforeRowInserted(TableInfo tblFileInfo, Tuple newValues)
Perform processing before a row is inserted into a table.void
RowEventListener. beforeRowUpdated(TableInfo tblFileInfo, Tuple oldTuple, Tuple newValues)
Perform processing before a row is updated in a table.void
EventDispatcher. fireAfterRowDeleted(TableInfo tblFileInfo, Tuple oldValues)
void
EventDispatcher. fireAfterRowInserted(TableInfo tblFileInfo, Tuple newTuple)
void
EventDispatcher. fireAfterRowUpdated(TableInfo tblFileInfo, Tuple oldValues, Tuple newTuple)
void
EventDispatcher. fireBeforeRowDeleted(TableInfo tblFileInfo, Tuple oldTuple)
void
EventDispatcher. fireBeforeRowInserted(TableInfo tblFileInfo, Tuple newValues)
void
EventDispatcher. fireBeforeRowUpdated(TableInfo tblFileInfo, Tuple oldTuple, Tuple newValues)
-
Uses of TableInfo in edu.caltech.nanodb.storage
Fields in edu.caltech.nanodb.storage with type parameters of type TableInfo Modifier and Type Field Description private java.util.HashMap<java.lang.String,TableInfo>
IndexedTableManager. openTables
Methods in edu.caltech.nanodb.storage that return TableInfo Modifier and Type Method Description TableInfo
IndexedTableManager. createTable(java.lang.String tableName, Schema schema, CommandProperties properties)
TableInfo
TableManager. createTable(java.lang.String tableName, Schema schema, CommandProperties properties)
Creates a new table file with the table-name and schema specified in the passed-inTableInfo
object.TableInfo
IndexedTableManager. openTable(java.lang.String tableName)
TableInfo
TableManager. openTable(java.lang.String tableName)
This method opens the data file corresponding to the specified table name and reads in the table's schema.Methods in edu.caltech.nanodb.storage with parameters of type TableInfo Modifier and Type Method Description void
IndexedTableManager. analyzeTable(TableInfo tableInfo)
void
TableManager. analyzeTable(TableInfo tableInfo)
This function analyzes the specified table, and updates the table's statistics to be the most up-to-date values.void
IndexedTableManager. closeTable(TableInfo tableInfo)
void
TableManager. closeTable(TableInfo tableInfo)
This method closes a table file that is currently open, flushing any dirty pages to the table's storage in the process.void
IndexedTableManager. saveTableInfo(TableInfo tableInfo)
void
TableManager. saveTableInfo(TableInfo tableInfo)
This method saves the schema and other details of a table into the backing table file, using the schema and other details specified in the passed-inTableInfo
object.
-