Uses of Class
edu.caltech.nanodb.storage.DBFileType
-
Packages that use DBFileType 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.edu.caltech.nanodb.storage.heapfile This package provides a naive implementation of the heap file organization for NanoDB. -
-
Uses of DBFileType in edu.caltech.nanodb.storage
Fields in edu.caltech.nanodb.storage declared as DBFileType Modifier and Type Field Description private DBFileType
DBFile. type
The type of the data file.Fields in edu.caltech.nanodb.storage with type parameters of type DBFileType Modifier and Type Field Description private java.util.HashMap<DBFileType,TupleFileManager>
StorageManager. tupleFileManagers
This mapping is used to keep track of the tuple-file managers for all the kinds of tuple-files we support.Methods in edu.caltech.nanodb.storage that return DBFileType Modifier and Type Method Description DBFileType
TupleFileManager. getDBFileType()
Returns theDBFileType
value used to indicate this storage format in data files.DBFileType
DBFile. getType()
Returns the type of this data file.static DBFileType
DBFileType. valueOf(int id)
Given a numeric type ID, returns the corresponding type value for the ID, or null if no type corresponds to the ID.static DBFileType
DBFileType. valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DBFileType[]
DBFileType. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in edu.caltech.nanodb.storage with parameters of type DBFileType Modifier and Type Method Description DBFile
FileManager. createDBFile(java.lang.String filename, DBFileType type, int pageSize)
This method creates a new database file in the directory used by the storage manager.DBFile
FileManagerImpl. createDBFile(java.lang.String filename, DBFileType type, int pageSize)
DBFile
StorageManager. createDBFile(java.lang.String filename, DBFileType type)
TupleFileManager
StorageManager. getTupleFileManager(DBFileType type)
Returns the tuple-file manager for the specified file type.Constructors in edu.caltech.nanodb.storage with parameters of type DBFileType Constructor Description DBFile(java.io.File dataFile, DBFileType type, int pageSize)
Constructs a new object from the specified information, and opens the backing data-file as well.DBFile(java.io.File dataFile, DBFileType type, int pageSize, java.io.RandomAccessFile fileContents)
Constructs a new object from the specified information and the previously opened data-file. -
Uses of DBFileType in edu.caltech.nanodb.storage.heapfile
Methods in edu.caltech.nanodb.storage.heapfile that return DBFileType Modifier and Type Method Description DBFileType
HeapTupleFileManager. getDBFileType()
-