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
↓ 4 callers
Method
findLeafPage
Recursive function which finds and locks the leaf page in the B+ tree corresponding to the left-most page possibly containing the key field f. It lock
src/java/simpledb/BTreeFile.java:194
↓ 4 callers
Method
getChildId
protected method used by the iterator to get the ith child page id out of this page @param i - the index of the child page id @return the ith child pa
src/java/simpledb/BTreeInternalPage.java:652
↓ 4 callers
Method
getField2
()
src/java/simpledb/JoinPredicate.java:48
↓ 4 callers
Method
getFile
Returns the File backing this HeapFile on disk. @return the File backing this HeapFile on disk.
src/java/simpledb/HeapFile.java:34
↓ 4 callers
Method
getHeaderId
Get the id of the first header page, or null if none exists @return the id of the first header page
src/java/simpledb/BTreeRootPtrPage.java:190
↓ 4 callers
Method
getNextPageId
Get the page id of the next header page @return the page id of the next header page
src/java/simpledb/BTreeHeaderPage.java:201
↓ 4 callers
Method
getPageData
Generates a byte array representing the contents of this page. Used to serialize this page to disk. <p> The invariant here is that it should be possib
src/java/simpledb/Page.java:47
↓ 4 callers
Method
getRandomTupleData
()
test/simpledb/systemtest/BTreeTest.java:75
↓ 4 callers
Method
getRootPtrPage
Get a read lock on the root pointer page. Create the root pointer page and root page if necessary. @param tid - the transaction id @param dirtypages
src/java/simpledb/BTreeFile.java:847
↓ 4 callers
Method
insertTuple
Adds the specified tuple to the page; the tuple should be updated to reflect that it is now stored on this page. @throws DbException if the page is
src/java/simpledb/HeapPage.java:257
↓ 4 callers
Method
isDirty
Get the id of the transaction that last dirtied this page, or null if the page is clean.. @return The id of the transaction that last dirtied this pa
src/java/simpledb/Page.java:29
↓ 4 callers
Method
iterator
@return an iterator over all tuples on this page (calling remove on this iterator throws an UnsupportedOperationException) (note that this iterator sh
src/java/simpledb/HeapPage.java:308
↓ 4 callers
Method
markSlotUsed
Abstraction to fill or clear a slot on this page.
src/java/simpledb/BTreeLeafPage.java:467
↓ 4 callers
Method
merge
Merge two TupleDescs into one, with td1.numFields + td2.numFields fields, with the first td1.numFields coming from td1 and the remaining from td2. @p
src/java/simpledb/TupleDesc.java:147
↓ 4 callers
Method
next
Returns the next tuple, or throws NoSuchElementException if the iterator is closed. @return The next tuple in the iterator @throws DbException
src/java/simpledb/Query.java:81
↓ 4 callers
Method
open
()
src/java/simpledb/Insert.java:34
↓ 4 callers
Method
open
()
src/java/simpledb/SeqScan.java:72
↓ 4 callers
Method
openBTreeFile
Opens a BTreeFile and adds it to the catalog. @param cols number of columns in the table. @param f location of the file storing the table. @param key
src/java/simpledb/BTreeUtility.java:424
↓ 4 callers
Method
orderJoins
Compute a logical, reasonably efficient join on the specified tables. See PS4 for hints on how this should be implemented. @param stats St
src/java/simpledb/JoinOptimizer.java:216
↓ 4 callers
Method
parseQueryLogicalPlan
(TransactionId tid, ZQuery q)
src/java/simpledb/Parser.java:135
↓ 4 callers
Method
rewind
()
src/java/simpledb/BTreeScan.java:142
↓ 4 callers
Method
setHeaderId
Set the page id of the first header page @param id - the id of the first header page @throws DbException if the id is invalid
src/java/simpledb/BTreeRootPtrPage.java:202
↓ 4 callers
Method
startWriter
Helper method to clean up the syntax of starting a BTreeWriter thread. The parameters pass through to the BTreeWriter constructor.
test/simpledb/BTreeDeadlockTest.java:78
↓ 4 callers
Method
stealFromLeafPage
Steal tuples from a sibling and copy them to the given page so that both pages are at least half full. Update the parent's entry so that the key matc
src/java/simpledb/BTreeFile.java:577
↓ 4 callers
Method
stringToInt
Convert a string to an integer, with the property that if the return value(s1) < return value(s2), then s1 < s2
src/java/simpledb/StringHistogram.java:27
↓ 4 callers
Method
transactionComplete
Handle the details of transaction commit / abort
src/java/simpledb/Transaction.java:43
↓ 4 callers
Method
validateInsert
(int columns, int sourceRows, int destinationRows)
test/simpledb/systemtest/InsertTest.java:11
↓ 4 callers
Method
validateTransactions
(int threads)
test/simpledb/systemtest/TransactionTest.java:25
↓ 4 callers
Method
writePageData
(RandomAccessFile raf, Page p)
src/java/simpledb/LogFile.java:221
↓ 3 callers
Method
addProjectField
Add a specified field/aggregate combination to the select list of the query. Fields are output by the query such that the rightmost field is t
src/java/simpledb/LogicalPlan.java:177
↓ 3 callers
Method
addScan
Add a scan to the plan. One scan node needs to be added for each alias of a table accessed by the plan. @param table the id of the tab
src/java/simpledb/LogicalPlan.java:165
↓ 3 callers
Method
await
()
test/simpledb/systemtest/TransactionTest.java:176
↓ 3 callers
Method
close
()
src/java/simpledb/Insert.java:38
↓ 3 callers
Method
close
()
src/java/simpledb/SeqScan.java:102
↓ 3 callers
Method
combinedStringArrays
Ensures that combined's field names = td1's field names + td2's field names
test/simpledb/TupleDescTest.java:52
↓ 3 callers
Method
createEmptyHeapFile
A utility method to create a new HeapFile with a single empty page, assuming the path does not already exist. If the path exists, the file will be ove
src/java/simpledb/Utility.java:103
↓ 3 callers
Method
createEmptyPageData
Static method to generate a byte array corresponding to an empty BTreeRootPtrPage. Used to add new, empty pages to the file. Passing the results of th
src/java/simpledb/BTreeRootPtrPage.java:124
↓ 3 callers
Method
createRandomHeapFileUnopened
(int columns, int rows, int maxValue, Map<Integer, Integer> columnSpecification, Array
test/simpledb/systemtest/SystemTestUtil.java:55
↓ 3 callers
Method
dontInsert
(HeapFile hf, int t1, int t2)
test/simpledb/systemtest/LogTest.java:87
↓ 3 callers
Method
estimateJoinCardinality
Estimate the cardinality of a join. The cardinality of a join is the number of tuples produced by the join. @param j A LogicalJoinNode rep
src/java/simpledb/JoinOptimizer.java:137
↓ 3 callers
Method
estimateJoinCost
Estimate the cost of a join. The cost of the join should be calculated based on the join algorithm (or algorithms) that you implemented for Lab 2. It
src/java/simpledb/JoinOptimizer.java:103
↓ 3 callers
Method
estimateTableJoinCardinality
Estimate the join cardinality of two tables.
src/java/simpledb/JoinOptimizer.java:153
↓ 3 callers
Method
findMagicTuple
(HeapFile f, Transaction t)
test/simpledb/systemtest/EvictionTest.java:62
↓ 3 callers
Method
force
()
src/java/simpledb/LogFile.java:506
↓ 3 callers
Method
getAlias
@return Return the alias of the table this operator scans.
src/java/simpledb/SeqScan.java:46
↓ 3 callers
Method
getBTreeEntry
@return a BTreeEntry with an IntField with value n and with RecordId(BTreePageId(1,2, BTreePageId.INTERNAL), 3)
src/java/simpledb/BTreeUtility.java:82
↓ 3 callers
Method
getChildren
@return return the children DbIterators of this operator. If there is only one child, return an array of only one element. For join op
src/java/simpledb/Operator.java:71
↓ 3 callers
Method
getEmptyPage
Method to encapsulate the process of creating a new page. It reuses old pages if possible, and creates a new page if none are available. It wipes th
src/java/simpledb/BTreeFile.java:941
↓ 3 callers
Method
getEmptyPageNo
Get the page number of the first empty page in this BTreeFile. Creates a new page if none of the existing pages are empty. @param tid - the transacti
src/java/simpledb/BTreeFile.java:877
↓ 3 callers
Method
getId
@return the PageId associated with this page.
src/java/simpledb/BTreeHeaderPage.java:119
↓ 3 callers
Method
getParentId
Unit test for BTreeLeafPage.getParentId()
test/simpledb/BTreeLeafPageTest.java:86
↓ 3 callers
Method
getRandomTableScanCosts
(int[] pageNums, int[] ioCosts)
test/simpledb/TableStatsTest.java:31
↓ 3 callers
Method
iterator
(TransactionId tid)
src/java/simpledb/HeapFile.java:100
↓ 3 callers
Method
logCheckpoint
Checkpoint the log and write a checkpoint record.
src/java/simpledb/LogFile.java:320
↓ 3 callers
Method
markDirty
Marks this page as dirty/not dirty and record that transaction that did the dirtying
src/java/simpledb/HeapPage.java:266
↓ 3 callers
Method
maxVal
@return the maximum value indexed by the histogram
src/java/simpledb/StringHistogram.java:53
↓ 3 callers
Method
mergeInternalPages
Merge two internal pages by moving all entries from the right page to the left page and "pulling down" the corresponding key from the parent entry. De
src/java/simpledb/BTreeFile.java:744
↓ 3 callers
Method
mergeLeafPages
Merge two leaf pages by moving all tuples from the right page to the left page. Delete the corresponding key and right child pointer from the parent,
src/java/simpledb/BTreeFile.java:712
↓ 3 callers
Method
minVal
@return the minimum value indexed by the histogram
src/java/simpledb/StringHistogram.java:58
↓ 3 callers
Method
open
()
src/java/simpledb/Join.java:61
↓ 3 callers
Method
open
()
src/java/simpledb/TupleIterator.java:36
↓ 3 callers
Method
processNextStatement
(String s)
src/java/simpledb/Parser.java:495
↓ 3 callers
Method
rerun
(BTreeFile bf, BlockingQueue<ArrayList<Integer>> insertedTuples)
src/java/simpledb/BTreeUtility.java:822
↓ 3 callers
Method
reverseIterator
@return a reverse iterator over all tuples on this page (calling remove on this iterator throws an UnsupportedOperationException) (note that this iter
src/java/simpledb/BTreeLeafPage.java:490
↓ 3 callers
Method
setNextPageId
Set the page id of the next header page @param id - the page id of the next header page @throws DbException
src/java/simpledb/BTreeHeaderPage.java:233
↓ 3 callers
Method
setPageSize
(int pageSize)
src/java/simpledb/BufferPool.java:43
↓ 3 callers
Method
setPhysicalPlan
(OpIterator pp)
src/java/simpledb/Query.java:36
↓ 3 callers
Method
setPrevPageId
Set the page id of the previous header page @param id - the page id of the previous header page @throws DbException
src/java/simpledb/BTreeHeaderPage.java:213
↓ 3 callers
Method
setRecordId
set the record id for this entry @param rid - the new record id
src/java/simpledb/BTreeEntry.java:125
↓ 3 callers
Method
splitLeafPage
Split a leaf page to make room for new tuples and recursively split the parent node as needed to accommodate a new entry. The new entry should have a
src/java/simpledb/BTreeFile.java:240
↓ 3 callers
Method
start
(String[] argv)
src/java/simpledb/Parser.java:607
↓ 3 callers
Method
updateEntries
Recursive function to update the entries by adding a new Entry at a particular level @param entries - the list of entries @param bf - the BTreefile @
src/java/simpledb/BTreeFileEncoder.java:461
↓ 3 callers
Method
validateJoin
(int table1ColumnValue, int table1Rows, int table2ColumnValue, int table2Rows)
test/simpledb/systemtest/JoinTest.java:13
↓ 3 callers
Method
waitForInserterThreads
(ArrayList<BTreeInserter> insertThreads)
test/simpledb/systemtest/BTreeTest.java:55
↓ 2 callers
Method
abort
(Transaction t)
test/simpledb/systemtest/LogTest.java:74
↓ 2 callers
Method
abort
Finish the transaction
src/java/simpledb/Transaction.java:38
↓ 2 callers
Method
addFilter
Add a new filter to the logical plan @param field The name of the over which the filter applies; this can be a fully qualified field (tablename.fi
src/java/simpledb/LogicalPlan.java:98
↓ 2 callers
Method
addJoin
Add a join between two fields of two different tables. @param joinField1 The name of the first join field; this can be a fully qualified name (e.g.,
src/java/simpledb/LogicalPlan.java:120
↓ 2 callers
Method
aggregateFieldName
@return return the name of the aggregate field in the <b>OUTPUT</b> tuples
src/java/simpledb/Aggregate.java:68
↓ 2 callers
Method
aggregateOp
@return return the aggregate operator
src/java/simpledb/Aggregate.java:76
↓ 2 callers
Method
checkAndMerge
(SubtreeSummary accleft, SubtreeSummary right)
src/java/simpledb/BTreeChecker.java:34
↓ 2 callers
Method
checkQuadratic
Checks if the sequence represents a quadratic sequence (approximately) ret[0] is true if the sequence is quadratic ret[1] is the common difference of
test/simpledb/systemtest/SystemTestUtil.java:190
↓ 2 callers
Method
convert
Encode the file using the BTreeFile's Insert method. @param tuples - list of tuples to add to the file @param hFile - the file to temporarily store t
src/java/simpledb/BTreeFileEncoder.java:26
↓ 2 callers
Method
convertToRootPtrPage
Create a byte array in the format of a BTreeRootPtrPage @param root - the page number of the root page @param rootCategory - the category of the root
src/java/simpledb/BTreeFileEncoder.java:709
↓ 2 callers
Method
createBTreeFile
creates a non random B+ tree file for testing @param columns - number of columns @param rows - number of rows @param columnSpecification - optional co
src/java/simpledb/BTreeUtility.java:379
↓ 2 callers
Method
createEmptyPageData
Static method to generate a byte array corresponding to an empty BTreePage. Used to add new, empty pages to the file. Passing the results of this meth
src/java/simpledb/BTreePage.java:73
↓ 2 callers
Method
createTable
(int column, int columnValue)
test/simpledb/systemtest/FilterBase.java:52
↓ 2 callers
Method
deleteEntry
Delete the specified entry (key + 1 child pointer) from the page. The recordId is used to find the specified entry, so it must not be null. After dele
src/java/simpledb/BTreeInternalPage.java:347
↓ 2 callers
Method
doesJoin
Return true if the specified table is in the list of joins, false otherwise
src/java/simpledb/JoinOptimizer.java:382
↓ 2 callers
Method
fetchNext
Returns the next Tuple in the iterator, or null if the iteration is finished. Operator uses this method to implement both <code>next</code> and <code>
src/java/simpledb/Operator.java:44
↓ 2 callers
Method
generateRandomTuples
Generate a random set of tuples for testing @param columns - number of columns @param rows - number of rows @param maxValue - the maximum random value
src/java/simpledb/BTreeUtility.java:169
↓ 2 callers
Method
getCard
Find the cardinality of the best join order in the cache for the specified plan @param s the set of joins to look up the best cardinality for
src/java/simpledb/PlanCache.java:47
↓ 2 callers
Method
getCost
Find the cost of the best join order in the cache for the specified plan @param s the set of joins to look up the best cost for @retu
src/java/simpledb/PlanCache.java:39
↓ 2 callers
Method
getDiff
(double[] sequence)
test/simpledb/systemtest/SystemTestUtil.java:177
↓ 2 callers
Method
getError
@return an Exception instance if one occurred while inserting the tuple; null otherwise
src/java/simpledb/BTreeUtility.java:564
↓ 2 callers
Method
getHeaderSize
Computes the number of bytes in the header while saving room for pointers
src/java/simpledb/BTreeHeaderPage.java:78
↓ 2 callers
Method
getId
@return the PageId associated with this page.
src/java/simpledb/HeapPage.java:113
↓ 2 callers
Method
getId
@return the PageId associated with this page.
src/java/simpledb/BTreePage.java:60
↓ 2 callers
Method
getId
Returns a unique ID used to identify this DbFile in the Catalog. This id can be used to look up the table via {@link Catalog#getDatabaseFile} and {@li
src/java/simpledb/DbFile.java:84
↓ 2 callers
Method
getJoinField1Name
@return the field name of join field1. Should be quantified by alias or table name.
src/java/simpledb/Join.java:37
← previous
next →
201–300 of 1,070, ranked by callers