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

Methodclose
Closes this iterator. If overridden by a subclass, they should call super.close() in order for Operator's internal state to be consistent.
src/java/simpledb/Operator.java:51
Methodcombine
Unit test for TupleDesc.combine()
test/simpledb/TupleDescTest.java:18
MethodcommitTransaction
Unit test for BufferPool.transactionComplete() assuing commit. Verify that a tuple inserted during a committed transaction is durable
test/simpledb/TransactionTest.java:103
Methodcompare
(ArrayList<Integer> t1, ArrayList<Integer> t2)
test/simpledb/systemtest/BTreeScanTest.java:55
Methodcompare
Compare the specified field to the value of this Field. Return semantics are as specified by Field.compare @throws IllegalCastException i
src/java/simpledb/StringField.java:77
Methodcompare
(Tuple o1, Tuple o2)
src/java/simpledb/OrderBy.java:112
Methodcompare
Compare two tuples based on their key field @return -1 if t1 < t2, 1 if t1 > t2, 0 if t1 == t2
src/java/simpledb/BTreeFileEncoder.java:130
Methodcompare
Compare two entries based on their key field @return -1 if e1 < e2, 1 if e1 > e2, 0 if e1 == e2
src/java/simpledb/BTreeFileEncoder.java:581
Methodcompare
Compare two entries based on their key field @return -1 if e1 > e2, 1 if e1 < e2, 0 if e1 == e2
src/java/simpledb/BTreeFileEncoder.java:602
MethodcomputeCostAndCardOfSubplan
This is a helper method that computes the cost and cardinality of joining joinToRemove to joinSet (joinSet should contain joinToRemove), given that al
src/java/simpledb/JoinOptimizer.java:259
MethodcountStringAggregate
Unit test for Aggregate.getNext() using a count aggregate with string types
test/simpledb/AggregateTest.java:116
MethodcreateDuplicateHeapFile
Given a matrix of tuples from SystemTestUtil.createRandomHeapFile, create an identical HeapFile table @param tuples Tuples to create a HeapFile from @
test/simpledb/systemtest/QueryTest.java:29
MethodcreatePid
()
test/simpledb/BTreePageIdTest.java:20
MethodcreatePid
()
test/simpledb/HeapPageIdTest.java:17
MethodcreatePids
()
test/simpledb/RecordIdTest.java:19
MethodcreateTupleList
Initialize each unit test
test/simpledb/StringAggregatorTest.java:21
MethodcreateTupleList
Initialize each unit test
test/simpledb/IntegerAggregatorTest.java:26
MethodcreateTupleLists
Initialize each unit test
test/simpledb/AggregateTest.java:31
MethodcreateTupleLists
Initialize each unit test
test/simpledb/JoinTest.java:25
MethoddeleteEntry
Unit test for BTreeInternalPage.deleteEntry()
test/simpledb/BTreeInternalPageTest.java:287
MethoddeleteKeyAndLeftChild
Delete the specified entry (key + left child pointer) from the page. The recordId is used to find the specified entry, so it must not be null. After d
src/java/simpledb/BTreeInternalPage.java:392
MethoddeleteNonexistentEntry
Unit test for BTreeInternalPage.deleteEntry() with false entries
test/simpledb/BTreeInternalPageTest.java:278
MethoddeleteNonexistentTuple
Unit test for HeapPage.deleteTuple() with false tuples
test/simpledb/HeapPageWriteTest.java:91
MethoddeleteNonexistentTuple
Unit test for BTreeLeafPage.deleteTuple() with false tuples
test/simpledb/BTreeLeafPageTest.java:301
MethoddeleteParentEntry
Method to encapsulate the process of deleting an entry (specifically the key and right child) from a parent node. If the parent becomes empty (no key
src/java/simpledb/BTreeFile.java:775
MethoddeleteTuple
Unit test for HeapPage.deleteTuple()
test/simpledb/HeapPageWriteTest.java:100
MethoddeleteTuple
Unit test for BufferPool.deleteTuple()
test/simpledb/BufferPoolWriteTest.java:87
MethoddeleteTuple
Unit test for BTreeLeafPage.deleteTuple()
test/simpledb/BTreeLeafPageTest.java:310
MethoddeleteTuple
Unit test for BTreeFile.deleteTuple()
test/simpledb/BTreeFileDeleteTest.java:35
MethoddeleteTuple
(TransactionId tid, Tuple t)
test/simpledb/TestUtil.java:222
MethoddeleteTuple
(TransactionId tid, Tuple t)
src/java/simpledb/HeapFile.java:92
MethoddeleteTuple
Remove the specified tuple from the buffer pool. Will acquire a write lock on the page the tuple is removed from and any other pages that are updated.
src/java/simpledb/BufferPool.java:151
MethodenumerateSubsets
Helper method to enumerate all of the subsets of a given size of a specified vector. @param v The vector whose subsets are desired @param
src/java/simpledb/JoinOptimizer.java:173
MethodeqJoin
Unit test for Join.getNext() using an = predicate
test/simpledb/JoinTest.java:100
Methodequals
Unit test for BTreePageId.equals()
test/simpledb/BTreePageIdTest.java:75
Methodequals
Unit test for HeapPageId.equals()
test/simpledb/HeapPageIdTest.java:57
Methodequals
Unit test for RecordId.equals()
test/simpledb/RecordIdTest.java:49
Methodequals
Compares one PageId to another. @param o The object to compare against (must be a PageId) @return true if the objects are equal (e.g., page numbers a
src/java/simpledb/PageId.java:32
Methodequals
Return true if the fieldvalue in the supplied predicate is satisfied by this predicate's fieldvalue and operator. @param ipd T
src/java/simpledb/IndexPredicate.java:43
Methodequals
(Object field)
src/java/simpledb/StringField.java:44
Methodequals
(Object o)
src/java/simpledb/LogicalSubplanJoinNode.java:28
Methodequals
(Object obj)
src/java/simpledb/TransactionId.java:24
Methodequals
Two RecordId objects are considered equal if they represent the same tuple. @return True if this and o represent the same tuple
src/java/simpledb/RecordId.java:48
Methodequals
(Object o)
src/java/simpledb/LogicalJoinNode.java:66
Methodequals
(Object field)
src/java/simpledb/IntField.java:35
MethodestimateJoinCardinality
Verify that the join cardinalities produced by estimateJoinCardinality() are reasonable
test/simpledb/JoinOptimizerTest.java:212
MethodestimateJoinCostTest
Verify that the estimated join costs from estimateJoinCost() are reasonable we check various order requirements for the output of estimateJoinCost.
test/simpledb/JoinOptimizerTest.java:108
MethodestimateScanCostTest
Verify the cost estimates of scanning various numbers of pages from a HeapFile This test checks that the estimateScanCost is: +linear in numPages wh
test/simpledb/TableStatsTest.java:50
MethodestimateSelectivity
Estimate the selectivity (as a double between 0 and 1) of the specified predicate over the specified string @param op The operation being
src/java/simpledb/StringHistogram.java:77
MethodestimateSelectivityTest
Verify that selectivity estimates do something reasonable. Don't bother splitting this into N different functions for each possible Op because we will
test/simpledb/TableStatsTest.java:109
MethodestimateTableCardinalityTest
Verify the table-cardinality estimates based on a selectivity estimate
test/simpledb/TableStatsTest.java:92
MethodevictPage
Discards a page from the buffer pool. Flushes the page to disk to ensure dirty pages are updated on disk.
src/java/simpledb/BufferPool.java:201
MethodfetchNext
Operator.fetchNext implementation. Iterates over tuples from the child operator, projecting out the fields from the tuple @return The next tuple, or
src/java/simpledb/Project.java:69
MethodfetchNext
Inserts tuples read from child into the tableId specified by the constructor. It returns a one field tuple containing the number of inserted records.
src/java/simpledb/Insert.java:59
MethodfetchNext
Returns the next tuple. If there is a group by field, then the first field is the field by which we are grouping, and the second field is the result o
src/java/simpledb/Aggregate.java:97
MethodfetchNext
AbstractDbIterator.readNext implementation. Iterates over tuples from the child operator, applying the predicate to them and returning those that pass
src/java/simpledb/Filter.java:57
MethodfetchNext
Returns the next tuple generated by the join, or null if there are no more tuples. Logically, this is the next tuple in r1 cross r2 that satisfies the
src/java/simpledb/Join.java:92
MethodfetchNext
Operator.fetchNext implementation. Returns tuples from the child operator in order @return The next tuple in the ordering, or null if there are no mo
src/java/simpledb/OrderBy.java:83
MethodfetchNext
Deletes tuples as they are read from the child operator. Deletes are processed via the buffer pool (which can be accessed via the Database.getBufferPo
src/java/simpledb/Delete.java:52
MethodfetchNext
()
src/java/simpledb/HashEquiJoin.java:133
Methodfields
@return An iterator which iterates over all the fields of this tuple
src/java/simpledb/Tuple.java:94
Methodfilter
Unit test for Predicate.filter()
test/simpledb/PredicateTest.java:15
MethodfilterAllLessThan
Unit test for Filter.getNext() using a &lt; predicate that filters everything
test/simpledb/FilterTest.java:72
MethodfilterEqual
Unit test for Filter.getNext() using an = predicate
test/simpledb/FilterTest.java:84
MethodfilterEqualNoTuples
Unit test for Filter.getNext() using an = predicate passing no tuples
test/simpledb/FilterTest.java:114
MethodfilterSomeLessThan
Unit test for Filter.getNext() using a &lt; predicate that filters some tuples
test/simpledb/FilterTest.java:58
MethodfilterVaryingVals
Unit test for JoinPredicate.filter()
test/simpledb/JoinPredicateTest.java:15
MethodflushPage
Flushes a certain page to disk @param pid an ID indicating the page to flush
src/java/simpledb/BufferPool.java:185
Methodfound
@return true if we successfully found the tuple(s)
src/java/simpledb/BTreeUtility.java:641
MethodgetAlias
@return Return the alias of the table this operator scans.
src/java/simpledb/BTreeScan.java:58
MethodgetBeforeImage
Return a view of this page before it was modified -- used by recovery
src/java/simpledb/HeapPage.java:87
MethodgetBeforeImage
Return a view of this page before it was modified -- used by recovery
src/java/simpledb/BTreeInternalPage.java:141
MethodgetBeforeImage
Return a view of this page before it was modified -- used by recovery
src/java/simpledb/BTreeLeafPage.java:133
MethodgetBeforeImage
Return a view of this page before it was modified -- used by recovery
src/java/simpledb/BTreeRootPtrPage.java:143
MethodgetBeforeImage
Return a view of this page before it was modified -- used by recovery
src/java/simpledb/BTreeHeaderPage.java:93
MethodgetChildren
()
src/java/simpledb/Project.java:83
MethodgetChildren
()
src/java/simpledb/Insert.java:64
MethodgetChildren
()
src/java/simpledb/Aggregate.java:126
MethodgetChildren
()
src/java/simpledb/Filter.java:63
MethodgetChildren
()
src/java/simpledb/OrderBy.java:91
MethodgetChildren
()
src/java/simpledb/Delete.java:57
MethodgetChildren
()
src/java/simpledb/HashEquiJoin.java:162
MethodgetEmptySlot
Unit test for BTreeHeaderPage.getEmptySlot()
test/simpledb/BTreeHeaderPageTest.java:101
MethodgetError
@return an Exception instance if one occurred while searching for the tuple(s); null otherwise
src/java/simpledb/BTreeUtility.java:651
MethodgetError
@return an Exception instance if one occurred while inserting the tuple; null otherwise
src/java/simpledb/BTreeUtility.java:739
MethodgetError
@return an Exception instance if one occurred while inserting the tuple; null otherwise
src/java/simpledb/BTreeUtility.java:840
MethodgetHeaderId
Unit test for BTreeRootPtrPage.getHeaderId()
test/simpledb/BTreeRootPtrPageTest.java:87
MethodgetId
Unit test for BTreeFile.getId()
test/simpledb/BTreeFileReadTest.java:38
MethodgetId
Unit test for BTreeRootPtrPage.getId()
test/simpledb/BTreeRootPtrPageTest.java:45
MethodgetId
Unit test for BTreeHeaderPage.getId()
test/simpledb/BTreeHeaderPageTest.java:34
MethodgetId
Unit test for BTreeInternalPage.getId()
test/simpledb/BTreeInternalPageTest.java:80
MethodgetId
Unit test for HeapFile.getId()
test/simpledb/HeapFileReadTest.java:37
MethodgetId
Unit test for HeapPage.getId()
test/simpledb/HeapPageReadTest.java:78
MethodgetId
Unit test for BTreeLeafPage.getId()
test/simpledb/BTreeLeafPageTest.java:78
MethodgetId
()
test/simpledb/TestUtil.java:231
MethodgetId
()
src/java/simpledb/TransactionId.java:20
MethodgetJoinField1Name
()
src/java/simpledb/HashEquiJoin.java:43
MethodgetJoinField2Name
()
src/java/simpledb/HashEquiJoin.java:48
MethodgetLeftSiblingId
Unit test for BTreeLeafPage.getLeftSiblingId()
test/simpledb/BTreeLeafPageTest.java:94
MethodgetLogicalPlan
()
src/java/simpledb/Query.java:32
← previousnext →601–700 of 1,070, ranked by callers