Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MIT-DB-Class/simple-db-hw
/ functions
Functions
1,070 in github.com/MIT-DB-Class/simple-db-hw
⨍
Functions
1,070
◇
Types & classes
161
↓ 1 callers
Method
getParentId
Unit test for BTreeInternalPage.getParentId()
test/simpledb/BTreeInternalPageTest.java:88
↓ 1 callers
Method
getQueryPlanTree
(OpIterator physicalPlan)
src/java/simpledb/QueryPlanVisualizer.java:362
↓ 1 callers
Method
getRecordId
@return the record id of this entry, representing the location of this entry in a BTreeFile. May be null if this entry is not stored on any page in th
src/java/simpledb/BTreeEntry.java:81
↓ 1 callers
Method
getStrings
@return a String array of length len populated with the (possibly null) strings in val, and an appended increasing integer at the end (val1, val2, etc
src/java/simpledb/Utility.java:23
↓ 1 callers
Method
getTableId
@return the table associated with this PageId
src/java/simpledb/HeapPageId.java:18
↓ 1 callers
Method
getTableId
Given a table alias, return id of the table object (this id can be supplied to {@link Catalog#getDatabaseFile(int)}). Aliases are added as bas
src/java/simpledb/LogicalPlan.java:75
↓ 1 callers
Method
getTotalRecords
()
src/java/simpledb/LogFile.java:138
↓ 1 callers
Method
getTupleDesc
()
src/java/simpledb/Project.java:44
↓ 1 callers
Method
getTupleDesc
()
src/java/simpledb/Insert.java:29
↓ 1 callers
Method
getTupleDesc
()
src/java/simpledb/Filter.java:30
↓ 1 callers
Method
getTupleDesc
@see simpledb.TupleDesc#merge(TupleDesc, TupleDesc) for possible implementation logic.
src/java/simpledb/Join.java:56
↓ 1 callers
Method
grabLock
Generic unit test structure to grab an additional lock in a new thread. @param tid the transaction Id @param pid the first page to lock over @param p
test/simpledb/LockingTest.java:84
↓ 1 callers
Method
handleDeleteStatement
(ZDelete s, TransactionId tid)
src/java/simpledb/Parser.java:397
↓ 1 callers
Method
handleInsertStatement
(ZInsert s, TransactionId tId)
src/java/simpledb/Parser.java:323
↓ 1 callers
Method
handleMinOccupancyInternalPage
Handle the case when an internal page becomes less than half full due to deletions. If one of its siblings has extra entries, redistribute those entri
src/java/simpledb/BTreeFile.java:605
↓ 1 callers
Method
handleMinOccupancyLeafPage
Handle the case when a leaf page becomes less than half full due to deletions. If one of its siblings has extra tuples, redistribute those tuples. Oth
src/java/simpledb/BTreeFile.java:531
↓ 1 callers
Method
handleQueryStatement
(ZQuery s, TransactionId tId)
src/java/simpledb/Parser.java:276
↓ 1 callers
Method
handleTransactStatement
(ZTransactStmt s)
src/java/simpledb/Parser.java:430
↓ 1 callers
Method
hasNext
@return true if there are more tuples remaining.
src/java/simpledb/Query.java:65
↓ 1 callers
Method
hasNext
()
src/java/simpledb/BTreeInternalPage.java:685
↓ 1 callers
Method
hasNext
()
src/java/simpledb/BTreeInternalPage.java:750
↓ 1 callers
Method
hasNext
()
src/java/simpledb/BTreeLeafPage.java:532
↓ 1 callers
Method
hasNext
()
src/java/simpledb/BTreeLeafPage.java:581
↓ 1 callers
Method
instantiateJoin
Return best iterator for computing a given logical join, given the specified statistics, and the provided left and right subplans. Note that there is
src/java/simpledb/JoinOptimizer.java:45
↓ 1 callers
Method
loadSchema
Reads the schema from a file and creates the appropriate tables in the database. @param catalogFile
src/java/simpledb/Catalog.java:112
↓ 1 callers
Method
logCommit
Write a commit record to disk for the specified tid, and force the log to disk. @param tid The committing transaction.
src/java/simpledb/LogFile.java:176
↓ 1 callers
Method
logTruncate
Truncate any unneeded portion of the log to reduce its space consumption
src/java/simpledb/LogFile.java:362
↓ 1 callers
Method
logXactionBegin
Write a BEGIN record for the specified transaction @param tid The transaction that is beginning
src/java/simpledb/LogFile.java:302
↓ 1 callers
Method
notParticipating
()
test/simpledb/systemtest/TransactionTest.java:181
↓ 1 callers
Method
open
Open this iterator by getting an iterator on the first leaf page
src/java/simpledb/BTreeFile.java:1098
↓ 1 callers
Method
open
Open this iterator by getting an iterator on the first leaf page applicable for the given predicate operation
src/java/simpledb/BTreeFile.java:1183
↓ 1 callers
Method
open
()
src/java/simpledb/Delete.java:31
↓ 1 callers
Method
print
Print out a human readable represenation of the log
src/java/simpledb/LogFile.java:502
↓ 1 callers
Method
printTree
(SubTreeDescriptor root, char[] buffer, int width)
src/java/simpledb/QueryPlanVisualizer.java:337
↓ 1 callers
Method
readFileBytes
@return a byte array containing the contents of the file 'path'
test/simpledb/TestUtil.java:172
↓ 1 callers
Method
readNextChild
Read child pointers from the source file.
src/java/simpledb/BTreeInternalPage.java:196
↓ 1 callers
Method
readNextKey
Read keys from the source file.
src/java/simpledb/BTreeInternalPage.java:167
↓ 1 callers
Method
readNextTuple
Suck up tuples from the source file.
src/java/simpledb/HeapPage.java:121
↓ 1 callers
Method
readNextTuple
Read tuples from the source file.
src/java/simpledb/BTreeLeafPage.java:159
↓ 1 callers
Method
recover
Recover the database system by ensuring that the updates of committed transactions are installed and that the updates of uncommitted t
src/java/simpledb/LogFile.java:492
↓ 1 callers
Method
reset
Reset the tableid, and tableAlias of this operator. @param tableid the table to scan. @param tableAlias the alias of this table
src/java/simpledb/BTreeScan.java:75
↓ 1 callers
Method
rewind
()
src/java/simpledb/Aggregate.java:102
↓ 1 callers
Method
rewind
()
src/java/simpledb/Filter.java:44
↓ 1 callers
Method
rewind
()
src/java/simpledb/Join.java:70
↓ 1 callers
Method
rewind
()
src/java/simpledb/SeqScan.java:106
↓ 1 callers
Method
rollback
Rollback the specified transaction, setting the state of any of pages it updated to their pre-updated state. To preserve transaction
src/java/simpledb/LogFile.java:464
↓ 1 callers
Method
run
()
src/java/simpledb/BTreeUtility.java:684
↓ 1 callers
Method
run
()
src/java/simpledb/BTreeUtility.java:771
↓ 1 callers
Method
serialize
Return a representation of this page id object as a collection of integers (used for logging) This class MUST have a constructor that
src/java/simpledb/PageId.java:12
↓ 1 callers
Method
setBeforeImage
()
src/java/simpledb/HeapPage.java:103
↓ 1 callers
Method
setBeforeImage
()
src/java/simpledb/BTreeInternalPage.java:157
↓ 1 callers
Method
setBeforeImage
()
src/java/simpledb/BTreeLeafPage.java:149
↓ 1 callers
Method
setBeforeImage
()
src/java/simpledb/BTreeRootPtrPage.java:50
↓ 1 callers
Method
setBeforeImage
()
src/java/simpledb/BTreeHeaderPage.java:109
↓ 1 callers
Method
setLogicalPlan
(LogicalPlan lp)
src/java/simpledb/Query.java:28
↓ 1 callers
Method
setParents
Recursive function to set all the parent pointers @param bf - the BTreeFile @param pid - id of the page to update with the parent pointer @param pare
src/java/simpledb/BTreeFileEncoder.java:367
↓ 1 callers
Method
setRightSiblingPtrs
Set all the right sibling pointers by following the left sibling pointers @param bf - the BTreeFile @param pid - the id of the page to update with th
src/java/simpledb/BTreeFileEncoder.java:347
↓ 1 callers
Method
setTransaction
(Transaction t)
src/java/simpledb/Parser.java:487
↓ 1 callers
Method
startDeleter
Helper method to clean up the syntax of starting a BTreeDeleter thread. The parameters pass through to the BTreeDeleter constructor.
test/simpledb/systemtest/BTreeTest.java:48
↓ 1 callers
Method
stillParticipating
()
test/simpledb/systemtest/TransactionTest.java:185
↓ 1 callers
Method
swapInnerOuter
Return a new LogicalJoinNode with the inner and outer (t1.f1 and t2.f2) tables swapped.
src/java/simpledb/LogicalJoinNode.java:49
↓ 1 callers
Method
tableIdIterator
()
src/java/simpledb/Catalog.java:93
↓ 1 callers
Method
updateAggregateCardinality
(Aggregate a, Map<String, Integer> tableAliasToId, Map<String, TableStats> tableStats)
src/java/simpledb/OperatorCardinality.java:204
↓ 1 callers
Method
updateFilterCardinality
(Filter f, Map<String, Integer> tableAliasToId, Map<String, TableStats> tableStats)
src/java/simpledb/OperatorCardinality.java:55
↓ 1 callers
Method
updateHashEquiJoinCardinality
(HashEquiJoin j, Map<String, Integer> tableAliasToId, Map<String, TableStats> tableSta
src/java/simpledb/OperatorCardinality.java:147
↓ 1 callers
Method
updateJoinCardinality
(Join j, Map<String, Integer> tableAliasToId, Map<String, TableStats> tableStats)
src/java/simpledb/OperatorCardinality.java:91
↓ 1 callers
Method
validateAggregate
(DbFile table, Aggregator.Op operation, int aggregateColumn, int groupColumn, ArrayList<ArrayList<Integer>> ex
test/simpledb/systemtest/AggregateTest.java:13
↓ 1 callers
Method
validateScan
Tests the scan operator for a table with the specified dimensions.
test/simpledb/systemtest/ScanTest.java:26
↓ 1 callers
Method
validateScan
Tests the scan operator for a table with the specified dimensions.
test/simpledb/systemtest/BTreeScanTest.java:31
↓ 1 callers
Method
writePage
(Page page)
src/java/simpledb/HeapFile.java:70
Method
Aggregate
Constructor. Implementation hint: depending on the type of afield, you will want to construct an {@link IntegerAggregator} or {@link StringAggregator
src/java/simpledb/Aggregate.java:32
Method
BTreeDeleter
@param bf the B+ tree file from which we want to delete the tuple(s) @param the list of tuples to delete
src/java/simpledb/BTreeUtility.java:767
Method
BTreeEntry
Constructor to create a new BTreeEntry @param key - the key @param leftChild - page id of the left child @param rightChild - page id of the right chil
src/java/simpledb/BTreeEntry.java:50
Method
BTreeFile
Constructs a B+ tree file backed by the specified file. @param f - the file that stores the on-disk backing store for this B+ tree file. @
src/java/simpledb/BTreeFile.java:36
Method
BTreeFileIterator
Constructor for this iterator @param f - the BTreeFile containing the tuples @param tid - the transaction id
src/java/simpledb/BTreeFile.java:1090
Method
BTreeHeaderPage
Create a BTreeHeaderPage from a set of bytes of data read from disk. The format of a BTreeHeaderPage is two pointers to the next and previous header p
src/java/simpledb/BTreeHeaderPage.java:37
Method
BTreeInserter
@param bf the B+ tree file into which we want to insert the tuple @param tupdata the data of the tuple to insert @param the list of tuples that were s
src/java/simpledb/BTreeUtility.java:680
Method
BTreeInternalPage
Create a BTreeInternalPage from a set of bytes of data read from disk. The format of a BTreeInternalPage is a set of header bytes indicating the slots
src/java/simpledb/BTreeInternalPage.java:68
Method
BTreeInternalPageIterator
(BTreeInternalPage p)
src/java/simpledb/BTreeInternalPage.java:681
Method
BTreeInternalPageReverseIterator
(BTreeInternalPage p)
src/java/simpledb/BTreeInternalPage.java:742
Method
BTreeLeafPage
Create a BTreeLeafPage from a set of bytes of data read from disk. The format of a BTreeLeafPage is a set of header bytes indicating the slots of the
src/java/simpledb/BTreeLeafPage.java:64
Method
BTreeLeafPageIterator
(BTreeLeafPage p)
src/java/simpledb/BTreeLeafPage.java:528
Method
BTreeLeafPageReverseIterator
(BTreeLeafPage p)
src/java/simpledb/BTreeLeafPage.java:576
Method
BTreePage
Create a BTreeInternalPage from a set of bytes of data read from disk. The format of a BTreeInternalPage is a set of header bytes indicating the slots
src/java/simpledb/BTreePage.java:51
Method
BTreePageId
Constructor. Create a page id structure for a specific page of a specific table. @param tableId The table that is being referenced @param pgNo The pa
src/java/simpledb/BTreePageId.java:40
Method
BTreeReader
@param tid the transaction on whose behalf we want to search for the tuple(s) @param bf the B+ tree file containing the tuple(s) @param f the field to
src/java/simpledb/BTreeUtility.java:594
Method
BTreeRootPtrPage
Constructor. Construct the BTreeRootPtrPage from a set of bytes of data read from disk. The format of an BTreeRootPtrPage is an integer for the page n
src/java/simpledb/BTreeRootPtrPage.java:36
Method
BTreeScan
Creates a B+ tree scan over the specified table as a part of the specified transaction. @param tid The transaction this scan is running as
src/java/simpledb/BTreeScan.java:40
Method
BTreeSearchIterator
Constructor for this iterator @param f - the BTreeFile containing the tuples @param tid - the transaction id @param ipred - the predicate to filter on
src/java/simpledb/BTreeFile.java:1173
Method
BTreeWriter
@param tid the transaction on whose behalf we want to insert the tuple @param bf the B+ tree file into which we want to insert the tuple @param item t
src/java/simpledb/BTreeUtility.java:506
Method
BufferPool
Creates a BufferPool that caches up to numPages pages. @param numPages maximum number of pages in this buffer pool.
src/java/simpledb/BufferPool.java:34
Method
Catalog
Constructor. Creates a new, empty catalog.
src/java/simpledb/Catalog.java:25
Method
CreateHeapFile
()
test/simpledb/TestUtil.java:376
Method
Database
()
src/java/simpledb/Database.java:24
Method
DbException
(String s)
src/java/simpledb/DbException.java:9
Method
DeadlockException
()
src/java/simpledb/DeadlockException.java:9
Method
Delete
Constructor specifying the transaction that this delete belongs to as well as the child to read from. @param t The transaction this delete
src/java/simpledb/Delete.java:22
Method
Filter
Constructor accepts a predicate to apply and a child operator to read tuples to filter from. @param p The predicate to filter tuples with
src/java/simpledb/Filter.java:21
Method
HashEquiJoin
Constructor. Accepts to children to join and the predicate to join them on @param p The predicate to use to join the children @param child
src/java/simpledb/HashEquiJoin.java:28
Method
HeapFile
Constructs a heap file backed by the specified file. @param f the file that stores the on-disk backing store for this heap file
src/java/simpledb/HeapFile.java:25
← previous
next →
401–500 of 1,070, ranked by callers