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
↓ 10 callers
Method
compareTuples
@return true iff the tuples have the same number of fields and corresponding fields in the two Tuples are all equal.
test/simpledb/TestUtil.java:90
↓ 10 callers
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/HeapPageId.java:50
↓ 10 callers
Method
equals
Compares the specified object with this TupleDesc for equality. Two TupleDescs are considered equal if they have the same number of items and if the i
src/java/simpledb/TupleDesc.java:163
↓ 10 callers
Method
getLeftSiblingId
Get the id of the left sibling of this page @return the id of the left sibling
src/java/simpledb/BTreeLeafPage.java:379
↓ 10 callers
Method
getMaxEntries
Retrieve the maximum number of entries this page can hold. (The number of keys)
src/java/simpledb/BTreeInternalPage.java:117
↓ 10 callers
Method
getNumTuplesPerPage
Get the number of tuples that can fit on a page with the specified number of integer fields @param columns - the number of columns @return the number
src/java/simpledb/BTreeUtility.java:279
↓ 10 callers
Method
getPageSize
Get the page size of root pointer pages @return the page size
src/java/simpledb/BTreeRootPtrPage.java:221
↓ 10 callers
Method
numFields
Unit test for TupleDesc.numFields()
test/simpledb/TupleDescTest.java:139
↓ 10 callers
Method
parse
(DataInputStream dis)
src/java/simpledb/Type.java:18
↓ 10 callers
Method
readPage
Read the specified page from disk. @throws IllegalArgumentException if the page does not exist in this file.
src/java/simpledb/DbFile.java:20
↓ 10 callers
Method
setup
()
test/simpledb/systemtest/LogTest.java:115
↓ 10 callers
Method
succeeded
@return true if we successfully inserted the tuple
src/java/simpledb/BTreeUtility.java:554
↓ 9 callers
Method
createRandomInternalPage
Create a random internal page for testing @param pid - the page id of the internal page @param keyField - the index of the key field in each tuple @pa
src/java/simpledb/BTreeUtility.java:343
↓ 9 callers
Method
getError
@return an Exception instance if one occured during lock acquisition; null otherwise
test/simpledb/TestUtil.java:367
↓ 9 callers
Method
getId
()
src/java/simpledb/Transaction.java:28
↓ 9 callers
Method
getOp
(String s)
src/java/simpledb/Parser.java:15
↓ 9 callers
Method
getPageId
Unit test for RecordId.getPageId()
test/simpledb/RecordIdTest.java:33
↓ 9 callers
Method
getTupleDesc
Returns the TupleDesc associated with this OpIterator. @return the TupleDesc associated with this OpIterator.
src/java/simpledb/OpIterator.java:48
↓ 9 callers
Method
metaLockTester
Generic unit test structure for BufferPool.getPage() assuming locking. @param tid1 the first transaction Id @param pid1 the first page to lock over @
test/simpledb/LockingTest.java:65
↓ 9 callers
Method
rewind
Resets the iterator to the start. @throws DbException When rewind is unsupported.
src/java/simpledb/DbFileIterator.java:34
↓ 9 callers
Method
setEstimatedCardinality
@param card The estimated cardinality of this operator Will only be used in lab7
src/java/simpledb/Operator.java:103
↓ 9 callers
Method
setLeftSiblingId
Set the left sibling id of this page @param id - the new left sibling id @throws DbException if the id is not valid
src/java/simpledb/BTreeLeafPage.java:402
↓ 8 callers
Method
checkLinear
Checks if the sequence represents an arithmetic sequence (approximately) ret[0] is true if the sequence is linear ret[1] is the common difference of t
test/simpledb/systemtest/SystemTestUtil.java:203
↓ 8 callers
Method
close
()
src/java/simpledb/Filter.java:40
↓ 8 callers
Method
createRandomLeafPage
Create a random leaf page for testing @param pid - the page id of the leaf page @param columns - the number of fields per tuple @param keyField - the
src/java/simpledb/BTreeUtility.java:295
↓ 8 callers
Method
disambiguateName
Given a name of a field, try to figure out what table it belongs to by looking through all of the tables added via {@link #addScan}. @return A full
src/java/simpledb/LogicalPlan.java:226
↓ 8 callers
Method
generateLogicalPlan
(TransactionId tid, String s)
src/java/simpledb/Parser.java:466
↓ 8 callers
Method
getLogFile
Return the log file of the static Database instance
src/java/simpledb/Database.java:39
↓ 8 callers
Method
getMaxTuples
Retrieve the maximum number of tuples this page can hold.
src/java/simpledb/BTreeLeafPage.java:112
↓ 8 callers
Method
getPageId
@return the page id this RecordId references.
src/java/simpledb/RecordId.java:37
↓ 8 callers
Method
hasNext
()
src/java/simpledb/BTreeScan.java:123
↓ 8 callers
Method
keyField
Returns the index of the field that this B+ tree is keyed on
src/java/simpledb/BTreeFile.java:174
↓ 8 callers
Method
next
()
src/java/simpledb/BTreeScan.java:129
↓ 8 callers
Method
numPages
()
test/simpledb/TestUtil.java:209
↓ 8 callers
Method
open
()
src/java/simpledb/Filter.java:35
↓ 8 callers
Method
reverseIterator
@return a reverse iterator over all entries on this page (calling remove on this iterator throws an UnsupportedOperationException) (note that this ite
src/java/simpledb/BTreeInternalPage.java:616
↓ 7 callers
Method
convert
Convert the specified tuple list (with only integer fields) into a binary page file. <br> The format of the output file will be as specified in HeapP
src/java/simpledb/HeapFileEncoder.java:31
↓ 7 callers
Method
deleteTuple
Delete a tuple from this BTreeFile. May cause pages to merge or redistribute entries/tuples if the pages become less than half full. @param tid - the
src/java/simpledb/BTreeFile.java:815
↓ 7 callers
Method
estimateScanCost
Estimates the cost of sequentially scanning the file, given that the cost to read a page is costPerPageIO. You can assume that there are no seeks and
src/java/simpledb/TableStats.java:102
↓ 7 callers
Method
getEmptySlot
get the index of the first empty slot @return the index of the first empty slot or -1 if none exists
src/java/simpledb/BTreeHeaderPage.java:294
↓ 7 callers
Method
getOperator
()
src/java/simpledb/JoinPredicate.java:54
↓ 7 callers
Method
getParentId
Get the parent id of this page @return the parent id
src/java/simpledb/BTreePage.java:82
↓ 7 callers
Method
getStatsMap
()
src/java/simpledb/TableStats.java:46
↓ 7 callers
Method
insertEntry
Adds the specified entry to the page; the entry's recordId should be updated to reflect that it is now stored on this page. @throws DbException if the
src/java/simpledb/BTreeInternalPage.java:443
↓ 7 callers
Method
insertTuple
Insert a tuple into this BTreeFile, keeping the tuples in sorted order. May cause pages to split if the page where tuple t belongs is full. @param ti
src/java/simpledb/BTreeFile.java:436
↓ 7 callers
Method
isSlotUsed
Returns true if the page of the BTreeFile associated with slot i is used
src/java/simpledb/BTreeHeaderPage.java:270
↓ 7 callers
Method
markSlotUsed
Abstraction to fill or clear a slot on this page.
src/java/simpledb/BTreeInternalPage.java:593
↓ 7 callers
Method
markSlotUsed
Abstraction to mark a page of the BTreeFile used or unused
src/java/simpledb/BTreeHeaderPage.java:279
↓ 7 callers
Method
open
()
src/java/simpledb/Aggregate.java:85
↓ 7 callers
Method
preAppend
()
src/java/simpledb/LogFile.java:126
↓ 7 callers
Method
rewind
Resets the iterator to the start. @throws DbException when rewind is unsupported. @throws IllegalStateException If the iterator has not been opened
src/java/simpledb/OpIterator.java:42
↓ 7 callers
Method
setTableStats
(String tablename, TableStats stats)
src/java/simpledb/TableStats.java:24
↓ 7 callers
Method
writePage
Push the specified page to disk. @param p The page to write. page.getId().pageno() specifies the offset into the file where the page should be writt
src/java/simpledb/DbFile.java:29
↓ 6 callers
Method
addTable
Add a new table to the catalog. This table's contents are stored in the specified DbFile. @param file the contents of the table to add; file.getId()
src/java/simpledb/Catalog.java:38
↓ 6 callers
Method
convertToInternalPage
Convert a set of entries to a byte array in the format of a BTreeInternalPage @param entries - the set of entries @param npagebytes - number of bytes
src/java/simpledb/BTreeFileEncoder.java:624
↓ 6 callers
Method
convertToLeafPage
Convert a set of tuples to a byte array in the format of a BTreeLeafPage @param tuples - the set of tuples @param npagebytes - number of bytes per pa
src/java/simpledb/BTreeFileEncoder.java:506
↓ 6 callers
Method
crash
()
test/simpledb/systemtest/LogTest.java:105
↓ 6 callers
Method
doAggregate
(Aggregator.Op operation, int groupColumn)
test/simpledb/systemtest/AggregateTest.java:76
↓ 6 callers
Method
getDatabaseFile
Returns the DbFile that can be used to read the contents of the specified table. @param tableid The id of the table, as specified by the DbFile.getId(
src/java/simpledb/Catalog.java:83
↓ 6 callers
Method
getField
()
src/java/simpledb/IndexPredicate.java:30
↓ 6 callers
Method
getNumSlots
Computes the number of slots in the header
src/java/simpledb/BTreeHeaderPage.java:87
↓ 6 callers
Method
getPageNumber
@return the page number in the table getTableId() associated with this PageId
src/java/simpledb/BTreePageId.java:55
↓ 6 callers
Method
getTupleDesc
@return The TupleDesc representing the schema of this tuple.
src/java/simpledb/Tuple.java:30
↓ 6 callers
Method
getType
Returns the type of this field (see {@link Type#INT_TYPE} or {@link Type#STRING_TYPE} @return type of this field
src/java/simpledb/Field.java:29
↓ 6 callers
Method
isPkey
Return true if field is a primary key of the specified table, false otherwise @param tableAlias The alias of the table in the query @param
src/java/simpledb/JoinOptimizer.java:400
↓ 6 callers
Method
isSlotUsed
Returns true if associated slot on this page is filled.
src/java/simpledb/HeapPage.java:291
↓ 6 callers
Method
remove
()
src/java/simpledb/BTreeLeafPage.java:563
↓ 6 callers
Method
setRightSiblingId
Set the right sibling id of this page @param id - the new right sibling id @throws DbException if the id is not valid
src/java/simpledb/BTreeLeafPage.java:422
↓ 6 callers
Method
setRootId
Set the id of the root page in this B+ tree @param id - the id of the root page @throws DbException if the id is invalid
src/java/simpledb/BTreeRootPtrPage.java:170
↓ 6 callers
Method
updateOperatorCardinality
@param tableAliasToId table alias to table id mapping @param tableStats table statistics
src/java/simpledb/OperatorCardinality.java:21
↓ 6 callers
Method
writePage
Write a page to disk. This should not be called directly but should be called from the BufferPool when pages are flushed to disk @param page - the p
src/java/simpledb/BTreeFile.java:147
↓ 5 callers
Method
checkExhausted
Verifies that the OpIterator has been exhausted of all elements.
test/simpledb/TestUtil.java:155
↓ 5 callers
Method
close
()
src/java/simpledb/BTreeScan.java:137
↓ 5 callers
Method
deleteKeyAndRightChild
Delete the specified entry (key + right child pointer) from the page. The recordId is used to find the specified entry, so it must not be null. After
src/java/simpledb/BTreeInternalPage.java:379
↓ 5 callers
Method
deleteTuple
Delete the specified tuple from the page; the tuple should be updated to reflect that it is no longer stored on any page. @throws DbException if th
src/java/simpledb/BTreeLeafPage.java:289
↓ 5 callers
Method
getChildren
()
src/java/simpledb/Join.java:97
↓ 5 callers
Method
getField1
()
src/java/simpledb/JoinPredicate.java:42
↓ 5 callers
Method
getNumEntriesPerPage
The number of entries that can fit on a page with integer key fields @return the number of entries per page
src/java/simpledb/BTreeUtility.java:324
↓ 5 callers
Method
getOperand
@return the operand
src/java/simpledb/Predicate.java:82
↓ 5 callers
Method
getPrimaryKey
(int tableid)
src/java/simpledb/Catalog.java:88
↓ 5 callers
Method
getRandomJoinCosts
(JoinOptimizer jo, LogicalJoinNode js, int[] card1s, int[] card2s, double[] cost1s, double[] cost2
test/simpledb/JoinOptimizerTest.java:90
↓ 5 callers
Method
hasNext
()
src/java/simpledb/SeqScan.java:91
↓ 5 callers
Method
init
Initially mark all slots in the header used.
src/java/simpledb/BTreeHeaderPage.java:70
↓ 5 callers
Method
insertTuple
Adds the specified tuple to the page such that all records remain in sorted order; the tuple should be updated to reflect that it is now stored on th
src/java/simpledb/BTreeLeafPage.java:309
↓ 5 callers
Method
iterator
Create a OpIterator over group aggregate results. @return a OpIterator whose tuples are the pair (groupVal, aggregateVal) if using group, or
src/java/simpledb/IntegerAggregator.java:48
↓ 5 callers
Method
listToString
(ArrayList<Integer> list)
src/java/simpledb/Utility.java:148
↓ 5 callers
Method
mergeTupleIntoGroup
Merge a new tuple into the aggregate, grouping as indicated in the constructor @param tup the Tuple containing an aggregate field and a gr
src/java/simpledb/IntegerAggregator.java:36
↓ 5 callers
Method
next
()
src/java/simpledb/SeqScan.java:96
↓ 5 callers
Method
numPages
Returns the number of pages in this HeapFile.
src/java/simpledb/HeapFile.java:78
↓ 5 callers
Method
open
()
src/java/simpledb/BTreeScan.java:102
↓ 5 callers
Method
physicalPlan
Convert this LogicalPlan into a physicalPlan represented by a {@link OpIterator}. Attempts to find the optimal plan by using {@link JoinOptimizer#o
src/java/simpledb/LogicalPlan.java:287
↓ 5 callers
Method
resetPageSize
()
src/java/simpledb/BufferPool.java:48
↓ 5 callers
Method
serialize
Write the bytes representing this field to the specified DataOutputStream. @see DataOutputStream @param dos The DataOutputStream to write to.
src/java/simpledb/Field.java:15
↓ 5 callers
Method
setParentId
Set the parent id @param id - the id of the parent of this page @throws DbException if the id is not valid
src/java/simpledb/BTreePage.java:94
↓ 5 callers
Method
validatePredicate
(int column, int columnValue, int trueValue, int falseValue, Predicate.Op operation)
test/simpledb/systemtest/FilterBase.java:35
↓ 4 callers
Method
checkConstant
Checks if the sequence represents approximately a fixed sequence (c,c,c,c,..) ret[0] is true if the sequence is linear ret[1] is the constant of the s
test/simpledb/systemtest/SystemTestUtil.java:214
↓ 4 callers
Method
checkJoinEstimateCosts
(JoinOptimizer jo, LogicalJoinNode equalsJoinNode)
test/simpledb/JoinOptimizerTest.java:148
↓ 4 callers
Method
close
Close the iterator
src/java/simpledb/Query.java:90
↓ 4 callers
Method
compare
Compare the specified field to the value of this Field. Return semantics are as specified by Field.compare @throws IllegalCastException if val is not
src/java/simpledb/IntField.java:50
↓ 4 callers
Method
deleteTuple
Delete the specified tuple from the page; the corresponding header bit should be updated to reflect that it is no longer stored on any page. @throws
src/java/simpledb/HeapPage.java:245
← previous
next →
101–200 of 1,070, ranked by callers