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
↓ 2 callers
Method
getJoinField2Name
@return the field name of join field2. Should be quantified by alias or table name.
src/java/simpledb/Join.java:47
↓ 2 callers
Method
getJoinPredicate
()
src/java/simpledb/Join.java:27
↓ 2 callers
Method
getJoinPredicate
()
src/java/simpledb/HashEquiJoin.java:35
↓ 2 callers
Method
getMemoryFootprint
Returns number of bytes of RAM used by JVM after calling System.gc many times. @return amount of RAM (in bytes) used by JVM
test/simpledb/systemtest/SystemTestUtil.java:153
↓ 2 callers
Method
getPageData
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/BTreeHeaderPage.java:134
↓ 2 callers
Method
getPredicate
()
src/java/simpledb/Filter.java:25
↓ 2 callers
Method
getPrevPageId
Get the page id of the previous header page @return the page id of the previous header page
src/java/simpledb/BTreeHeaderPage.java:190
↓ 2 callers
Method
getQuery
Get the query text associated with this plan via {@link #setQuery}.
src/java/simpledb/LogicalPlan.java:65
↓ 2 callers
Method
getTableAliasToIdMapping
()
src/java/simpledb/LogicalPlan.java:79
↓ 2 callers
Method
getTableName
@return return the table name of the table the operator scans. This should be the actual name of the table in the catalog of the database
src/java/simpledb/BTreeScan.java:51
↓ 2 callers
Method
getTableName
@return return the table name of the table the operator scans. This should be the actual name of the table in the catalog of the database
src/java/simpledb/SeqScan.java:39
↓ 2 callers
Method
getTuple
protected method used by the iterator to get the ith tuple out of this page @param i - the index of the tuple @return the ith tuple in the page @throw
src/java/simpledb/BTreeLeafPage.java:500
↓ 2 callers
Method
getTupleDesc
()
test/simpledb/TestUtil.java:273
↓ 2 callers
Method
getTupleDesc
Returns the TupleDesc of this Aggregate. If there is no group by field, this will have one field - the aggregate column. If there is a group by field,
src/java/simpledb/Aggregate.java:117
↓ 2 callers
Method
getTupleDesc
()
src/java/simpledb/HashEquiJoin.java:39
↓ 2 callers
Method
getTypes
@return a Type array of length len populated with Type.INT_TYPE
src/java/simpledb/Utility.java:12
↓ 2 callers
Method
groupField
@return If this aggregate is accompanied by a groupby, return the groupby field index in the <b>INPUT</b> tuples. If not, return {@lin
src/java/simpledb/Aggregate.java:41
↓ 2 callers
Method
groupFieldName
@return If this aggregate is accompanied by a group by, return the name of the groupby field in the <b>OUTPUT</b> tuples. If not, return
src/java/simpledb/Aggregate.java:51
↓ 2 callers
Method
handleMinOccupancyPage
Handle the case when a B+ tree page becomes less than half full due to deletions. If one of its siblings has extra tuples/entries, redistribute those
src/java/simpledb/BTreeFile.java:480
↓ 2 callers
Method
hasPkey
Return true if a primary key field is joined by one of the joins in joinlist
src/java/simpledb/JoinOptimizer.java:411
↓ 2 callers
Method
indexIterator
Unit test for BTreeFile.indexIterator()
test/simpledb/BTreeFileReadTest.java:136
↓ 2 callers
Method
init
(BTreeFile bf, int[] tupdata, BlockingQueue<ArrayList<Integer>> insertedTuples)
src/java/simpledb/BTreeUtility.java:710
↓ 2 callers
Method
init
(BTreeFile bf, BlockingQueue<ArrayList<Integer>> insertedTuples)
src/java/simpledb/BTreeUtility.java:812
↓ 2 callers
Method
insertRow
(HeapFile f, Transaction t)
test/simpledb/systemtest/EvictionTest.java:43
↓ 2 callers
Method
isDirty
Returns the tid of the transaction that last dirtied this page, or null if the page is not dirty
src/java/simpledb/HeapPage.java:274
↓ 2 callers
Method
isDirty
()
src/java/simpledb/BTreeRootPtrPage.java:134
↓ 2 callers
Method
isDirty
Returns the tid of the transaction that last dirtied this page, or null if the page is not dirty
src/java/simpledb/BTreeHeaderPage.java:260
↓ 2 callers
Method
isEnabled
@return true if level is being logged.
src/java/simpledb/Debug.java:41
↓ 2 callers
Method
iterator
Create a OpIterator over group aggregate results. @return a OpIterator whose tuples are the pair (groupVal, aggregateVal) if using group, or a sing
src/java/simpledb/StringAggregator.java:39
↓ 2 callers
Method
loadMap
()
src/java/simpledb/HashEquiJoin.java:56
↓ 2 callers
Method
logAbort
Write an abort record to the log for the specified tid, force the log to disk, and perform a rollback @param tid The aborting transact
src/java/simpledb/LogFile.java:146
↓ 2 callers
Method
markDirty
(boolean dirty, TransactionId tid)
src/java/simpledb/BTreeRootPtrPage.java:129
↓ 2 callers
Method
markDirty
Marks this page as dirty/not dirty and record that transaction that did the dirtying
src/java/simpledb/BTreeHeaderPage.java:252
↓ 2 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 group-by field
src/java/simpledb/StringAggregator.java:27
↓ 2 callers
Method
moveEntry
Move an entry from one slot to another slot, and update the corresponding headers
src/java/simpledb/BTreeInternalPage.java:552
↓ 2 callers
Method
moveRecord
Move a record from one slot to another slot, and update the corresponding headers and RecordId
src/java/simpledb/BTreeLeafPage.java:365
↓ 2 callers
Method
processExpression
(TransactionId tid, ZExpression wx, LogicalPlan lp)
src/java/simpledb/Parser.java:38
↓ 2 callers
Method
processList
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/HashEquiJoin.java:117
↓ 2 callers
Method
readNext
Reads the next tuple from the underlying source. @return the next Tuple in the iterator, null if the iteration is finished.
src/java/simpledb/AbstractDbFileIterator.java:33
↓ 2 callers
Method
readPageData
(RandomAccessFile raf)
src/java/simpledb/LogFile.java:249
↓ 2 callers
Method
releasePage
Releases the lock on a page. Calling this is very risky, and may result in wrong behavior. Think hard about who needs to call this and why, and why th
src/java/simpledb/BufferPool.java:82
↓ 2 callers
Method
reset
(int parties)
test/simpledb/systemtest/TransactionTest.java:170
↓ 2 callers
Method
runTransactionForPredicate
(HeapFile table, Predicate predicate)
test/simpledb/systemtest/FilterBase.java:27
↓ 2 callers
Method
setEmptyPage
Mark a page in this BTreeFile as empty. Find the corresponding header page (create it if needed), and mark the corresponding slot in the header page a
src/java/simpledb/BTreeFile.java:973
↓ 2 callers
Method
setKey
Set the key for this entry. Note that updating a BTreeEntry does not actually change the data stored on the page identified by its recordId. After ca
src/java/simpledb/BTreeEntry.java:93
↓ 2 callers
Method
setQuery
Set the text of the query representing this logical plan. Does NOT parse the specified query -- this method is just used so that the object c
src/java/simpledb/LogicalPlan.java:59
↓ 2 callers
Method
shutdown
()
src/java/simpledb/Parser.java:601
↓ 2 callers
Method
splitInternalPage
Split an internal page to make room for new entries and recursively split its parent page as needed to accommodate a new entry. The new entry for the
src/java/simpledb/BTreeFile.java:276
↓ 2 callers
Method
startInserter
Helper method to clean up the syntax of starting a BTreeInserter thread. The parameters pass through to the BTreeInserter constructor.
test/simpledb/systemtest/BTreeTest.java:37
↓ 2 callers
Method
stealFromLeftInternalPage
Steal entries from the left sibling and copy them to the given page so that both pages are at least half full. Keys can be thought of as rotating thro
src/java/simpledb/BTreeFile.java:656
↓ 2 callers
Method
stealFromRightInternalPage
Steal entries from the right sibling and copy them to the given page so that both pages are at least half full. Keys can be thought of as rotating thr
src/java/simpledb/BTreeFile.java:684
↓ 2 callers
Method
testTransactionComplete
Common unit test code for BufferPool.transactionComplete() covering commit and abort. Verify that commit persists changes to disk, and that abort reve
test/simpledb/TransactionTest.java:69
↓ 2 callers
Method
tupleToList
(Tuple tuple)
src/java/simpledb/BTreeUtility.java:22
↓ 2 callers
Method
updateEntry
Update the key and/or child pointers of an entry at the location specified by its record id. @param e - the entry with updated key and/or child pointe
src/java/simpledb/BTreeInternalPage.java:404
↓ 2 callers
Method
updateParentPointer
Helper function to update the parent pointer of a node. @param tid - the transaction id @param dirtypages - the list of dirty pages which should be u
src/java/simpledb/BTreeFile.java:354
↓ 2 callers
Method
validateAfter
Optional hook for validating database state after applyPredicate.
test/simpledb/systemtest/FilterBase.java:22
↓ 2 callers
Method
waitForDeleterThreads
(ArrayList<BTreeDeleter> deleteThreads)
test/simpledb/systemtest/BTreeTest.java:65
↓ 1 callers
Method
addAggregate
Add an aggregate over the field with the specified grouping to the query. SimpleDb only supports a single aggregate expression and GR
src/java/simpledb/LogicalPlan.java:196
↓ 1 callers
Method
addOrderBy
Add an ORDER BY expression in the specified order on the specified field. SimpleDb only supports a single ORDER BY field. @param fiel
src/java/simpledb/LogicalPlan.java:212
↓ 1 callers
Method
aggregate
(ArrayList<ArrayList<Integer>> tuples, Aggregator.Op operation, int aggregateColumn, int groupColumn)
test/simpledb/systemtest/AggregateTest.java:51
↓ 1 callers
Method
applyPredicate
Should apply the predicate to table. This will be executed in transaction tid.
test/simpledb/systemtest/FilterBase.java:18
↓ 1 callers
Method
avgSelectivity
The average selectivity of the field under op. @param field the index of the field @param op the operator in the predicate The semantic
src/java/simpledb/TableStats.java:131
↓ 1 callers
Method
buildTree
(int queryPlanDepth, int currentDepth, OpIterator queryPlan, int curre
src/java/simpledb/QueryPlanVisualizer.java:59
↓ 1 callers
Method
calculateQueryPlanTreeDepth
(OpIterator root)
src/java/simpledb/QueryPlanVisualizer.java:20
↓ 1 callers
Method
categToString
(int categ)
src/java/simpledb/BTreePageId.java:17
↓ 1 callers
Method
checkRep
(Field lowerBound, Field upperBound, boolean checkOccupancy, int depth)
src/java/simpledb/BTreeInternalPage.java:24
↓ 1 callers
Method
checkRep
(int fieldid, Field lowerBound, Field upperBound, boolean checkoccupancy, int depth)
src/java/simpledb/BTreeLeafPage.java:22
↓ 1 callers
Method
checkSubTree
(BTreeFile bt, TransactionId tid, HashMap<PageId, Page> dirtypages, BTr
src/java/simpledb/BTreeChecker.java:74
↓ 1 callers
Method
cleanUpEntries
Write out any remaining entries and update the parent pointers. @param entries - the list of remaining entries @param bf - the BTreeFile @param nentr
src/java/simpledb/BTreeFileEncoder.java:403
↓ 1 callers
Method
close
()
src/java/simpledb/Join.java:66
↓ 1 callers
Method
close
()
src/java/simpledb/TupleIterator.java:57
↓ 1 callers
Method
close
close the iterator
src/java/simpledb/BTreeFile.java:1147
↓ 1 callers
Method
close
close the iterator
src/java/simpledb/BTreeFile.java:1252
↓ 1 callers
Method
close
()
src/java/simpledb/Delete.java:35
↓ 1 callers
Method
compareDbIterators
Check to see if the DbIterators have the same number of tuples and each tuple pair in parallel iteration satisfies compareTuples . If not, throw an
test/simpledb/TestUtil.java:109
↓ 1 callers
Method
computeAggregate
(ArrayList<Integer> values, Aggregator.Op operation)
test/simpledb/systemtest/AggregateTest.java:23
↓ 1 callers
Method
computeStatistics
()
src/java/simpledb/TableStats.java:50
↓ 1 callers
Method
createEmptyPageData
Static method to generate a byte array corresponding to an empty BTreeHeaderPage. Used to add new, empty pages to the file. Passing the results of thi
src/java/simpledb/BTreeHeaderPage.java:181
↓ 1 callers
Method
discardPage
Remove the specific page id from the buffer pool. Needed by the recovery manager to ensure that the buffer pool doesn't keep a rolled
src/java/simpledb/BufferPool.java:176
↓ 1 callers
Method
execute
()
src/java/simpledb/Query.java:95
↓ 1 callers
Method
flushPages
Write all pages of the specified transaction to disk.
src/java/simpledb/BufferPool.java:192
↓ 1 callers
Method
generateRandomEntries
Generate a random set of entries for testing @param numKeys - number of keys @param minKey - the minimum key value @param maxKey - the maximum key val
src/java/simpledb/BTreeUtility.java:215
↓ 1 callers
Method
getAggOp
Convert the aggregate operator name s into an Aggregator.op operation. @throws ParsingException if s is not a valid operator name
src/java/simpledb/LogicalPlan.java:264
↓ 1 callers
Method
getBeforeImage
Provide a representation of this page before any modifications were made to it. Used by recovery.
src/java/simpledb/Page.java:52
↓ 1 callers
Method
getDatabaseFile
Unit test for Catalog.getDatabaseFile()
test/simpledb/CatalogTest.java:68
↓ 1 callers
Method
getField
@return the field number
src/java/simpledb/Predicate.java:64
↓ 1 callers
Method
getFile
Returns the File backing this BTreeFile on disk.
src/java/simpledb/BTreeFile.java:46
↓ 1 callers
Method
getHeaderSize
Computes the number of bytes in the header of a page in a HeapFile with each tuple occupying tupleSize bytes @return the number of bytes in the header
src/java/simpledb/HeapPage.java:78
↓ 1 callers
Method
getHeaderSize
Computes the number of bytes in the header of a B+ internal page with each entry occupying entrySize bytes @return the number of bytes in the header
src/java/simpledb/BTreeInternalPage.java:131
↓ 1 callers
Method
getHeaderSize
Computes the number of bytes in the header of a page in a BTreeFile with each tuple occupying tupleSize bytes
src/java/simpledb/BTreeLeafPage.java:123
↓ 1 callers
Method
getNumTuples
Retrieve the number of tuples on this page. @return the number of tuples on this page
src/java/simpledb/HeapPage.java:68
↓ 1 callers
Method
getOp
@return the operator
src/java/simpledb/Predicate.java:73
↓ 1 callers
Method
getOrder
Find the best join order in the cache for the specified plan @param s the set of joins to look up the best order for @return the best
src/java/simpledb/PlanCache.java:31
↓ 1 callers
Method
getOrderByField
()
src/java/simpledb/OrderBy.java:42
↓ 1 callers
Method
getOutputTupleDesc
()
src/java/simpledb/Query.java:60
↓ 1 callers
Method
getPageData
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/HeapPage.java:163
↓ 1 callers
Method
getPageData
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/BTreeInternalPage.java:234
↓ 1 callers
Method
getPageData
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/BTreeLeafPage.java:201
↓ 1 callers
Method
getPageData
Generates a byte array representing the contents of this root pointer page. Used to serialize this root pointer page to disk. The invariant here is th
src/java/simpledb/BTreeRootPtrPage.java:80
↓ 1 callers
Method
getPageNumber
@return the page number in the table getTableId() associated with this PageId
src/java/simpledb/HeapPageId.java:27
← previous
next →
301–400 of 1,070, ranked by callers