MCPcopy Create free account

hub / github.com/awelm/simpledb / functions

Functions643 in github.com/awelm/simpledb

↓ 1 callersMethodclose
()
src/simpledb/Delete.java:34
↓ 1 callersMethodcompareDbIterators
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 callersMethodcomputeAggregate
(ArrayList<Integer> values, Aggregator.Op operation)
test/simpledb/systemtest/AggregateTest.java:22
↓ 1 callersMethodcomputeCostAndCardOfSubplan
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 callersMethodcreateEmptyHeapFile
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 callersMethodcreateEmptyPageData
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 callersMethoddeleteTuple
(TransactionId tid, Tuple t)
src/simpledb/HeapFile.java:137
↓ 1 callersMethoddeleteTuple
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 callersMethoddetectDeadlock
()
src/simpledb/DependencyGraph.java:66
↓ 1 callersMethoddiscardPage
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 callersMethodenumerateSubsets
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 callersMethodestimateSelectivity
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 callersMethodevictPage
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 callersMethodflushPages
Write all pages of the specified transaction to disk.
src/simpledb/BufferPool.java:223
↓ 1 callersMethodgetAggOp
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 callersMethodgetFieldOne
()
src/simpledb/JoinPredicate.java:41
↓ 1 callersMethodgetFieldTwo
()
src/simpledb/JoinPredicate.java:45
↓ 1 callersMethodgetHeaderSize
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 callersMethodgetInitValueForOp
(Op what)
src/simpledb/IntAggregator.java:35
↓ 1 callersMethodgetLockHeldType
(TransactionId tid, PageId pid)
src/simpledb/LockManager.java:91
↓ 1 callersMethodgetOp
(String s)
src/simpledb/Parser.java:20
↓ 1 callersMethodgetPageData
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 callersMethodgetPageId
Unit test for RecordId.getPageId()
test/simpledb/RecordIdTest.java:33
↓ 1 callersMethodgetPagesLockedByTx
(TransactionId tid)
src/simpledb/LockManager.java:139
↓ 1 callersMethodgetPrimaryKey
(int tableid)
src/simpledb/Catalog.java:106
↓ 1 callersMethodgetStrings
@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 callersMethodgetTableId
@return the table associated with this PageId
src/simpledb/HeapPageId.java:21
↓ 1 callersMethodgetTupleDesc
()
src/simpledb/Insert.java:32
↓ 1 callersMethodgetTupleDesc
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 callersMethodgetTupleDesc
()
src/simpledb/Filter.java:23
↓ 1 callersMethodgetTupleDesc
@see simpledb.TupleDesc#combine(TupleDesc, TupleDesc) for possible implementation logic.
src/simpledb/Join.java:38
↓ 1 callersMethodgrabLock
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 callersMethodhandleDeleteStatement
(ZDelete s)
src/simpledb/Parser.java:324
↓ 1 callersMethodhandleInsertStatement
(ZInsert s)
src/simpledb/Parser.java:260
↓ 1 callersMethodhandleQueryStatement
(ZQuery s)
src/simpledb/Parser.java:231
↓ 1 callersMethodhandleTransactStatement
(ZTransactStmt s)
src/simpledb/Parser.java:353
↓ 1 callersMethodhasNext
()
src/simpledb/HeapFile.java:166
↓ 1 callersMethodhasPkey
Return true if a primary key field is joined by one of the joins in joinlist
src/simpledb/JoinOptimizer.java:361
↓ 1 callersMethodinsertTuple
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 callersMethodinstantiateJoin
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 callersMethodisReadOnly
()
src/simpledb/Permissions.java:27
↓ 1 callersMethodisReadWrite
()
src/simpledb/Permissions.java:23
↓ 1 callersMethodloadSchema
Reads the schema from a file and creates the appropriate tables in the database. @param catalogFile
src/simpledb/Catalog.java:126
↓ 1 callersMethodlockPage
(TransactionId tid, PageId pid, boolean exclusiveLock)
src/simpledb/LockManager.java:47
↓ 1 callersMethodlogAbort
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 callersMethodlogCheckpoint
Checkpoint the log and write a checkpoint record.
src/simpledb/LogFile.java:320
↓ 1 callersMethodlogCommit
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 callersMethodlogTruncate
Truncate any unneeded portion of the log to reduce its space consumption
src/simpledb/LogFile.java:362
↓ 1 callersMethodlogXactionBegin
Write a BEGIN record for the specified transaction @param tid The transaction that is beginning
src/simpledb/LogFile.java:302
↓ 1 callersMethodmaxVal
@return the maximum value indexed by the histogram
src/simpledb/StringHistogram.java:33
↓ 1 callersMethodmerge
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 callersMethodminVal
@return the minimum value indexed by the histogram
src/simpledb/StringHistogram.java:38
↓ 1 callersMethodnotParticipating
()
test/simpledb/systemtest/TransactionTest.java:181
↓ 1 callersMethodopen
()
src/simpledb/HeapFile.java:159
↓ 1 callersMethodpageno
@return the page number in the table getTableId() associated with this PageId
src/simpledb/HeapPageId.java:29
↓ 1 callersMethodparse
(DataInputStream dis)
src/simpledb/Type.java:18
↓ 1 callersMethodprintJoins
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 callersMethodreadFileBytes
@return a byte array containing the contents of the file 'path'
test/simpledb/TestUtil.java:172
↓ 1 callersMethodreadNextBruteForce
()
src/simpledb/Join.java:79
↓ 1 callersMethodreadNextHashJoin
()
src/simpledb/Join.java:94
↓ 1 callersMethodreadNextTuple
Suck up tuples from the source file. @throws Exception
src/simpledb/HeapPage.java:115
↓ 1 callersMethodremoveDependencies
(TransactionId finishedRunning, PageId pid)
src/simpledb/DependencyGraph.java:55
↓ 1 callersMethodrewind
()
src/simpledb/Aggregate.java:112
↓ 1 callersMethodrewind
()
src/simpledb/Filter.java:37
↓ 1 callersMethodrewind
()
src/simpledb/Join.java:70
↓ 1 callersMethodrewind
()
src/simpledb/SeqScan.java:71
↓ 1 callersMethodrollback
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 callersMethodserialize
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 callersMethodserialize
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 callersMethodsetBeforeImage
()
src/simpledb/HeapPage.java:95
↓ 1 callersMethodsetStatsMap
(HashMap<String, TableStats> _statsMap)
src/simpledb/Parser.java:16
↓ 1 callersMethodsetTransaction
(Transaction t)
src/simpledb/Parser.java:388
↓ 1 callersMethodstillParticipating
()
test/simpledb/systemtest/TransactionTest.java:185
↓ 1 callersMethodswapInnerOuter
Return a new LogicalJoinNode with the inner and outer (t1.f1 and t2.f2) tables swapped.
src/simpledb/LogicalJoinNode.java:35
↓ 1 callersMethodtableIdIterator
()
src/simpledb/Catalog.java:110
↓ 1 callersMethodunlockAllPages
(TransactionId tid)
src/simpledb/LockManager.java:124
↓ 1 callersMethodupgradeLock
(TransactionId tid, PageId pid)
src/simpledb/LockManager.java:143
↓ 1 callersMethodvalidateAggregate
(DbFile table, Aggregator.Op operation, int aggregateColumn, int groupColumn, ArrayList<ArrayList<Integer>> ex
test/simpledb/systemtest/AggregateTest.java:12
↓ 1 callersMethodvalidateScan
Tests the scan operator for a table with the specified dimensions.
test/simpledb/systemtest/ScanTest.java:27
↓ 1 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/simpledb/DbFile.java:29
MethodAggregate
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
MethodBufferPool
Creates a BufferPool that caches up to numPages pages. @param nPages maximum number of pages in this buffer pool.
src/simpledb/BufferPool.java:39
MethodCatalog
Constructor. Creates a new, empty catalog.
src/simpledb/Catalog.java:26
MethodCreateHeapFile
()
test/simpledb/TestUtil.java:375
MethodDatabase
()
src/simpledb/Database.java:21
MethodDbException
(String s)
src/simpledb/DbException.java:9
MethodDelete
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
MethodDependencyGraph
()
src/simpledb/DependencyGraph.java:15
MethodFilter
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
MethodHeapFile
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
MethodHeapFileIterator
(TransactionId tid, HeapFile hf)
src/simpledb/HeapFile.java:153
MethodHeapPage
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
MethodHeapPageId
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
MethodInsert
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
MethodInstrumentedHeapFile
(File f, TupleDesc td)
test/simpledb/systemtest/ScanTest.java:77
MethodIntAggregator
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
MethodIntAggregatorIterator
(IntAggregator intAgg)
src/simpledb/IntAggregator.java:100
MethodIntField
Constructor. @param i The value of this field.
src/simpledb/IntField.java:20
MethodIntHistogram
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
MethodJoin
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
← previousnext →201–300 of 643, ranked by callers