Uses of Class
edu.caltech.nanodb.storage.PageReader
-
Packages that use PageReader Package Description 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 PageReader in edu.caltech.nanodb.storage
Subclasses of PageReader in edu.caltech.nanodb.storage Modifier and Type Class Description class
PageWriter
This class extends thePageReader
class to provide write operations as well as read operations.Methods in edu.caltech.nanodb.storage with parameters of type PageReader Modifier and Type Method Description protected void
SchemaWriter. readColumnInfos(PageReader pgReader, Schema schema)
protected ForeignKeyColumnRefs
SchemaWriter. readForeignKey(PageReader pgReader, int typeID)
protected IndexColumnRefs
SchemaWriter. readIndex(PageReader pgReader)
This helper function reads an index to the table's schema stored in the header page.protected void
SchemaWriter. readIndexes(PageReader pgReader, Schema schema)
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.protected void
SchemaWriter. readKeyConstraints(PageReader pgReader, Schema schema)
protected void
SchemaWriter. readNotNullConstraints(PageReader pgReader, Schema schema)
protected void
SchemaWriter. readReferencingTables(PageReader pgReader, Schema schema)
Schema
SchemaWriter. readSchema(PageReader pgReader)
This method opens the data file corresponding to the specified table name and reads in the table's schema.static TableStats
StatsWriter. readTableStats(PageReader pgReader, Schema schema)
Reads the table-statistics from the specified data file.
-