Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MIT-DB-Class/simple-db-hw
/ types & classes
Types & classes
161 in github.com/MIT-DB-Class/simple-db-hw
⨍
Functions
1,070
◇
Types & classes
161
Class
AbortEvictionTest
test/simpledb/systemtest/AbortEvictionTest.java:10
Class
AbstractDbFileIterator
Helper for implementing DbFileIterators. Handles hasNext()/next() logic.
src/java/simpledb/AbstractDbFileIterator.java:6
Class
Aggregate
The Aggregation operator that computes an aggregate (e.g., sum, avg, max, min). Note that we only support aggregates over a single column, grouped by
src/java/simpledb/Aggregate.java:10
Class
AggregateTest
test/simpledb/AggregateTest.java:13
Class
AggregateTest
test/simpledb/systemtest/AggregateTest.java:12
Interface
Aggregator
The common interface for any class that can compute an aggregate over a list of Tuples.
src/java/simpledb/Aggregator.java:9
Class
BTreeChecker
Created by orm on 10/7/15.
src/java/simpledb/BTreeChecker.java:10
Class
BTreeDeadlockTest
test/simpledb/BTreeDeadlockTest.java:12
Class
BTreeDeleter
Helper class that attempts to delete tuple(s) in a new thread @return a handle to the Thread that will attempt deletion after it has been started
src/java/simpledb/BTreeUtility.java:752
Class
BTreeEntry
Each instance of BTreeEntry stores one key and two child page ids. It is used by BTreeInternalPage as an abstraction to iterate through the entries st
src/java/simpledb/BTreeEntry.java:20
Class
BTreeFile
BTreeFile is an implementation of a DbFile that stores a B+ tree. Specifically, it stores a pointer to a root page, a set of internal pages, and a set
src/java/simpledb/BTreeFile.java:21
Class
BTreeFileDeleteTest
test/simpledb/BTreeFileDeleteTest.java:16
Class
BTreeFileDeleteTest
test/simpledb/systemtest/BTreeFileDeleteTest.java:16
Class
BTreeFileEncoder
BTreeFileEncoder reads a comma delimited text file and converts it to pages of binary data in the appropriate format for simpledb B+ tree pages.
src/java/simpledb/BTreeFileEncoder.java:14
Class
BTreeFileInsertTest
test/simpledb/BTreeFileInsertTest.java:16
Class
BTreeFileInsertTest
test/simpledb/systemtest/BTreeFileInsertTest.java:17
Class
BTreeFileIterator
Helper class that implements the Java Iterator for tuples on a BTreeFile
src/java/simpledb/BTreeFile.java:1077
Class
BTreeFileReadTest
test/simpledb/BTreeFileReadTest.java:15
Class
BTreeHeaderPage
Each instance of BTreeHeaderPage stores data for one page of a BTreeFile and implements the Page interface that is used by BufferPool. @see BTreeFile
src/java/simpledb/BTreeHeaderPage.java:13
Class
BTreeHeaderPageTest
test/simpledb/BTreeHeaderPageTest.java:15
Class
BTreeInserter
Helper class that attempts to insert a tuple in a new thread @return a handle to the Thread that will attempt insertion after it has been started
src/java/simpledb/BTreeUtility.java:664
Class
BTreeInternalPage
Each instance of BTreeInternalPage stores data for one page of a BTreeFile and implements the Page interface that is used by BufferPool. @see BTreeFi
src/java/simpledb/BTreeInternalPage.java:16
Class
BTreeInternalPageIterator
Helper class that implements the Java Iterator for entries on a BTreeInternalPage.
src/java/simpledb/BTreeInternalPage.java:675
Class
BTreeInternalPageReverseIterator
Helper class that implements the Java Iterator for entries on a BTreeInternalPage in reverse.
src/java/simpledb/BTreeInternalPage.java:736
Class
BTreeInternalPageTest
test/simpledb/BTreeInternalPageTest.java:21
Class
BTreeLeafPage
Each instance of BTreeLeafPage stores data for one page of a BTreeFile and implements the Page interface that is used by BufferPool. @see BTreeFile @
src/java/simpledb/BTreeLeafPage.java:14
Class
BTreeLeafPageIterator
Helper class that implements the Java Iterator for tuples on a BTreeLeafPage.
src/java/simpledb/BTreeLeafPage.java:523
Class
BTreeLeafPageReverseIterator
Helper class that implements the Java Iterator for tuples on a BTreeLeafPage in reverse.
src/java/simpledb/BTreeLeafPage.java:571
Class
BTreeLeafPageTest
test/simpledb/BTreeLeafPageTest.java:20
Class
BTreeNextKeyLockingTest
test/simpledb/BTreeNextKeyLockingTest.java:16
Class
BTreePage
Each instance of BTreeInternalPage stores data for one page of a BTreeFile and implements the Page interface that is used by BufferPool. @see BTreeFi
src/java/simpledb/BTreePage.java:13
Class
BTreePageId
Unique identifier for BTreeInternalPage, BTreeLeafPage, BTreeHeaderPage and BTreeRootPtrPage objects.
src/java/simpledb/BTreePageId.java:6
Class
BTreePageIdTest
test/simpledb/BTreePageIdTest.java:13
Class
BTreeReader
Helper class that searches for tuple(s) in a new thread @return a handle to the Thread that will attempt to search for tuple(s) after it has been s
src/java/simpledb/BTreeUtility.java:577
Class
BTreeRootPtrPage
BTreeRootPtrPage stores the pointer to the root node used in the B+ tree and implements Page Interface that is used by BufferPool @see BufferPool
src/java/simpledb/BTreeRootPtrPage.java:11
Class
BTreeRootPtrPageTest
test/simpledb/BTreeRootPtrPageTest.java:16
Class
BTreeScan
BTreeScan is an operator which reads tuples in sorted order according to a predicate
src/java/simpledb/BTreeScan.java:9
Class
BTreeScanTest
Dumps the contents of a table. args[1] is the number of columns. E.g., if it's 5, then BTreeScanTest will end up dumping the contents of f4.0.txt.
test/simpledb/systemtest/BTreeScanTest.java:27
Class
BTreeSearchIterator
Helper class that implements the DbFileIterator for search tuples on a B+ Tree File
src/java/simpledb/BTreeFile.java:1158
Class
BTreeTest
System test for the BTree
test/simpledb/systemtest/BTreeTest.java:28
Class
BTreeUtility
Helper methods used for testing and implementing random features.
src/java/simpledb/BTreeUtility.java:18
Class
BTreeWriter
Helper class that attempts to insert a tuple in a new thread @return a handle to the Thread that will attempt insertion after it has been started
src/java/simpledb/BTreeUtility.java:489
Class
BufferPool
BufferPool manages the reading and writing of pages into memory from disk. Access methods call into it to retrieve pages, and it fetches pages from th
src/java/simpledb/BufferPool.java:18
Class
BufferPoolWriteTest
test/simpledb/BufferPoolWriteTest.java:17
Class
Catalog
The Catalog keeps track of all available tables in the database and their associated schemas. For now, this is a stub catalog that must be populated w
src/java/simpledb/Catalog.java:19
Class
CatalogTest
test/simpledb/CatalogTest.java:18
Class
CostCard
Class returned by {@link JoinOptimizer#computeCostAndCardOfSubplan} specifying the cost and cardinality of the optimal plan represented by plan.
src/java/simpledb/CostCard.java:7
Class
CreateHeapFile
JUnit fixture that creates a heap file and cleans it up afterward.
test/simpledb/TestUtil.java:375
Class
Database
Database is a class that initializes several static variables used by the database system (the catalog, the buffer pool, and the log files, in particu
src/java/simpledb/Database.java:16
Class
DbException
Generic database exception class
src/java/simpledb/DbException.java:6
Interface
DbFile
The interface for database files on disk. Each table is represented by a single DbFile. DbFiles can fetch pages and iterate through tuples. Each file
src/java/simpledb/DbFile.java:14
Interface
DbFileIterator
DbFileIterator is the iterator interface that all SimpleDB Dbfile should implement.
src/java/simpledb/DbFileIterator.java:8
Class
DeadlockException
Exception that is thrown when a deadlock occurs.
src/java/simpledb/DeadlockException.java:6
Class
DeadlockTest
test/simpledb/DeadlockTest.java:12
Class
Debug
Debug is a utility class that wraps println statements and allows more or less command line output to be turned on. <p> Change the value of the DEBUG_
src/java/simpledb/Debug.java:15
Class
Delete
The delete operator. Delete reads tuples from its child operator and removes them from the table they belong to.
src/java/simpledb/Delete.java:9
Class
DeleteTest
test/simpledb/systemtest/DeleteTest.java:9
Class
EntryComparator
Comparator to sort BTreeEntry objects by key
src/java/simpledb/BTreeFileEncoder.java:575
Class
EvictionTest
Creates a heap file with 1024 500 tuples with two integer fields each. Clears the buffer pool, and performs a sequential scan through all of the page
test/simpledb/systemtest/EvictionTest.java:19
Interface
Field
Interface for values of fields in tuples in SimpleDB.
src/java/simpledb/Field.java:8
Class
Filter
Filter is an operator that implements a relational select.
src/java/simpledb/Filter.java:8
Class
FilterBase
test/simpledb/systemtest/FilterBase.java:13
Class
FilterTest
test/simpledb/FilterTest.java:13
Class
FilterTest
test/simpledb/systemtest/FilterTest.java:7
Class
HashEquiJoin
The Join operator implements the relational join operation.
src/java/simpledb/HashEquiJoin.java:8
Class
HeapFile
HeapFile is an implementation of a DbFile that stores a collection of tuples in no particular order. Tuples are stored on pages, each of which is a fi
src/java/simpledb/HeapFile.java:16
Class
HeapFileDuplicates
test/simpledb/BufferPoolWriteTest.java:21
Class
HeapFileEncoder
HeapFileEncoder reads a comma delimited text file or accepts an array of tuples and converts it to pages of binary data in the appropriate format for
src/java/simpledb/HeapFileEncoder.java:14
Class
HeapFileReadTest
test/simpledb/HeapFileReadTest.java:14
Class
HeapFileWriteTest
test/simpledb/HeapFileWriteTest.java:10
Class
HeapPage
Each instance of HeapPage stores data for one page of HeapFiles and implements the Page interface that is used by BufferPool. @see HeapFile @see Buff
src/java/simpledb/HeapPage.java:14
Class
HeapPageId
Unique identifier for HeapPage objects.
src/java/simpledb/HeapPageId.java:4
Class
HeapPageIdTest
test/simpledb/HeapPageIdTest.java:13
Class
HeapPageReadTest
test/simpledb/HeapPageReadTest.java:18
Class
HeapPageWriteTest
test/simpledb/HeapPageWriteTest.java:19
Interface
IndexOpIterator
IndexDBIterator is the interface that index access methods implement in SimpleDb.
src/java/simpledb/IndexOpIterator.java:7
Class
IndexPredicate
IndexPredicate compares a field which has index on it against a given value @see IndexOpIterator
src/java/simpledb/IndexPredicate.java:9
Class
Insert
Inserts tuples read from the child operator into the tableId specified in the constructor
src/java/simpledb/Insert.java:7
Class
InsertTest
We reserve more heavy-duty insertion testing for HeapFile and HeapPage. This suite is superficial.
test/simpledb/InsertTest.java:14
Class
InsertTest
test/simpledb/systemtest/InsertTest.java:10
Class
InstrumentedBTreeFile
Counts the number of readPage operations.
test/simpledb/systemtest/BTreeScanTest.java:68
Class
InstrumentedHeapFile
Counts the number of readPage operations.
test/simpledb/systemtest/ScanTest.java:75
Class
IntField
Instance of Field that stores a single integer.
src/java/simpledb/IntField.java:8
Class
IntHistogram
A class to represent a fixed-width histogram over a single integer-based field.
src/java/simpledb/IntHistogram.java:5
Class
IntHistogramTest
test/simpledb/IntHistogramTest.java:8
Class
IntegerAggregator
Knows how to compute some aggregate over a set of IntFields.
src/java/simpledb/IntegerAggregator.java:6
Class
IntegerAggregatorTest
test/simpledb/IntegerAggregatorTest.java:14
Class
Join
The Join operator implements the relational join operation.
src/java/simpledb/Join.java:8
Class
JoinOptimizer
The JoinOptimizer class is responsible for ordering a series of joins optimally, and for selecting the best instantiation of a join for a given logica
src/java/simpledb/JoinOptimizer.java:13
Class
JoinOptimizerTest
test/simpledb/JoinOptimizerTest.java:17
Class
JoinPredicate
JoinPredicate compares fields of two tuples using a predicate. JoinPredicate is most likely used by the Join operator.
src/java/simpledb/JoinPredicate.java:9
Class
JoinPredicateTest
test/simpledb/JoinPredicateTest.java:10
Class
JoinTest
test/simpledb/JoinTest.java:13
Class
JoinTest
test/simpledb/systemtest/JoinTest.java:11
Class
LockGrabber
Helper class that attempts to acquire a lock on a given page in a new thread. @return a handle to the Thread that will attempt lock acquisition after
test/simpledb/TestUtil.java:309
Class
LockingTest
test/simpledb/LockingTest.java:9
Class
LogFile
<p> The format of the log file is as follows: <ul> <li> The first long integer of the file represents the offset of the last written checkpoint, or
src/java/simpledb/LogFile.java:74
Class
LogTest
Test logging, aborts, and recovery.
test/simpledb/systemtest/LogTest.java:15
Class
LogicalFilterNode
A LogicalFilterNode represents the parameters of a filter in the WHERE clause of a query. <p> Filter is of the form t.f p c <p> Where
src/java/simpledb/LogicalFilterNode.java:9
Class
LogicalJoinNode
A LogicalJoinNode represens the state needed of a join of two tables in a LogicalQueryPlan
src/java/simpledb/LogicalJoinNode.java:5
next →
1–100 of 161, ranked by callers