MCPcopy Create free account

hub / github.com/MIT-DB-Class/simple-db-hw / functions

Functions1,070 in github.com/MIT-DB-Class/simple-db-hw

↓ 4 callersMethodfindLeafPage
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 callersMethodgetChildId
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 callersMethodgetField2
()
src/java/simpledb/JoinPredicate.java:48
↓ 4 callersMethodgetFile
Returns the File backing this HeapFile on disk. @return the File backing this HeapFile on disk.
src/java/simpledb/HeapFile.java:34
↓ 4 callersMethodgetHeaderId
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 callersMethodgetNextPageId
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 callersMethodgetPageData
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 callersMethodgetRandomTupleData
()
test/simpledb/systemtest/BTreeTest.java:75
↓ 4 callersMethodgetRootPtrPage
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 callersMethodinsertTuple
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 callersMethodisDirty
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 callersMethoditerator
@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 callersMethodmarkSlotUsed
Abstraction to fill or clear a slot on this page.
src/java/simpledb/BTreeLeafPage.java:467
↓ 4 callersMethodmerge
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 callersMethodnext
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 callersMethodopen
()
src/java/simpledb/Insert.java:34
↓ 4 callersMethodopen
()
src/java/simpledb/SeqScan.java:72
↓ 4 callersMethodopenBTreeFile
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 callersMethodorderJoins
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 callersMethodparseQueryLogicalPlan
(TransactionId tid, ZQuery q)
src/java/simpledb/Parser.java:135
↓ 4 callersMethodrewind
()
src/java/simpledb/BTreeScan.java:142
↓ 4 callersMethodsetHeaderId
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 callersMethodstartWriter
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 callersMethodstealFromLeafPage
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 callersMethodstringToInt
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 callersMethodtransactionComplete
Handle the details of transaction commit / abort
src/java/simpledb/Transaction.java:43
↓ 4 callersMethodvalidateInsert
(int columns, int sourceRows, int destinationRows)
test/simpledb/systemtest/InsertTest.java:11
↓ 4 callersMethodvalidateTransactions
(int threads)
test/simpledb/systemtest/TransactionTest.java:25
↓ 4 callersMethodwritePageData
(RandomAccessFile raf, Page p)
src/java/simpledb/LogFile.java:221
↓ 3 callersMethodaddProjectField
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 callersMethodaddScan
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 callersMethodawait
()
test/simpledb/systemtest/TransactionTest.java:176
↓ 3 callersMethodclose
()
src/java/simpledb/Insert.java:38
↓ 3 callersMethodclose
()
src/java/simpledb/SeqScan.java:102
↓ 3 callersMethodcombinedStringArrays
Ensures that combined's field names = td1's field names + td2's field names
test/simpledb/TupleDescTest.java:52
↓ 3 callersMethodcreateEmptyHeapFile
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 callersMethodcreateEmptyPageData
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 callersMethodcreateRandomHeapFileUnopened
(int columns, int rows, int maxValue, Map<Integer, Integer> columnSpecification, Array
test/simpledb/systemtest/SystemTestUtil.java:55
↓ 3 callersMethoddontInsert
(HeapFile hf, int t1, int t2)
test/simpledb/systemtest/LogTest.java:87
↓ 3 callersMethodestimateJoinCardinality
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 callersMethodestimateJoinCost
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 callersMethodestimateTableJoinCardinality
Estimate the join cardinality of two tables.
src/java/simpledb/JoinOptimizer.java:153
↓ 3 callersMethodfindMagicTuple
(HeapFile f, Transaction t)
test/simpledb/systemtest/EvictionTest.java:62
↓ 3 callersMethodforce
()
src/java/simpledb/LogFile.java:506
↓ 3 callersMethodgetAlias
@return Return the alias of the table this operator scans.
src/java/simpledb/SeqScan.java:46
↓ 3 callersMethodgetBTreeEntry
@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 callersMethodgetChildren
@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 callersMethodgetEmptyPage
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 callersMethodgetEmptyPageNo
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 callersMethodgetId
@return the PageId associated with this page.
src/java/simpledb/BTreeHeaderPage.java:119
↓ 3 callersMethodgetParentId
Unit test for BTreeLeafPage.getParentId()
test/simpledb/BTreeLeafPageTest.java:86
↓ 3 callersMethodgetRandomTableScanCosts
(int[] pageNums, int[] ioCosts)
test/simpledb/TableStatsTest.java:31
↓ 3 callersMethoditerator
(TransactionId tid)
src/java/simpledb/HeapFile.java:100
↓ 3 callersMethodlogCheckpoint
Checkpoint the log and write a checkpoint record.
src/java/simpledb/LogFile.java:320
↓ 3 callersMethodmarkDirty
Marks this page as dirty/not dirty and record that transaction that did the dirtying
src/java/simpledb/HeapPage.java:266
↓ 3 callersMethodmaxVal
@return the maximum value indexed by the histogram
src/java/simpledb/StringHistogram.java:53
↓ 3 callersMethodmergeInternalPages
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 callersMethodmergeLeafPages
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 callersMethodminVal
@return the minimum value indexed by the histogram
src/java/simpledb/StringHistogram.java:58
↓ 3 callersMethodopen
()
src/java/simpledb/Join.java:61
↓ 3 callersMethodopen
()
src/java/simpledb/TupleIterator.java:36
↓ 3 callersMethodprocessNextStatement
(String s)
src/java/simpledb/Parser.java:495
↓ 3 callersMethodrerun
(BTreeFile bf, BlockingQueue<ArrayList<Integer>> insertedTuples)
src/java/simpledb/BTreeUtility.java:822
↓ 3 callersMethodreverseIterator
@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 callersMethodsetNextPageId
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 callersMethodsetPageSize
(int pageSize)
src/java/simpledb/BufferPool.java:43
↓ 3 callersMethodsetPhysicalPlan
(OpIterator pp)
src/java/simpledb/Query.java:36
↓ 3 callersMethodsetPrevPageId
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 callersMethodsetRecordId
set the record id for this entry @param rid - the new record id
src/java/simpledb/BTreeEntry.java:125
↓ 3 callersMethodsplitLeafPage
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 callersMethodstart
(String[] argv)
src/java/simpledb/Parser.java:607
↓ 3 callersMethodupdateEntries
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 callersMethodvalidateJoin
(int table1ColumnValue, int table1Rows, int table2ColumnValue, int table2Rows)
test/simpledb/systemtest/JoinTest.java:13
↓ 3 callersMethodwaitForInserterThreads
(ArrayList<BTreeInserter> insertThreads)
test/simpledb/systemtest/BTreeTest.java:55
↓ 2 callersMethodabort
(Transaction t)
test/simpledb/systemtest/LogTest.java:74
↓ 2 callersMethodabort
Finish the transaction
src/java/simpledb/Transaction.java:38
↓ 2 callersMethodaddFilter
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 callersMethodaddJoin
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 callersMethodaggregateFieldName
@return return the name of the aggregate field in the <b>OUTPUT</b> tuples
src/java/simpledb/Aggregate.java:68
↓ 2 callersMethodaggregateOp
@return return the aggregate operator
src/java/simpledb/Aggregate.java:76
↓ 2 callersMethodcheckAndMerge
(SubtreeSummary accleft, SubtreeSummary right)
src/java/simpledb/BTreeChecker.java:34
↓ 2 callersMethodcheckQuadratic
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 callersMethodconvert
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 callersMethodconvertToRootPtrPage
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 callersMethodcreateBTreeFile
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 callersMethodcreateEmptyPageData
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 callersMethodcreateTable
(int column, int columnValue)
test/simpledb/systemtest/FilterBase.java:52
↓ 2 callersMethoddeleteEntry
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 callersMethoddoesJoin
Return true if the specified table is in the list of joins, false otherwise
src/java/simpledb/JoinOptimizer.java:382
↓ 2 callersMethodfetchNext
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 callersMethodgenerateRandomTuples
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 callersMethodgetCard
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 callersMethodgetCost
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 callersMethodgetDiff
(double[] sequence)
test/simpledb/systemtest/SystemTestUtil.java:177
↓ 2 callersMethodgetError
@return an Exception instance if one occurred while inserting the tuple; null otherwise
src/java/simpledb/BTreeUtility.java:564
↓ 2 callersMethodgetHeaderSize
Computes the number of bytes in the header while saving room for pointers
src/java/simpledb/BTreeHeaderPage.java:78
↓ 2 callersMethodgetId
@return the PageId associated with this page.
src/java/simpledb/HeapPage.java:113
↓ 2 callersMethodgetId
@return the PageId associated with this page.
src/java/simpledb/BTreePage.java:60
↓ 2 callersMethodgetId
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 callersMethodgetJoinField1Name
@return the field name of join field1. Should be quantified by alias or table name.
src/java/simpledb/Join.java:37
← previousnext →201–300 of 1,070, ranked by callers