MCPcopy Create free account

hub / github.com/awelm/simpledb / functions

Functions643 in github.com/awelm/simpledb

↓ 4 callersMethod_estimateStrictComparisonSelectivity
(boolean greaterThan, int v)
src/simpledb/IntHistogram.java:60
↓ 4 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/simpledb/Catalog.java:42
↓ 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:210
↓ 4 callersMethodcheckJoinEstimateCosts
(JoinOptimizer jo, LogicalJoinNode equalsJoinNode)
test/simpledb/JoinOptimizerTest.java:117
↓ 4 callersMethodgetOp
Interface to access operations by a string containing an integer index for command-line convenience. @param s a string containing a valid integer Op
src/simpledb/Predicate.java:20
↓ 4 callersMethoditerator
@return an iterator over all tuples on this page (calling remove on this iterator throws an UnsupportedOperationException) (note that this iterator sh
src/simpledb/HeapPage.java:347
↓ 4 callersMethodnext
()
src/simpledb/SeqScan.java:60
↓ 4 callersMethodorderJoins
Compute a logical, reasonably efficient join on the specified tables. See PS4 for hints on how this should be implemented. @param stats Statistics
src/simpledb/JoinOptimizer.java:187
↓ 4 callersMethodstringToInt
Convert a string to an integer, with the property that if the return value(s1) < return value(s2), then s1 < s2
src/simpledb/StringHistogram.java:20
↓ 4 callersMethodvalidateInsert
(int columns, int sourceRows, int destinationRows)
test/simpledb/systemtest/InsertTest.java:11
↓ 4 callersMethodvalidateTransactions
(int threads)
test/simpledb/systemtest/TransactionTest.java:25
↓ 4 callersMethodwritePageData
(RandomAccessFile raf, Page p)
src/simpledb/LogFile.java:221
↓ 3 callersMethodaddProjectField
Add a specified field/aggregate combination to the select list of the query. Fields are output by the query such that the rightmost field is t
src/simpledb/LogicalPlan.java:172
↓ 3 callersMethodaddScan
Add a scan to the plan. One scan node needs to be added for each alias of a table accessed by the plan. @param table the id of the tab
src/simpledb/LogicalPlan.java:161
↓ 3 callersMethodawait
()
test/simpledb/systemtest/TransactionTest.java:176
↓ 3 callersMethodcombinedStringArrays
Ensures that combined's field names = td1's field names + td2's field names
test/simpledb/TupleDescTest.java:52
↓ 3 callersMethodcommit
Finish the transaction
src/simpledb/Transaction.java:33
↓ 3 callersMethodcreateAggregateTupleDesc
(Type gbFieldType, String aggColumnName, String gbColumnName)
src/simpledb/Aggregate.java:71
↓ 3 callersMethodcreateRandomHeapFileUnopened
(int columns, int rows, int maxValue, Map<Integer, Integer> columnSpecification, Array
test/simpledb/systemtest/SystemTestUtil.java:51
↓ 3 callersMethodestimateJoinCardinality
Estimate the cardinality of a join. The cardinality of a join is the number of tuples produced by the join. @param j A LogicalJoinNode representing
src/simpledb/JoinOptimizer.java:108
↓ 3 callersMethodestimateJoinCost
Estimate the cost of a join. The cost of the join should be calculated based on the join algorithm (or algorithms) that you implemented for Lab 2. I
src/simpledb/JoinOptimizer.java:84
↓ 3 callersMethodfindMagicTuple
(HeapFile f, Transaction t)
test/simpledb/systemtest/EvictionTest.java:61
↓ 3 callersMethodforce
()
src/simpledb/LogFile.java:506
↓ 3 callersMethodgetCost
Find the cost of the best join order in the cache for the specified plan @param s the set of joins to look up the best cost for @retu
src/simpledb/PlanCache.java:39
↓ 3 callersMethodgetLogFile
Return the log file of the static Database instance
src/simpledb/Database.java:35
↓ 3 callersMethodgetPageId
@return the page id this RecordId references.
src/simpledb/RecordId.java:30
↓ 3 callersMethodgetRandomTableScanCosts
(int[] pageNums, int[] ioCosts)
test/simpledb/TableStatsTest.java:32
↓ 3 callersMethodisDirty
Get the id of the transaction that last dirtied this page, or null if the page is clean.. @return The id of the transaction that last dirtied this pa
src/simpledb/Page.java:29
↓ 3 callersMethodlistToString
(ArrayList<Integer> list)
src/simpledb/Utility.java:152
↓ 3 callersMethodopen
()
src/simpledb/Join.java:42
↓ 3 callersMethodopen
()
src/simpledb/TupleIterator.java:28
↓ 3 callersMethodopen
()
src/simpledb/SeqScan.java:40
↓ 3 callersMethodparseQuery
(TransactionId tid, ZQuery q)
src/simpledb/Parser.java:225
↓ 3 callersMethodphysicalPlan
Convert this LogicalPlan into a physicalPlan represented by a {@link DbIterator}. Attempts to find the optimal plan by using {@link JoinOptimizer#o
src/simpledb/LogicalPlan.java:272
↓ 3 callersMethodprint
Print out a human readable represenation of the log
src/simpledb/LogFile.java:502
↓ 3 callersMethodprocessNextStatement
(String s)
src/simpledb/Parser.java:396
↓ 3 callersMethodreadPage
Read the specified page from disk. @throws IllegalArgumentException if the page does not exist in this file.
src/simpledb/DbFile.java:20
↓ 3 callersMethodreleasePage
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/simpledb/BufferPool.java:95
↓ 3 callersMethodtransactionComplete
Handle the details of transaction commit / abort
src/simpledb/Transaction.java:38
↓ 3 callersMethodtupleToList
(Tuple tuple)
test/simpledb/systemtest/SystemTestUtil.java:84
↓ 3 callersMethodvalidateJoin
(int table1ColumnValue, int table1Rows, int table2ColumnValue, int table2Rows)
test/simpledb/systemtest/JoinTest.java:13
↓ 2 callersMethod_removeDependency
(TransactionId finishedRunning, TransactionId waiting, PageId pid)
src/simpledb/DependencyGraph.java:45
↓ 2 callersMethodaddDependency
(TransactionId waiter, TransactionId runner, PageId pid)
src/simpledb/DependencyGraph.java:20
↓ 2 callersMethodaddFilter
Add a new filter to the logical plan @param field The name of the over which the filter applies; this can be a fully qualified field (tablename.fi
src/simpledb/LogicalPlan.java:97
↓ 2 callersMethodaddJoin
Add a join between two fields of two different tables. @param joinField1 The name of the first join field; this can be a fully qualified name (e.g.,
src/simpledb/LogicalPlan.java:119
↓ 2 callersMethodcheckQuadratic
Checks if the sequence represents a quadratic sequence (approximately) ret[0] is true if the sequence is quadratic ret[1] is the common difference of
test/simpledb/systemtest/SystemTestUtil.java:186
↓ 2 callersMethodclear
Delete all tables from the catalog
src/simpledb/Catalog.java:99
↓ 2 callersMethodclose
()
src/simpledb/SeqScan.java:67
↓ 2 callersMethodcombine
(Tuple t1, Tuple t2)
src/simpledb/Tuple.java:16
↓ 2 callersMethodcreateTable
(int column, int columnValue)
test/simpledb/systemtest/FilterBase.java:52
↓ 2 callersMethoddoesJoin
Return true if the specified table is in the list of joins, false otherwise
src/simpledb/JoinOptimizer.java:344
↓ 2 callersMethodflushPage
Flushes a certain page to disk @param pid an ID indicating the page to flush
src/simpledb/BufferPool.java:207
↓ 2 callersMethodgetCard
Find the cardinality of the best join order in the cache for the specified plan @param s the set of joins to look up the best cardinality for
src/simpledb/PlanCache.java:47
↓ 2 callersMethodgetDiff
(double[] sequence)
test/simpledb/systemtest/SystemTestUtil.java:173
↓ 2 callersMethodgetFile
Returns the File backing this HeapFile on disk. @return the File backing this HeapFile on disk.
src/simpledb/HeapFile.java:35
↓ 2 callersMethodgetId
@return the PageId associated with this page.
src/simpledb/HeapPage.java:107
↓ 2 callersMethodgetId
Returns a unique ID used to identify this DbFile in the Catalog. This id can be used to look up the table via {@link Catalog#getDbFile} and {@link Cat
src/simpledb/DbFile.java:80
↓ 2 callersMethodgetMemoryFootprint
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:149
↓ 2 callersMethodgetNumTuples
Retrieve the number of tuples on this page. @return the number of tuples on this page
src/simpledb/HeapPage.java:69
↓ 2 callersMethodgetOrder
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/simpledb/PlanCache.java:31
↓ 2 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/Page.java:47
↓ 2 callersMethodgetQuery
Get the query text associated with this plan via {@link #setQuery}.
src/simpledb/LogicalPlan.java:69
↓ 2 callersMethodgetTableName
(int id)
src/simpledb/Catalog.java:114
↓ 2 callersMethodgetTupleDesc
()
test/simpledb/TestUtil.java:272
↓ 2 callersMethodgetTypes
@return a Type array of length len populated with Type.INT_TYPE
src/simpledb/Utility.java:13
↓ 2 callersMethodinsertRow
(HeapFile f, Transaction t)
test/simpledb/systemtest/EvictionTest.java:42
↓ 2 callersMethodisDirty
Returns the tid of the transaction that last dirtied this page, or null if the page is not dirty
src/simpledb/HeapPage.java:300
↓ 2 callersMethodisEnabled
@return true if level is being logged.
src/simpledb/Debug.java:41
↓ 2 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/StringAggregator.java:106
↓ 2 callersMethoditerator
(TransactionId tid)
src/simpledb/HeapFile.java:217
↓ 2 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/StringAggregator.java:42
↓ 2 callersMethodopen
()
src/simpledb/Insert.java:36
↓ 2 callersMethodparseQueryLogicalPlan
(TransactionId tid, ZQuery q)
src/simpledb/Parser.java:112
↓ 2 callersMethodprocessExpression
(TransactionId tid, ZExpression wx, LogicalPlan lp)
src/simpledb/Parser.java:34
↓ 2 callersMethodreadNext
Returns the next Tuple in the iterator, or null if the iteration is finished. AbstractDbIterator uses this method to implement both <code>next
src/simpledb/AbstractDbIterator.java:30
↓ 2 callersMethodreadNext
Reads the next tuple from the underlying source. @return the next Tuple in the iterator, null if the iteration is finished.
src/simpledb/AbstractDbFileIterator.java:32
↓ 2 callersMethodreadPageData
(RandomAccessFile raf)
src/simpledb/LogFile.java:249
↓ 2 callersMethodreset
(int parties)
test/simpledb/systemtest/TransactionTest.java:170
↓ 2 callersMethodreset
()
src/simpledb/Database.java:58
↓ 2 callersMethodrunTransactionForPredicate
(HeapFile table, Predicate predicate)
test/simpledb/systemtest/FilterBase.java:27
↓ 2 callersMethodsetQuery
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/simpledb/LogicalPlan.java:63
↓ 2 callersMethodsetSlot
Abstraction to fill or clear a slot on this page.
src/simpledb/HeapPage.java:335
↓ 2 callersMethodtestTransactionComplete
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 callersMethodtupleno
@return the tuple number this RecordId references.
src/simpledb/RecordId.java:23
↓ 2 callersMethodunlockPage
(TransactionId tid, PageId pid)
src/simpledb/LockManager.java:107
↓ 2 callersMethodvalidateAfter
Optional hook for validating database state after applyPredicate.
test/simpledb/systemtest/FilterBase.java:22
↓ 2 callersMethodwritePage
(Page page)
src/simpledb/HeapFile.java:81
↓ 1 callersMethodaddAggregate
Add an aggregate over the field with the specified grouping to the query. SimpleDb only supports a single aggregate expression and GR
src/simpledb/LogicalPlan.java:187
↓ 1 callersMethodaddDependencies
(TransactionId tid, PageId pid, boolean exclusiveLock, ArrayList<Lock> otherLocks)
src/simpledb/LockManager.java:157
↓ 1 callersMethodaddOrderBy
Add an ORDER BY expression in the specified order on the specified field. SimpleDb only supports a single ORDER BY field. @param fiel
src/simpledb/LogicalPlan.java:199
↓ 1 callersMethodaddPlan
Add a new cost, cardinality and ordering for a particular join set. Does not verify that the new cost is less than any previously added cost
src/simpledb/PlanCache.java:21
↓ 1 callersMethodaddTuple
(TransactionId tid, Tuple t)
src/simpledb/HeapFile.java:103
↓ 1 callersMethodaddValue
Add a new value to thte histogram
src/simpledb/StringHistogram.java:43
↓ 1 callersMethodaggName
(Aggregator.Op aop)
src/simpledb/Aggregate.java:55
↓ 1 callersMethodaggregate
(ArrayList<ArrayList<Integer>> tuples, Aggregator.Op operation, int aggregateColumn, int groupColumn)
test/simpledb/systemtest/AggregateTest.java:50
↓ 1 callersMethodapplyPredicate
Should apply the predicate to table. This will be executed in transaction tid.
test/simpledb/systemtest/FilterBase.java:18
↓ 1 callersMethodcalculateTableFieldsMinMax
()
src/simpledb/TableStats.java:86
↓ 1 callersMethodclose
()
src/simpledb/Insert.java:40
↓ 1 callersMethodclose
()
src/simpledb/Join.java:63
↓ 1 callersMethodclose
()
src/simpledb/TupleIterator.java:49
← previousnext →101–200 of 643, ranked by callers