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

↓ 10 callersMethodcompareTuples
@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 callersMethodequals
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 callersMethodequals
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 callersMethodgetLeftSiblingId
Get the id of the left sibling of this page @return the id of the left sibling
src/java/simpledb/BTreeLeafPage.java:379
↓ 10 callersMethodgetMaxEntries
Retrieve the maximum number of entries this page can hold. (The number of keys)
src/java/simpledb/BTreeInternalPage.java:117
↓ 10 callersMethodgetNumTuplesPerPage
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 callersMethodgetPageSize
Get the page size of root pointer pages @return the page size
src/java/simpledb/BTreeRootPtrPage.java:221
↓ 10 callersMethodnumFields
Unit test for TupleDesc.numFields()
test/simpledb/TupleDescTest.java:139
↓ 10 callersMethodparse
(DataInputStream dis)
src/java/simpledb/Type.java:18
↓ 10 callersMethodreadPage
Read the specified page from disk. @throws IllegalArgumentException if the page does not exist in this file.
src/java/simpledb/DbFile.java:20
↓ 10 callersMethodsetup
()
test/simpledb/systemtest/LogTest.java:115
↓ 10 callersMethodsucceeded
@return true if we successfully inserted the tuple
src/java/simpledb/BTreeUtility.java:554
↓ 9 callersMethodcreateRandomInternalPage
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 callersMethodgetError
@return an Exception instance if one occured during lock acquisition; null otherwise
test/simpledb/TestUtil.java:367
↓ 9 callersMethodgetId
()
src/java/simpledb/Transaction.java:28
↓ 9 callersMethodgetOp
(String s)
src/java/simpledb/Parser.java:15
↓ 9 callersMethodgetPageId
Unit test for RecordId.getPageId()
test/simpledb/RecordIdTest.java:33
↓ 9 callersMethodgetTupleDesc
Returns the TupleDesc associated with this OpIterator. @return the TupleDesc associated with this OpIterator.
src/java/simpledb/OpIterator.java:48
↓ 9 callersMethodmetaLockTester
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 callersMethodrewind
Resets the iterator to the start. @throws DbException When rewind is unsupported.
src/java/simpledb/DbFileIterator.java:34
↓ 9 callersMethodsetEstimatedCardinality
@param card The estimated cardinality of this operator Will only be used in lab7
src/java/simpledb/Operator.java:103
↓ 9 callersMethodsetLeftSiblingId
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 callersMethodcheckLinear
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 callersMethodclose
()
src/java/simpledb/Filter.java:40
↓ 8 callersMethodcreateRandomLeafPage
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 callersMethoddisambiguateName
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 callersMethodgenerateLogicalPlan
(TransactionId tid, String s)
src/java/simpledb/Parser.java:466
↓ 8 callersMethodgetLogFile
Return the log file of the static Database instance
src/java/simpledb/Database.java:39
↓ 8 callersMethodgetMaxTuples
Retrieve the maximum number of tuples this page can hold.
src/java/simpledb/BTreeLeafPage.java:112
↓ 8 callersMethodgetPageId
@return the page id this RecordId references.
src/java/simpledb/RecordId.java:37
↓ 8 callersMethodhasNext
()
src/java/simpledb/BTreeScan.java:123
↓ 8 callersMethodkeyField
Returns the index of the field that this B+ tree is keyed on
src/java/simpledb/BTreeFile.java:174
↓ 8 callersMethodnext
()
src/java/simpledb/BTreeScan.java:129
↓ 8 callersMethodnumPages
()
test/simpledb/TestUtil.java:209
↓ 8 callersMethodopen
()
src/java/simpledb/Filter.java:35
↓ 8 callersMethodreverseIterator
@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 callersMethodconvert
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 callersMethoddeleteTuple
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 callersMethodestimateScanCost
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 callersMethodgetEmptySlot
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 callersMethodgetOperator
()
src/java/simpledb/JoinPredicate.java:54
↓ 7 callersMethodgetParentId
Get the parent id of this page @return the parent id
src/java/simpledb/BTreePage.java:82
↓ 7 callersMethodgetStatsMap
()
src/java/simpledb/TableStats.java:46
↓ 7 callersMethodinsertEntry
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 callersMethodinsertTuple
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 callersMethodisSlotUsed
Returns true if the page of the BTreeFile associated with slot i is used
src/java/simpledb/BTreeHeaderPage.java:270
↓ 7 callersMethodmarkSlotUsed
Abstraction to fill or clear a slot on this page.
src/java/simpledb/BTreeInternalPage.java:593
↓ 7 callersMethodmarkSlotUsed
Abstraction to mark a page of the BTreeFile used or unused
src/java/simpledb/BTreeHeaderPage.java:279
↓ 7 callersMethodopen
()
src/java/simpledb/Aggregate.java:85
↓ 7 callersMethodpreAppend
()
src/java/simpledb/LogFile.java:126
↓ 7 callersMethodrewind
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 callersMethodsetTableStats
(String tablename, TableStats stats)
src/java/simpledb/TableStats.java:24
↓ 7 callersMethodwritePage
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 callersMethodaddTable
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 callersMethodconvertToInternalPage
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 callersMethodconvertToLeafPage
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 callersMethodcrash
()
test/simpledb/systemtest/LogTest.java:105
↓ 6 callersMethoddoAggregate
(Aggregator.Op operation, int groupColumn)
test/simpledb/systemtest/AggregateTest.java:76
↓ 6 callersMethodgetDatabaseFile
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 callersMethodgetField
()
src/java/simpledb/IndexPredicate.java:30
↓ 6 callersMethodgetNumSlots
Computes the number of slots in the header
src/java/simpledb/BTreeHeaderPage.java:87
↓ 6 callersMethodgetPageNumber
@return the page number in the table getTableId() associated with this PageId
src/java/simpledb/BTreePageId.java:55
↓ 6 callersMethodgetTupleDesc
@return The TupleDesc representing the schema of this tuple.
src/java/simpledb/Tuple.java:30
↓ 6 callersMethodgetType
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 callersMethodisPkey
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 callersMethodisSlotUsed
Returns true if associated slot on this page is filled.
src/java/simpledb/HeapPage.java:291
↓ 6 callersMethodremove
()
src/java/simpledb/BTreeLeafPage.java:563
↓ 6 callersMethodsetRightSiblingId
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 callersMethodsetRootId
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 callersMethodupdateOperatorCardinality
@param tableAliasToId table alias to table id mapping @param tableStats table statistics
src/java/simpledb/OperatorCardinality.java:21
↓ 6 callersMethodwritePage
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 callersMethodcheckExhausted
Verifies that the OpIterator has been exhausted of all elements.
test/simpledb/TestUtil.java:155
↓ 5 callersMethodclose
()
src/java/simpledb/BTreeScan.java:137
↓ 5 callersMethoddeleteKeyAndRightChild
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 callersMethoddeleteTuple
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 callersMethodgetChildren
()
src/java/simpledb/Join.java:97
↓ 5 callersMethodgetField1
()
src/java/simpledb/JoinPredicate.java:42
↓ 5 callersMethodgetNumEntriesPerPage
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 callersMethodgetOperand
@return the operand
src/java/simpledb/Predicate.java:82
↓ 5 callersMethodgetPrimaryKey
(int tableid)
src/java/simpledb/Catalog.java:88
↓ 5 callersMethodgetRandomJoinCosts
(JoinOptimizer jo, LogicalJoinNode js, int[] card1s, int[] card2s, double[] cost1s, double[] cost2
test/simpledb/JoinOptimizerTest.java:90
↓ 5 callersMethodhasNext
()
src/java/simpledb/SeqScan.java:91
↓ 5 callersMethodinit
Initially mark all slots in the header used.
src/java/simpledb/BTreeHeaderPage.java:70
↓ 5 callersMethodinsertTuple
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 callersMethoditerator
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 callersMethodlistToString
(ArrayList<Integer> list)
src/java/simpledb/Utility.java:148
↓ 5 callersMethodmergeTupleIntoGroup
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 callersMethodnext
()
src/java/simpledb/SeqScan.java:96
↓ 5 callersMethodnumPages
Returns the number of pages in this HeapFile.
src/java/simpledb/HeapFile.java:78
↓ 5 callersMethodopen
()
src/java/simpledb/BTreeScan.java:102
↓ 5 callersMethodphysicalPlan
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 callersMethodresetPageSize
()
src/java/simpledb/BufferPool.java:48
↓ 5 callersMethodserialize
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 callersMethodsetParentId
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 callersMethodvalidatePredicate
(int column, int columnValue, int trueValue, int falseValue, Predicate.Op operation)
test/simpledb/systemtest/FilterBase.java:35
↓ 4 callersMethodcheckConstant
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 callersMethodcheckJoinEstimateCosts
(JoinOptimizer jo, LogicalJoinNode equalsJoinNode)
test/simpledb/JoinOptimizerTest.java:148
↓ 4 callersMethodclose
Close the iterator
src/java/simpledb/Query.java:90
↓ 4 callersMethodcompare
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 callersMethoddeleteTuple
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
← previousnext →101–200 of 1,070, ranked by callers