Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/awelm/simpledb
/ functions
Functions
643 in github.com/awelm/simpledb
⨍
Functions
643
◇
Types & classes
114
↓ 1 callers
Method
close
()
src/simpledb/Delete.java:34
↓ 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:22
↓ 1 callers
Method
computeCostAndCardOfSubplan
This is a helper method that computes the cost and cardinality of joining joinToRemove to joinSet (joinSet should contain joinToRemove
src/simpledb/JoinOptimizer.java:251
↓ 1 callers
Method
createEmptyHeapFile
A utility method to create a new HeapFile with a single empty page, assuming the path does not already exist. If the path exists, the file will be ove
src/simpledb/Utility.java:104
↓ 1 callers
Method
createEmptyPageData
Static method to generate a byte array corresponding to an empty HeapPage. Used to add new, empty pages to the file. Passing the results of this metho
src/simpledb/HeapPage.java:228
↓ 1 callers
Method
deleteTuple
(TransactionId tid, Tuple t)
src/simpledb/HeapFile.java:137
↓ 1 callers
Method
deleteTuple
Remove the specified tuple from the buffer pool. Will acquire a write lock on the page the tuple is removed from. May block if the lock cannot be acqu
src/simpledb/BufferPool.java:176
↓ 1 callers
Method
detectDeadlock
()
src/simpledb/DependencyGraph.java:66
↓ 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 back page in its
src/simpledb/BufferPool.java:198
↓ 1 callers
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
src/simpledb/JoinOptimizer.java:147
↓ 1 callers
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 app
src/simpledb/StringHistogram.java:52
↓ 1 callers
Method
evictPage
Discards a page from the buffer pool. Flushes the page to disk to ensure dirty pages are updated on disk.
src/simpledb/BufferPool.java:232
↓ 1 callers
Method
flushPages
Write all pages of the specified transaction to disk.
src/simpledb/BufferPool.java:223
↓ 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/simpledb/LogicalPlan.java:249
↓ 1 callers
Method
getFieldOne
()
src/simpledb/JoinPredicate.java:41
↓ 1 callers
Method
getFieldTwo
()
src/simpledb/JoinPredicate.java:45
↓ 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/simpledb/HeapPage.java:77
↓ 1 callers
Method
getInitValueForOp
(Op what)
src/simpledb/IntAggregator.java:35
↓ 1 callers
Method
getLockHeldType
(TransactionId tid, PageId pid)
src/simpledb/LockManager.java:91
↓ 1 callers
Method
getOp
(String s)
src/simpledb/Parser.java:20
↓ 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/simpledb/HeapPage.java:158
↓ 1 callers
Method
getPageId
Unit test for RecordId.getPageId()
test/simpledb/RecordIdTest.java:33
↓ 1 callers
Method
getPagesLockedByTx
(TransactionId tid)
src/simpledb/LockManager.java:139
↓ 1 callers
Method
getPrimaryKey
(int tableid)
src/simpledb/Catalog.java:106
↓ 1 callers
Method
getStrings
@return a String array of length len populated with the (possibly null) strings in val, and an appended increasing integer at the end (val1, val2, etc
src/simpledb/Utility.java:24
↓ 1 callers
Method
getTableId
@return the table associated with this PageId
src/simpledb/HeapPageId.java:21
↓ 1 callers
Method
getTupleDesc
()
src/simpledb/Insert.java:32
↓ 1 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/simpledb/Aggregate.java:127
↓ 1 callers
Method
getTupleDesc
()
src/simpledb/Filter.java:23
↓ 1 callers
Method
getTupleDesc
@see simpledb.TupleDesc#combine(TupleDesc, TupleDesc) for possible implementation logic.
src/simpledb/Join.java:38
↓ 1 callers
Method
grabLock
Generic unit test structure to grab an additional lock in a new thread. @param tid the transaction Id @param pid the first page to lock over @param p
test/simpledb/LockingTest.java:84
↓ 1 callers
Method
handleDeleteStatement
(ZDelete s)
src/simpledb/Parser.java:324
↓ 1 callers
Method
handleInsertStatement
(ZInsert s)
src/simpledb/Parser.java:260
↓ 1 callers
Method
handleQueryStatement
(ZQuery s)
src/simpledb/Parser.java:231
↓ 1 callers
Method
handleTransactStatement
(ZTransactStmt s)
src/simpledb/Parser.java:353
↓ 1 callers
Method
hasNext
()
src/simpledb/HeapFile.java:166
↓ 1 callers
Method
hasPkey
Return true if a primary key field is joined by one of the joins in joinlist
src/simpledb/JoinOptimizer.java:361
↓ 1 callers
Method
insertTuple
Add a tuple to the specified table behalf of transaction tid. Will acquire a write lock on the page the tuple is added to(Lock acquisition is not need
src/simpledb/BufferPool.java:153
↓ 1 callers
Method
instantiateJoin
Return best iterator for computing a given logical join, given the specified statistics, and the provided left and right subplans. Note that ther
src/simpledb/JoinOptimizer.java:37
↓ 1 callers
Method
isReadOnly
()
src/simpledb/Permissions.java:27
↓ 1 callers
Method
isReadWrite
()
src/simpledb/Permissions.java:23
↓ 1 callers
Method
loadSchema
Reads the schema from a file and creates the appropriate tables in the database. @param catalogFile
src/simpledb/Catalog.java:126
↓ 1 callers
Method
lockPage
(TransactionId tid, PageId pid, boolean exclusiveLock)
src/simpledb/LockManager.java:47
↓ 1 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/simpledb/LogFile.java:146
↓ 1 callers
Method
logCheckpoint
Checkpoint the log and write a checkpoint record.
src/simpledb/LogFile.java:320
↓ 1 callers
Method
logCommit
Write a commit record to disk for the specified tid, and force the log to disk. @param tid The committing transaction.
src/simpledb/LogFile.java:176
↓ 1 callers
Method
logTruncate
Truncate any unneeded portion of the log to reduce its space consumption
src/simpledb/LogFile.java:362
↓ 1 callers
Method
logXactionBegin
Write a BEGIN record for the specified transaction @param tid The transaction that is beginning
src/simpledb/LogFile.java:302
↓ 1 callers
Method
maxVal
@return the maximum value indexed by the histogram
src/simpledb/StringHistogram.java:33
↓ 1 callers
Method
merge
Merge a new tuple into the aggregate for a distinct group value; creates a new group aggregate result if the group value has not yet been encountered.
src/simpledb/Aggregator.java:41
↓ 1 callers
Method
minVal
@return the minimum value indexed by the histogram
src/simpledb/StringHistogram.java:38
↓ 1 callers
Method
notParticipating
()
test/simpledb/systemtest/TransactionTest.java:181
↓ 1 callers
Method
open
()
src/simpledb/HeapFile.java:159
↓ 1 callers
Method
pageno
@return the page number in the table getTableId() associated with this PageId
src/simpledb/HeapPageId.java:29
↓ 1 callers
Method
parse
(DataInputStream dis)
src/simpledb/Type.java:18
↓ 1 callers
Method
printJoins
Helper function to display a Swing window with a tree representation of the specified list of joins. See {@link #orderJoins}, which may want
src/simpledb/JoinOptimizer.java:381
↓ 1 callers
Method
readFileBytes
@return a byte array containing the contents of the file 'path'
test/simpledb/TestUtil.java:172
↓ 1 callers
Method
readNextBruteForce
()
src/simpledb/Join.java:79
↓ 1 callers
Method
readNextHashJoin
()
src/simpledb/Join.java:94
↓ 1 callers
Method
readNextTuple
Suck up tuples from the source file. @throws Exception
src/simpledb/HeapPage.java:115
↓ 1 callers
Method
removeDependencies
(TransactionId finishedRunning, PageId pid)
src/simpledb/DependencyGraph.java:55
↓ 1 callers
Method
rewind
()
src/simpledb/Aggregate.java:112
↓ 1 callers
Method
rewind
()
src/simpledb/Filter.java:37
↓ 1 callers
Method
rewind
()
src/simpledb/Join.java:70
↓ 1 callers
Method
rewind
()
src/simpledb/SeqScan.java:71
↓ 1 callers
Method
rollback
Rollback the specified transaction, setting the state of any of pages it updated to their pre-updated state. To preserve transaction
src/simpledb/LogFile.java:464
↓ 1 callers
Method
serialize
Return a representation of this page id object as a collection of integers (used for logging) This class MUST have a constructor that
src/simpledb/PageId.java:12
↓ 1 callers
Method
serialize
Write the bytes representing this field to the specified DataOutputStream. @see DataOutputStream @param dos The DataOutputStream to write to.
src/simpledb/Field.java:15
↓ 1 callers
Method
setBeforeImage
()
src/simpledb/HeapPage.java:95
↓ 1 callers
Method
setStatsMap
(HashMap<String, TableStats> _statsMap)
src/simpledb/Parser.java:16
↓ 1 callers
Method
setTransaction
(Transaction t)
src/simpledb/Parser.java:388
↓ 1 callers
Method
stillParticipating
()
test/simpledb/systemtest/TransactionTest.java:185
↓ 1 callers
Method
swapInnerOuter
Return a new LogicalJoinNode with the inner and outer (t1.f1 and t2.f2) tables swapped.
src/simpledb/LogicalJoinNode.java:35
↓ 1 callers
Method
tableIdIterator
()
src/simpledb/Catalog.java:110
↓ 1 callers
Method
unlockAllPages
(TransactionId tid)
src/simpledb/LockManager.java:124
↓ 1 callers
Method
upgradeLock
(TransactionId tid, PageId pid)
src/simpledb/LockManager.java:143
↓ 1 callers
Method
validateAggregate
(DbFile table, Aggregator.Op operation, int aggregateColumn, int groupColumn, ArrayList<ArrayList<Integer>> ex
test/simpledb/systemtest/AggregateTest.java:12
↓ 1 callers
Method
validateScan
Tests the scan operator for a table with the specified dimensions.
test/simpledb/systemtest/ScanTest.java:27
↓ 1 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/simpledb/DbFile.java:29
Method
Aggregate
Constructor. <p> Implementation hint: depending on the type of afield, you will want to construct an IntAggregator or StringAggregator to help you wit
src/simpledb/Aggregate.java:31
Method
BufferPool
Creates a BufferPool that caches up to numPages pages. @param nPages maximum number of pages in this buffer pool.
src/simpledb/BufferPool.java:39
Method
Catalog
Constructor. Creates a new, empty catalog.
src/simpledb/Catalog.java:26
Method
CreateHeapFile
()
test/simpledb/TestUtil.java:375
Method
Database
()
src/simpledb/Database.java:21
Method
DbException
(String s)
src/simpledb/DbException.java:9
Method
Delete
Constructor specifying the transaction that this delete belongs to as well as the child to read from. @param t The transaction this delete runs in @pa
src/simpledb/Delete.java:19
Method
DependencyGraph
()
src/simpledb/DependencyGraph.java:15
Method
Filter
Constructor accepts a predicate to apply and a child operator to read tuples to filter from. @param p The predicate to filter tuples with @param chil
src/simpledb/Filter.java:18
Method
HeapFile
Constructs a heap file backed by the specified file. @param f the file that stores the on-disk backing store for this heap file.
src/simpledb/HeapFile.java:25
Method
HeapFileIterator
(TransactionId tid, HeapFile hf)
src/simpledb/HeapFile.java:153
Method
HeapPage
Create a HeapPage from a set of bytes of data read from disk. The format of a HeapPage is a set of header bytes indicating the slots of the page that
src/simpledb/HeapPage.java:41
Method
HeapPageId
Constructor. Create a page id structure for a specific page of a specific table. @param tableId The table that is being referenced @param pgNo The pa
src/simpledb/HeapPageId.java:15
Method
Insert
Constructor. @param tid The transaction running the insert. @param child The child operator from which to read tuples to be inserted. @param tableid T
src/simpledb/Insert.java:23
Method
InstrumentedHeapFile
(File f, TupleDesc td)
test/simpledb/systemtest/ScanTest.java:77
Method
IntAggregator
Aggregate constructor @param gbfield the 0-based index of the group-by field in the tuple, or NO_GROUPING if there is no grouping @param gbfieldtype t
src/simpledb/IntAggregator.java:25
Method
IntAggregatorIterator
(IntAggregator intAgg)
src/simpledb/IntAggregator.java:100
Method
IntField
Constructor. @param i The value of this field.
src/simpledb/IntField.java:20
Method
IntHistogram
Create a new IntHistogram. This IntHistogram should maintain a histogram of integer values that it receives. It should split the histogram into "buck
src/simpledb/IntHistogram.java:31
Method
Join
Constructor. Accepts to children to join and the predicate to join them on @param p The predicate to use to join the children @param child1 Iterator
src/simpledb/Join.java:24
← previous
next →
201–300 of 643, ranked by callers