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
Method
close
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
Method
combine
Unit test for TupleDesc.combine()
test/simpledb/TupleDescTest.java:18
Method
commitTransaction
Unit test for BufferPool.transactionComplete() assuing commit. Verify that a tuple inserted during a committed transaction is durable
test/simpledb/TransactionTest.java:103
Method
compare
(ArrayList<Integer> t1, ArrayList<Integer> t2)
test/simpledb/systemtest/BTreeScanTest.java:55
Method
compare
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
Method
compare
(Tuple o1, Tuple o2)
src/java/simpledb/OrderBy.java:112
Method
compare
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
Method
compare
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
Method
compare
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
Method
computeCostAndCardOfSubplan
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
Method
countStringAggregate
Unit test for Aggregate.getNext() using a count aggregate with string types
test/simpledb/AggregateTest.java:116
Method
createDuplicateHeapFile
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
Method
createPid
()
test/simpledb/BTreePageIdTest.java:20
Method
createPid
()
test/simpledb/HeapPageIdTest.java:17
Method
createPids
()
test/simpledb/RecordIdTest.java:19
Method
createTupleList
Initialize each unit test
test/simpledb/StringAggregatorTest.java:21
Method
createTupleList
Initialize each unit test
test/simpledb/IntegerAggregatorTest.java:26
Method
createTupleLists
Initialize each unit test
test/simpledb/AggregateTest.java:31
Method
createTupleLists
Initialize each unit test
test/simpledb/JoinTest.java:25
Method
deleteEntry
Unit test for BTreeInternalPage.deleteEntry()
test/simpledb/BTreeInternalPageTest.java:287
Method
deleteKeyAndLeftChild
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
Method
deleteNonexistentEntry
Unit test for BTreeInternalPage.deleteEntry() with false entries
test/simpledb/BTreeInternalPageTest.java:278
Method
deleteNonexistentTuple
Unit test for HeapPage.deleteTuple() with false tuples
test/simpledb/HeapPageWriteTest.java:91
Method
deleteNonexistentTuple
Unit test for BTreeLeafPage.deleteTuple() with false tuples
test/simpledb/BTreeLeafPageTest.java:301
Method
deleteParentEntry
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
Method
deleteTuple
Unit test for HeapPage.deleteTuple()
test/simpledb/HeapPageWriteTest.java:100
Method
deleteTuple
Unit test for BufferPool.deleteTuple()
test/simpledb/BufferPoolWriteTest.java:87
Method
deleteTuple
Unit test for BTreeLeafPage.deleteTuple()
test/simpledb/BTreeLeafPageTest.java:310
Method
deleteTuple
Unit test for BTreeFile.deleteTuple()
test/simpledb/BTreeFileDeleteTest.java:35
Method
deleteTuple
(TransactionId tid, Tuple t)
test/simpledb/TestUtil.java:222
Method
deleteTuple
(TransactionId tid, Tuple t)
src/java/simpledb/HeapFile.java:92
Method
deleteTuple
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
Method
enumerateSubsets
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
Method
eqJoin
Unit test for Join.getNext() using an = predicate
test/simpledb/JoinTest.java:100
Method
equals
Unit test for BTreePageId.equals()
test/simpledb/BTreePageIdTest.java:75
Method
equals
Unit test for HeapPageId.equals()
test/simpledb/HeapPageIdTest.java:57
Method
equals
Unit test for RecordId.equals()
test/simpledb/RecordIdTest.java:49
Method
equals
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
Method
equals
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
Method
equals
(Object field)
src/java/simpledb/StringField.java:44
Method
equals
(Object o)
src/java/simpledb/LogicalSubplanJoinNode.java:28
Method
equals
(Object obj)
src/java/simpledb/TransactionId.java:24
Method
equals
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
Method
equals
(Object o)
src/java/simpledb/LogicalJoinNode.java:66
Method
equals
(Object field)
src/java/simpledb/IntField.java:35
Method
estimateJoinCardinality
Verify that the join cardinalities produced by estimateJoinCardinality() are reasonable
test/simpledb/JoinOptimizerTest.java:212
Method
estimateJoinCostTest
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
Method
estimateScanCostTest
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
Method
estimateSelectivity
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
Method
estimateSelectivityTest
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
Method
estimateTableCardinalityTest
Verify the table-cardinality estimates based on a selectivity estimate
test/simpledb/TableStatsTest.java:92
Method
evictPage
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
Method
fetchNext
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
Method
fetchNext
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
Method
fetchNext
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
Method
fetchNext
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
Method
fetchNext
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
Method
fetchNext
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
Method
fetchNext
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
Method
fetchNext
()
src/java/simpledb/HashEquiJoin.java:133
Method
fields
@return An iterator which iterates over all the fields of this tuple
src/java/simpledb/Tuple.java:94
Method
filter
Unit test for Predicate.filter()
test/simpledb/PredicateTest.java:15
Method
filterAllLessThan
Unit test for Filter.getNext() using a < predicate that filters everything
test/simpledb/FilterTest.java:72
Method
filterEqual
Unit test for Filter.getNext() using an = predicate
test/simpledb/FilterTest.java:84
Method
filterEqualNoTuples
Unit test for Filter.getNext() using an = predicate passing no tuples
test/simpledb/FilterTest.java:114
Method
filterSomeLessThan
Unit test for Filter.getNext() using a < predicate that filters some tuples
test/simpledb/FilterTest.java:58
Method
filterVaryingVals
Unit test for JoinPredicate.filter()
test/simpledb/JoinPredicateTest.java:15
Method
flushPage
Flushes a certain page to disk @param pid an ID indicating the page to flush
src/java/simpledb/BufferPool.java:185
Method
found
@return true if we successfully found the tuple(s)
src/java/simpledb/BTreeUtility.java:641
Method
getAlias
@return Return the alias of the table this operator scans.
src/java/simpledb/BTreeScan.java:58
Method
getBeforeImage
Return a view of this page before it was modified -- used by recovery
src/java/simpledb/HeapPage.java:87
Method
getBeforeImage
Return a view of this page before it was modified -- used by recovery
src/java/simpledb/BTreeInternalPage.java:141
Method
getBeforeImage
Return a view of this page before it was modified -- used by recovery
src/java/simpledb/BTreeLeafPage.java:133
Method
getBeforeImage
Return a view of this page before it was modified -- used by recovery
src/java/simpledb/BTreeRootPtrPage.java:143
Method
getBeforeImage
Return a view of this page before it was modified -- used by recovery
src/java/simpledb/BTreeHeaderPage.java:93
Method
getChildren
()
src/java/simpledb/Project.java:83
Method
getChildren
()
src/java/simpledb/Insert.java:64
Method
getChildren
()
src/java/simpledb/Aggregate.java:126
Method
getChildren
()
src/java/simpledb/Filter.java:63
Method
getChildren
()
src/java/simpledb/OrderBy.java:91
Method
getChildren
()
src/java/simpledb/Delete.java:57
Method
getChildren
()
src/java/simpledb/HashEquiJoin.java:162
Method
getEmptySlot
Unit test for BTreeHeaderPage.getEmptySlot()
test/simpledb/BTreeHeaderPageTest.java:101
Method
getError
@return an Exception instance if one occurred while searching for the tuple(s); null otherwise
src/java/simpledb/BTreeUtility.java:651
Method
getError
@return an Exception instance if one occurred while inserting the tuple; null otherwise
src/java/simpledb/BTreeUtility.java:739
Method
getError
@return an Exception instance if one occurred while inserting the tuple; null otherwise
src/java/simpledb/BTreeUtility.java:840
Method
getHeaderId
Unit test for BTreeRootPtrPage.getHeaderId()
test/simpledb/BTreeRootPtrPageTest.java:87
Method
getId
Unit test for BTreeFile.getId()
test/simpledb/BTreeFileReadTest.java:38
Method
getId
Unit test for BTreeRootPtrPage.getId()
test/simpledb/BTreeRootPtrPageTest.java:45
Method
getId
Unit test for BTreeHeaderPage.getId()
test/simpledb/BTreeHeaderPageTest.java:34
Method
getId
Unit test for BTreeInternalPage.getId()
test/simpledb/BTreeInternalPageTest.java:80
Method
getId
Unit test for HeapFile.getId()
test/simpledb/HeapFileReadTest.java:37
Method
getId
Unit test for HeapPage.getId()
test/simpledb/HeapPageReadTest.java:78
Method
getId
Unit test for BTreeLeafPage.getId()
test/simpledb/BTreeLeafPageTest.java:78
Method
getId
()
test/simpledb/TestUtil.java:231
Method
getId
()
src/java/simpledb/TransactionId.java:20
Method
getJoinField1Name
()
src/java/simpledb/HashEquiJoin.java:43
Method
getJoinField2Name
()
src/java/simpledb/HashEquiJoin.java:48
Method
getLeftSiblingId
Unit test for BTreeLeafPage.getLeftSiblingId()
test/simpledb/BTreeLeafPageTest.java:94
Method
getLogicalPlan
()
src/java/simpledb/Query.java:32
← previous
next →
601–700 of 1,070, ranked by callers