MCPcopy Create free account

hub / github.com/awelm/simpledb / functions

Functions643 in github.com/awelm/simpledb

↓ 79 callersMethodgetCatalog
Return the catalog of the static Database instance
src/simpledb/Database.java:45
↓ 69 callersMethodequals
(Object field)
src/simpledb/Field.java:37
↓ 67 callersMethodnext
Returns the next tuple from the operator (typically implementing by reading from a child operator or an access method). @return the next tuple in the
src/simpledb/DbIterator.java:34
↓ 60 callersMethodgetHeapTuple
@return a Tuple with a single IntField with value n and with RecordId(HeapPageId(1,2), 3)
src/simpledb/Utility.java:50
↓ 52 callersMethodgetId
Return the id of this page. The id is a unique identifier for a page that can be used to look up the page on disk or determine if the page is residen
src/simpledb/Page.java:22
↓ 49 callersMethodhasNext
Returns true if the iterator has more tuples. @return true f the iterator has more tuples. @throws IllegalStateException If the iterator has not been
src/simpledb/DbIterator.java:24
↓ 45 callersMethodgetValue
()
src/simpledb/IntField.java:11
↓ 36 callersMethodopen
Opens the iterator. This must be called before any of the other methods. @throws DbException when there are problems opening/accessing the database.
src/simpledb/DbIterator.java:17
↓ 35 callersMethodaddTable
Set up initial resources for each unit test.
test/simpledb/HeapPageReadTest.java:70
↓ 33 callersMethodgetTupleDesc
Returns the TupleDesc of the table stored in this DbFile. @return TupleDesc of this DbFile.
src/simpledb/DbFile.java:86
↓ 32 callersMethodgetTupleDesc
@return a TupleDesc with n fields of type Type.INT_TYPE, each named name + n (name1, name2, etc.).
src/simpledb/Utility.java:35
↓ 31 callersMethodgetField
@return the value of the ith field, or null if it has not been set. @param i field index to return. Must be a valid index.
src/simpledb/Tuple.java:84
↓ 30 callersMethodcreateRandomHeapFile
@param columnSpecification Mapping between column index and value.
test/simpledb/systemtest/SystemTestUtil.java:18
↓ 30 callersMethodgetId
Returns an ID uniquely identifying this HeapFile. Implementation note: you will need to generate this tableid somewhere ensure that each HeapFile has
src/simpledb/HeapFile.java:48
↓ 29 callersMethodaddValue
Add a value to the set of values that you are keeping a histogram of. @param v Value to add to the histogram
src/simpledb/IntHistogram.java:46
↓ 29 callersMethodclose
Closes the iterator. When the iterator is closed, calling next(), hasNext(), or rewind() should fail by throwing IllegalStateException.
src/simpledb/DbIterator.java:53
↓ 29 callersMethodgetBufferPool
Return the buffer pool of the static Database instance
src/simpledb/Database.java:40
↓ 29 callersMethodsetField
Change the value of the ith field of this tuple. @param i index of the field to change. It must be a valid index. @param f new value for the field.
src/simpledb/Tuple.java:70
↓ 27 callersMethodestimateSelectivity
Estimate the selectivity of predicate <tt>field op constant</tt> on the table. @param field The field over which the predicate ranges @param op The l
src/simpledb/TableStats.java:152
↓ 27 callersMethodestimateSelectivity
Estimate the selectivity of a particular predicate and operand on this table. For example, if "op" is "GREATER_THAN" and "v" is 5, return your estima
src/simpledb/IntHistogram.java:98
↓ 27 callersMethoditerator
Returns an iterator over all the tuples stored in this DbFile. The iterator must use {@link BufferPool#getPage}, rather than {@link #readPage} to iter
src/simpledb/DbFile.java:65
↓ 26 callersMethodgetPage
Retrieve the specified page with the associated permissions. Will acquire a lock and may block if that lock is held by another transaction. <p> The re
src/simpledb/BufferPool.java:59
↓ 26 callersMethodgetTableId
@return the unique tableid hashcode with this PageId
src/simpledb/PageId.java:15
↓ 26 callersMethodnumFields
@return the number of fields in this TupleDesc
src/simpledb/TupleDesc.java:88
↓ 25 callersMethodtoString
()
src/simpledb/Field.java:39
↓ 24 callersMethodstartGrabber
Helper method to clean up the syntax of starting a LockGrabber thread. The parameters pass through to the LockGrabber constructor.
test/simpledb/DeadlockTest.java:62
↓ 23 callersMethodtransactionComplete
Release all locks associated with a given transaction. @param tid the ID of the transaction requesting the unlock
src/simpledb/BufferPool.java:104
↓ 21 callersMethodcreateTupleList
@return a DbIterator over a list of tuples constructed over the data provided in the constructor. This iterator is already open. @param width the nu
test/simpledb/TestUtil.java:26
↓ 21 callersMethodhashCode
Hash code. Different Field objects representing the same value should probably return the same hashCode.
src/simpledb/Field.java:36
↓ 19 callersMethodacquired
@return true if we successfully acquired the specified lock
test/simpledb/TestUtil.java:356
↓ 18 callersMethodfilter
Compares the field number of t specified in the constructor to the operand field specified in the constructor using the operator specific in the const
src/simpledb/Predicate.java:57
↓ 17 callersMethodcreateDuplicateHeapFile
Given a matrix of tuples from SystemTestUtil.createRandomHeapFile, create an identical HeapFile table @param tuples Tuples to create a HeapFile from @
test/simpledb/JoinOptimizerTest.java:27
↓ 17 callersMethodgetField
@return an IntField with value n
test/simpledb/TestUtil.java:12
↓ 16 callersMethodnameToId
Find the index of the field with a given name. @param name name of the field. @return the index of the field that is first to have the given name. @t
src/simpledb/TupleDesc.java:114
↓ 15 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/simpledb/LogicalPlan.java:212
↓ 15 callersMethodfilter
Apply the predicate to the two specified tuples. The comparison can be made through Field's compare method. @return true if the tuples satisfy the pre
src/simpledb/JoinPredicate.java:33
↓ 14 callersMethodgetType
Returns the type of this field (see {@link Type#INT_TYPE} or {@link Type#STRING_TYPE} @return type of this field
src/simpledb/Field.java:29
↓ 14 callersMethodmatchAllTuples
Check to see if every tuple in expected matches <b>some</b> tuple in actual via compareTuples. Note that actual may be a superset. If not, throw an
test/simpledb/TestUtil.java:128
↓ 13 callersMethodestimateTableCardinality
This method returns the number of tuples in the relation, given that a predicate with selectivity selectivityFactor is applied. @param selectivityFac
src/simpledb/TableStats.java:139
↓ 13 callersMethodstart
()
src/simpledb/Query.java:24
↓ 12 callersMethodgetFieldName
Gets the (possibly null) field name of the ith field of this TupleDesc. @param i index of the field name to return. It must be a valid index. @return
src/simpledb/TupleDesc.java:99
↓ 12 callersMethodrewind
Resets the iterator to the start. @throws DbException when rewind is unsupported. @throws IllegalStateException If the iterator has not been opened
src/simpledb/DbIterator.java:41
↓ 11 callersMethodgetType
Gets the type of the ith field of this TupleDesc. @param i The index of the field to get the type of. It must be a valid index. @return the type of t
src/simpledb/TupleDesc.java:136
↓ 11 callersMethodlog
Log message if the log level >= level. Uses printf.
src/simpledb/Debug.java:33
↓ 11 callersMethodresetBufferPool
Method used for testing -- create a new instance of the buffer pool and return it
src/simpledb/Database.java:52
↓ 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/simpledb/HeapPageId.java:50
↓ 10 callersMethodequals
Compares the specified object with this TupleDesc for equality. Two TupleDescs are considered equal if they are the same size and if the n-th type in
src/simpledb/TupleDesc.java:162
↓ 10 callersMethodgetSize
@return The size (in bytes) of tuples corresponding to this TupleDesc. Note that tuples from a given TupleDesc are of a fixed size.
src/simpledb/TupleDesc.java:146
↓ 10 callersMethodmarkDirty
Set the dirty state of this page as dirtied by a particular transaction
src/simpledb/Page.java:34
↓ 10 callersMethodnumFields
Unit test for TupleDesc.numFields()
test/simpledb/TupleDescTest.java:139
↓ 9 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
↓ 9 callersMethodgetDbFile
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/simpledb/Catalog.java:91
↓ 9 callersMethodgetRecordId
@return The RecordId representing the location of this tuple on disk. May be null.
src/simpledb/Tuple.java:52
↓ 9 callersMethodgetSlot
Returns true if associated slot on this page is filled.
src/simpledb/HeapPage.java:325
↓ 9 callersMethodgetTupleDesc
Returns the TupleDesc associated with this DbIterator. @return the TupleDesc associated with this DbIterator.
src/simpledb/DbIterator.java:47
↓ 9 callersMethodmatchTuples
(DbFile f, List<ArrayList<Integer>> tuples)
test/simpledb/systemtest/SystemTestUtil.java:93
↓ 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 callersMethodsetRecordId
Set the RecordId information for this tuple. @param rid the new RecordId for this tuple.
src/simpledb/Tuple.java:60
↓ 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:199
↓ 8 callersMethodclose
()
src/simpledb/Filter.java:32
↓ 8 callersMethodgenerateLogicalPlan
(TransactionId tid, String s)
src/simpledb/Parser.java:368
↓ 8 callersMethodgetNumEmptySlots
Returns the number of empty slots on this page.
src/simpledb/HeapPage.java:308
↓ 8 callersMethodnext
Returns the next tuple, or throws NoSuchElementException if the iterator is closed. @return The next tuple in the iterator @th
src/simpledb/Query.java:43
↓ 8 callersMethodopen
()
src/simpledb/Filter.java:27
↓ 8 callersMethodopenHeapFile
Opens a HeapFile and adds it to the catalog. @param cols number of columns in the table. @param f location of the file storing the table. @return the
src/simpledb/Utility.java:133
↓ 7 callersMethodclose
Close the iterator
src/simpledb/Query.java:50
↓ 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/simpledb/TableStats.java:127
↓ 7 callersMethodgetError
@return an Exception instance if one occured during lock acquisition; null otherwise
test/simpledb/TestUtil.java:366
↓ 7 callersMethodgetId
()
src/simpledb/Transaction.java:28
↓ 7 callersMethodgetTupleDesc
@return The TupleDesc representing the schema of this tuple.
src/simpledb/Tuple.java:44
↓ 7 callersMethodnext
Gets the next tuple from the operator (typically implementing by reading from a child operator or an access method). @return The next tuple in the it
src/simpledb/DbFileIterator.java:27
↓ 7 callersMethodnumPages
()
test/simpledb/TestUtil.java:209
↓ 7 callersMethodopen
()
src/simpledb/Aggregate.java:87
↓ 7 callersMethodpreAppend
()
src/simpledb/LogFile.java:126
↓ 6 callersMethodaddTuple
Adds the specified tuple to the file on behalf of transaction. This method will acquire a lock on the affected pages of the file, and may block until
src/simpledb/DbFile.java:43
↓ 6 callersMethodcompare
Compare the value of this field object to the passed in value. @param op The operator @param value The value to compare this Field to @return Whether
src/simpledb/Field.java:23
↓ 6 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/simpledb/HeapFileEncoder.java:31
↓ 6 callersMethoddoAggregate
(Aggregator.Op operation, int groupColumn)
test/simpledb/systemtest/AggregateTest.java:75
↓ 6 callersMethodflushAllPages
Flush all dirty pages to disk. NB: Be careful using this routine -- it writes dirty data to disk so will break simpledb if running in NO STEAL mode.
src/simpledb/BufferPool.java:186
↓ 6 callersMethodgetLen
()
src/simpledb/Type.java:13
↓ 6 callersMethodgetUUID
Generates a unique string each time it is called. @return a new unique UUID as a string, using java.util.UUID
test/simpledb/systemtest/SystemTestUtil.java:169
↓ 6 callersMethodhasNext
@return true if there are more tuples available.
src/simpledb/DbFileIterator.java:17
↓ 6 callersMethodisPkey
Return true if field is a primary key of the specified table, false otherwise
src/simpledb/JoinOptimizer.java:353
↓ 6 callersMethodopen
Opens the iterator @throws DbException when there are problems opening/accessing the database.
src/simpledb/DbFileIterator.java:13
↓ 5 callersMethodaddTuple
Adds the specified tuple to the page; the tuple should be updated to reflect that it is now stored on this page. @throws DbException if the page is
src/simpledb/HeapPage.java:261
↓ 5 callersMethodcheckExhausted
Verifies that the DbIterator has been exhausted of all elements.
test/simpledb/TestUtil.java:155
↓ 5 callersMethodclose
Closes the iterator.
src/simpledb/DbFileIterator.java:39
↓ 5 callersMethodcombine
Merge two TupleDescs into one, with td1.numFields + td2.numFields fields, with the first td1.numFields coming from td1 and the remaining from td2. @pa
src/simpledb/TupleDesc.java:23
↓ 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/simpledb/HeapPage.java:240
↓ 5 callersMethodgetRandomJoinCosts
(JoinOptimizer jo, LogicalJoinNode js, int[] card1s, int[] card2s, double[] cost1s, double[] cost2s)
test/simpledb/JoinOptimizerTest.java:73
↓ 5 callersMethodhasNext
@return true if there are more tuples remaining.
src/simpledb/Query.java:32
↓ 5 callersMethodhasNext
()
src/simpledb/SeqScan.java:56
↓ 5 callersMethoditerator
Create a DbIterator over group aggregate results. @return a DbIterator whose tuples are the pair (groupVal, aggregateVal) if using group, or a sing
src/simpledb/IntAggregator.java:153
↓ 5 callersMethodmarkDirty
Marks this page as dirty/not dirty and record that transaction that did the dirtying
src/simpledb/HeapPage.java:290
↓ 5 callersMethodmerge
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/simpledb/IntAggregator.java:57
↓ 5 callersMethodnumPages
Returns the number of pages in this HeapFile.
src/simpledb/HeapFile.java:97
↓ 5 callersMethodpageno
()
src/simpledb/PageId.java:34
↓ 5 callersMethodstart
Start the transaction running
src/simpledb/Transaction.java:19
↓ 5 callersMethodvalidatePredicate
(int column, int columnValue, int trueValue, int falseValue, Predicate.Op operation)
test/simpledb/systemtest/FilterBase.java:35
↓ 4 callersMethod_estimateEqualitySelectivity
(int v)
src/simpledb/IntHistogram.java:52
next →1–100 of 643, ranked by callers