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
↓ 4 callers
Method
_estimateStrictComparisonSelectivity
(boolean greaterThan, int v)
src/simpledb/IntHistogram.java:60
↓ 4 callers
Method
addTable
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 callers
Method
checkConstant
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 callers
Method
checkJoinEstimateCosts
(JoinOptimizer jo, LogicalJoinNode equalsJoinNode)
test/simpledb/JoinOptimizerTest.java:117
↓ 4 callers
Method
getOp
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 callers
Method
iterator
@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 callers
Method
next
()
src/simpledb/SeqScan.java:60
↓ 4 callers
Method
orderJoins
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 callers
Method
stringToInt
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 callers
Method
validateInsert
(int columns, int sourceRows, int destinationRows)
test/simpledb/systemtest/InsertTest.java:11
↓ 4 callers
Method
validateTransactions
(int threads)
test/simpledb/systemtest/TransactionTest.java:25
↓ 4 callers
Method
writePageData
(RandomAccessFile raf, Page p)
src/simpledb/LogFile.java:221
↓ 3 callers
Method
addProjectField
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 callers
Method
addScan
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 callers
Method
await
()
test/simpledb/systemtest/TransactionTest.java:176
↓ 3 callers
Method
combinedStringArrays
Ensures that combined's field names = td1's field names + td2's field names
test/simpledb/TupleDescTest.java:52
↓ 3 callers
Method
commit
Finish the transaction
src/simpledb/Transaction.java:33
↓ 3 callers
Method
createAggregateTupleDesc
(Type gbFieldType, String aggColumnName, String gbColumnName)
src/simpledb/Aggregate.java:71
↓ 3 callers
Method
createRandomHeapFileUnopened
(int columns, int rows, int maxValue, Map<Integer, Integer> columnSpecification, Array
test/simpledb/systemtest/SystemTestUtil.java:51
↓ 3 callers
Method
estimateJoinCardinality
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 callers
Method
estimateJoinCost
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 callers
Method
findMagicTuple
(HeapFile f, Transaction t)
test/simpledb/systemtest/EvictionTest.java:61
↓ 3 callers
Method
force
()
src/simpledb/LogFile.java:506
↓ 3 callers
Method
getCost
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 callers
Method
getLogFile
Return the log file of the static Database instance
src/simpledb/Database.java:35
↓ 3 callers
Method
getPageId
@return the page id this RecordId references.
src/simpledb/RecordId.java:30
↓ 3 callers
Method
getRandomTableScanCosts
(int[] pageNums, int[] ioCosts)
test/simpledb/TableStatsTest.java:32
↓ 3 callers
Method
isDirty
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 callers
Method
listToString
(ArrayList<Integer> list)
src/simpledb/Utility.java:152
↓ 3 callers
Method
open
()
src/simpledb/Join.java:42
↓ 3 callers
Method
open
()
src/simpledb/TupleIterator.java:28
↓ 3 callers
Method
open
()
src/simpledb/SeqScan.java:40
↓ 3 callers
Method
parseQuery
(TransactionId tid, ZQuery q)
src/simpledb/Parser.java:225
↓ 3 callers
Method
physicalPlan
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 callers
Method
print
Print out a human readable represenation of the log
src/simpledb/LogFile.java:502
↓ 3 callers
Method
processNextStatement
(String s)
src/simpledb/Parser.java:396
↓ 3 callers
Method
readPage
Read the specified page from disk. @throws IllegalArgumentException if the page does not exist in this file.
src/simpledb/DbFile.java:20
↓ 3 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/simpledb/BufferPool.java:95
↓ 3 callers
Method
transactionComplete
Handle the details of transaction commit / abort
src/simpledb/Transaction.java:38
↓ 3 callers
Method
tupleToList
(Tuple tuple)
test/simpledb/systemtest/SystemTestUtil.java:84
↓ 3 callers
Method
validateJoin
(int table1ColumnValue, int table1Rows, int table2ColumnValue, int table2Rows)
test/simpledb/systemtest/JoinTest.java:13
↓ 2 callers
Method
_removeDependency
(TransactionId finishedRunning, TransactionId waiting, PageId pid)
src/simpledb/DependencyGraph.java:45
↓ 2 callers
Method
addDependency
(TransactionId waiter, TransactionId runner, PageId pid)
src/simpledb/DependencyGraph.java:20
↓ 2 callers
Method
addFilter
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 callers
Method
addJoin
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 callers
Method
checkQuadratic
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 callers
Method
clear
Delete all tables from the catalog
src/simpledb/Catalog.java:99
↓ 2 callers
Method
close
()
src/simpledb/SeqScan.java:67
↓ 2 callers
Method
combine
(Tuple t1, Tuple t2)
src/simpledb/Tuple.java:16
↓ 2 callers
Method
createTable
(int column, int columnValue)
test/simpledb/systemtest/FilterBase.java:52
↓ 2 callers
Method
doesJoin
Return true if the specified table is in the list of joins, false otherwise
src/simpledb/JoinOptimizer.java:344
↓ 2 callers
Method
flushPage
Flushes a certain page to disk @param pid an ID indicating the page to flush
src/simpledb/BufferPool.java:207
↓ 2 callers
Method
getCard
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 callers
Method
getDiff
(double[] sequence)
test/simpledb/systemtest/SystemTestUtil.java:173
↓ 2 callers
Method
getFile
Returns the File backing this HeapFile on disk. @return the File backing this HeapFile on disk.
src/simpledb/HeapFile.java:35
↓ 2 callers
Method
getId
@return the PageId associated with this page.
src/simpledb/HeapPage.java:107
↓ 2 callers
Method
getId
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 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:149
↓ 2 callers
Method
getNumTuples
Retrieve the number of tuples on this page. @return the number of tuples on this page
src/simpledb/HeapPage.java:69
↓ 2 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/simpledb/PlanCache.java:31
↓ 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/simpledb/Page.java:47
↓ 2 callers
Method
getQuery
Get the query text associated with this plan via {@link #setQuery}.
src/simpledb/LogicalPlan.java:69
↓ 2 callers
Method
getTableName
(int id)
src/simpledb/Catalog.java:114
↓ 2 callers
Method
getTupleDesc
()
test/simpledb/TestUtil.java:272
↓ 2 callers
Method
getTypes
@return a Type array of length len populated with Type.INT_TYPE
src/simpledb/Utility.java:13
↓ 2 callers
Method
insertRow
(HeapFile f, Transaction t)
test/simpledb/systemtest/EvictionTest.java:42
↓ 2 callers
Method
isDirty
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 callers
Method
isEnabled
@return true if level is being logged.
src/simpledb/Debug.java:41
↓ 2 callers
Method
iterator
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 callers
Method
iterator
(TransactionId tid)
src/simpledb/HeapFile.java:217
↓ 2 callers
Method
merge
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 callers
Method
open
()
src/simpledb/Insert.java:36
↓ 2 callers
Method
parseQueryLogicalPlan
(TransactionId tid, ZQuery q)
src/simpledb/Parser.java:112
↓ 2 callers
Method
processExpression
(TransactionId tid, ZExpression wx, LogicalPlan lp)
src/simpledb/Parser.java:34
↓ 2 callers
Method
readNext
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 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/simpledb/AbstractDbFileIterator.java:32
↓ 2 callers
Method
readPageData
(RandomAccessFile raf)
src/simpledb/LogFile.java:249
↓ 2 callers
Method
reset
(int parties)
test/simpledb/systemtest/TransactionTest.java:170
↓ 2 callers
Method
reset
()
src/simpledb/Database.java:58
↓ 2 callers
Method
runTransactionForPredicate
(HeapFile table, Predicate predicate)
test/simpledb/systemtest/FilterBase.java:27
↓ 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/simpledb/LogicalPlan.java:63
↓ 2 callers
Method
setSlot
Abstraction to fill or clear a slot on this page.
src/simpledb/HeapPage.java:335
↓ 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
tupleno
@return the tuple number this RecordId references.
src/simpledb/RecordId.java:23
↓ 2 callers
Method
unlockPage
(TransactionId tid, PageId pid)
src/simpledb/LockManager.java:107
↓ 2 callers
Method
validateAfter
Optional hook for validating database state after applyPredicate.
test/simpledb/systemtest/FilterBase.java:22
↓ 2 callers
Method
writePage
(Page page)
src/simpledb/HeapFile.java:81
↓ 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/simpledb/LogicalPlan.java:187
↓ 1 callers
Method
addDependencies
(TransactionId tid, PageId pid, boolean exclusiveLock, ArrayList<Lock> otherLocks)
src/simpledb/LockManager.java:157
↓ 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/simpledb/LogicalPlan.java:199
↓ 1 callers
Method
addPlan
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 callers
Method
addTuple
(TransactionId tid, Tuple t)
src/simpledb/HeapFile.java:103
↓ 1 callers
Method
addValue
Add a new value to thte histogram
src/simpledb/StringHistogram.java:43
↓ 1 callers
Method
aggName
(Aggregator.Op aop)
src/simpledb/Aggregate.java:55
↓ 1 callers
Method
aggregate
(ArrayList<ArrayList<Integer>> tuples, Aggregator.Op operation, int aggregateColumn, int groupColumn)
test/simpledb/systemtest/AggregateTest.java:50
↓ 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
calculateTableFieldsMinMax
()
src/simpledb/TableStats.java:86
↓ 1 callers
Method
close
()
src/simpledb/Insert.java:40
↓ 1 callers
Method
close
()
src/simpledb/Join.java:63
↓ 1 callers
Method
close
()
src/simpledb/TupleIterator.java:49
← previous
next →
101–200 of 643, ranked by callers