Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cmu-db/bustub
/ functions
Functions
1,956 in github.com/cmu-db/bustub
⨍
Functions
1,956
◇
Types & classes
541
↓ 228 callers
Method
IsNull
src/include/type/value.h:144
↓ 169 callers
Function
QueryShowResult
test/txn/txn_common.h:203
↓ 132 callers
Function
Match
Matches the string with the pattern, caching the compiled regexp.
build_support/cpplint.py:797
↓ 131 callers
Function
Search
Searches the string for the pattern, caching the compiled regexp.
build_support/cpplint.py:825
↓ 129 callers
Method
Insert
* @brief Inserts a key into the skip list. * * Note: `Insert` will not insert the key if it already exists in the skip list. * * @param key key to
src/primer/skiplist.cpp:71
↓ 127 callers
Method
Count
src/primer/count_min_sketch.cpp:64
↓ 110 callers
Function
ExecuteTxn
test/txn/txn_common.h:299
↓ 101 callers
Function
BeginTxn
test/txn/txn_common.h:313
↓ 97 callers
Function
TxnMgrDbg
src/execution/execution_common.cpp:106
↓ 84 callers
Method
Contains
src/primer/orset.cpp:30
↓ 81 callers
Method
CheckComparable
src/type/value.cpp:292
↓ 77 callers
Method
SetFromInteger
NOTE: for test purpose only
src/include/storage/index/generic_key.h:39
↓ 72 callers
Method
Remove
* @brief Remove the key from the trie. * @return If the key does not exist, return the original trie. Otherwise, returns the new trie. */
src/primer/trie.cpp:52
↓ 71 callers
Function
CommitTxn
test/txn/txn_common.h:328
↓ 71 callers
Method
OutputSchema
@return the schema for the output of this plan node */
src/include/execution/plans/abstract_plan.h:79
↓ 66 callers
Method
AddElem
src/primer/hyperloglog.cpp:51
↓ 63 callers
Method
NewPage
* @brief Allocates a new page on disk. * * ### Implementation * * You will maintain a thread-safe, monotonically increasing counter in the form of
src/buffer/buffer_pool_manager.cpp:120
↓ 61 callers
Function
Int
test/txn/txn_common.h:54
↓ 59 callers
Method
Size
@brief Returns the number of elements in the skip list. */
src/primer/skiplist.cpp:31
↓ 58 callers
Method
RecordAccess
* TODO(P1): Add implementation * * @brief Record access to a frame, adjusting ARC bookkeeping accordingly * by bring the accessed page to the front
src/buffer/arc_replacer.cpp:78
↓ 57 callers
Method
CheckInteger
* check whether value is integer */
src/type/value.cpp:326
↓ 56 callers
Function
Double
test/txn/txn_common.h:58
↓ 56 callers
Method
SetEvictable
* TODO(P1): Add implementation * * @brief Toggle whether a frame is evictable or non-evictable. This function also * controls replacer's size. Note
src/buffer/arc_replacer.cpp:97
↓ 55 callers
Method
GetTypeId
src/include/type/type.h:43
↓ 55 callers
Function
ParseCreateStatement
test/include/test_util.h:30
↓ 53 callers
Method
GetPinCount
* @brief Retrieves the pin count of a page. If the page does not exist in memory, return `std::nullopt`. * * This function is thread safe. Callers m
src/buffer/buffer_pool_manager.cpp:358
↓ 51 callers
Method
Begin
tools/bpm_bench/bpm_bench.cpp:89
↓ 50 callers
Function
EnsureTxnGCed
test/txn/txn_common.h:417
↓ 49 callers
Function
EnsureTxnExists
test/txn/txn_common.h:427
↓ 48 callers
Method
GetReadTs
@return the read ts */
src/include/concurrency/transaction.h:117
↓ 46 callers
Method
Evict
* TODO(P1): Add implementation * * @brief Performs the Replace operation as described by the writeup * that evicts from either mfu_ or mru_ into it
src/buffer/arc_replacer.cpp:47
↓ 44 callers
Method
WritePage
* Write the contents of the specified page into disk file */
src/storage/disk/disk_manager.cpp:81
↓ 43 callers
Method
ReadPage
* Read the contents of the specified page into the given memory area */
src/storage/disk/disk_manager.cpp:110
↓ 40 callers
Method
Commit
* Commits a transaction. * @param txn the transaction to commit, the txn will be managed by the txn manager so no need to delete it by * yourself *
src/concurrency/transaction_manager.cpp:65
↓ 40 callers
Method
ExecuteSqlTxn
* Execute a SQL query in the BusTub instance with provided txn. */
src/common/bustub_instance.cpp:273
↓ 39 callers
Method
GetTransactionState
@return the transaction state */
src/include/concurrency/transaction.h:114
↓ 37 callers
Method
GetTransactionId
@return the id of this transaction */
src/include/concurrency/transaction.h:102
↓ 36 callers
Method
GetValue
* Get the value of a specified column (const) * checks the schema to see how to return the Value. */
src/storage/table/tuple.cpp:80
↓ 35 callers
Method
GetTable
* Query table metadata by name. * @param table_name The name of the table * @return A (non-owning) pointer to the metadata for the table */
src/include/catalog/catalog.h:176
↓ 33 callers
Method
GetSlotNum
src/include/common/rid.h:41
↓ 32 callers
Function
BoolNull
test/txn/txn_common.h:64
↓ 32 callers
Method
Set
src/include/common/rid.h:43
↓ 31 callers
Method
Abort
* Aborts a transaction * @param txn the transaction to abort, the txn will be managed by the txn manager so no need to delete it by yourself */
src/concurrency/transaction_manager.cpp:99
↓ 31 callers
Method
KeyAt
* Helper method to find and return the key associated with input "index" (a.k.a * array offset) */
src/storage/page/b_plus_tree_leaf_page.cpp:61
↓ 31 callers
Function
TryBind
* @brief Bind a query using the schema below: * * - `CREATE TABLE y (x INT, z INT, a INT, b INT, c INT)` * - `CREATE TABLE a (x INT, y INT)` * - `
test/binder/binder_test.cpp:29
↓ 30 callers
Method
GetCardinality
* @brief Getter value for cardinality. * * @returns cardinality value */
src/include/primer/hyperloglog.h:45
↓ 30 callers
Method
GetCommitTs
@return the commit ts */
src/include/concurrency/transaction.h:120
↓ 27 callers
Function
ReconstructTuple
* @brief Reconstruct a tuple by applying the provided undo logs from the base tuple. All logs in the undo_logs are * applied regardless of the timest
src/execution/execution_common.cpp:53
↓ 26 callers
Method
ComputeCardinality
src/primer/hyperloglog.cpp:59
↓ 25 callers
Function
Execute
test/txn/txn_common.h:263
↓ 25 callers
Method
GetTransactionIdHumanReadable
@return the id of this transaction, stripping the highest bit. NEVER use/store this value unless for debugging. */
src/include/concurrency/transaction.h:105
↓ 25 callers
Method
GetWatermark
src/include/concurrency/watermark.h:38
↓ 24 callers
Method
Add
test/common/rwlatch_test.cpp:24
↓ 24 callers
Function
Bool
test/txn/txn_common.h:62
↓ 23 callers
Method
ExecuteSql
* Execute a SQL query in the BusTub instance. */
src/common/bustub_instance.cpp:250
↓ 23 callers
Method
GetType
@return column type */
src/include/catalog/column.h:84
↓ 19 callers
Method
GetPageId
src/include/common/rid.h:39
↓ 19 callers
Function
PrintStatements
test/binder/binder_test.cpp:61
↓ 19 callers
Method
TxnAborted
tools/terrier_bench/terrier.cpp:108
↓ 18 callers
Function
Header
test/txn/txn_common.h:86
↓ 18 callers
Method
ToString
Return a string version of this value
src/include/type/value.h:159
↓ 17 callers
Method
GetRootPageId
* @return Page id of the root of this tree * * You may want to implement this while implementing Task #3. */
src/storage/index/b_plus_tree.cpp:134
↓ 17 callers
Method
GetSize
src/include/recovery/log_record.h:131
↓ 17 callers
Function
TableHeapEntryNoMoreThan
test/txn/txn_common.h:285
↓ 16 callers
Method
AppendUndoLog
@return the index of the undo log in this transaction */
src/include/concurrency/transaction.h:129
↓ 16 callers
Function
CheckUndoLogColumn
test/txn/txn_common.h:221
↓ 16 callers
Method
GetBucketPageId
* Lookup a bucket page using a directory index * * @param bucket_idx the index in the directory to lookup * @return bucket page_id corresponding to
src/storage/page/hash_table_directory_page.cpp:83
↓ 16 callers
Method
GetColumnCount
@return the number of columns in the schema for the tuple */
src/include/catalog/schema.h:84
↓ 16 callers
Method
GetColumns
@return all the columns in the schema */
src/include/catalog/schema.h:43
↓ 16 callers
Method
GetPageId
* @brief Gets the page ID of the page this guard is protecting. */
src/storage/page/page_guard.cpp:83
↓ 16 callers
Method
InsertTuple
* Insert a tuple into the table. * @param tuple tuple to insert * @return true if the insert is successful (i.e. there is enough space) */
src/storage/page/table_page.cpp:56
↓ 16 callers
Method
OneCell
src/include/common/bustub_instance.h:66
↓ 16 callers
Method
Unpin
src/buffer/lru_replacer.cpp:32
↓ 15 callers
Method
Drop
* @brief Iteratively deallocate all the nodes. * * We do this to avoid stack overflow when the skip list is large. * * If we let the compiler hand
src/primer/skiplist.cpp:43
↓ 15 callers
Function
ExtractOneCell
tools/terrier_bench/terrier.cpp:145
↓ 15 callers
Method
GetData
* Access the raw variable length data */
src/type/type.cpp:308
↓ 15 callers
Method
GetReturnType
@return the type of this expression if it were to be evaluated */
src/include/execution/expressions/abstract_expression.h:77
↓ 15 callers
Method
NumLines
Returns the number of lines represented.
build_support/cpplint.py:1672
↓ 15 callers
Method
SetFromKey
src/include/storage/index/generic_key.h:32
↓ 15 callers
Method
VerifyIntegrity
* VerifyIntegrity - Use this for debugging but **DO NOT CHANGE** * * If you want to make changes to this, make a new function and extend it. * * V
src/storage/page/hash_table_directory_page.cpp:151
↓ 15 callers
Function
VerifyTuple
test/txn/txn_common.h:94
↓ 14 callers
Function
BumpCommitTs
test/txn/txn_common.h:437
↓ 14 callers
Method
GetAsInteger
NOTE: for test purpose only
src/include/storage/index/generic_key.h:45
↓ 14 callers
Method
GetDataMut
* @brief Gets a mutable pointer to the page of data this guard is protecting. */
src/storage/page/page_guard.cpp:210
↓ 14 callers
Method
GetIsolationLevel
@return the isolation level of this transaction */
src/include/concurrency/transaction.h:111
↓ 14 callers
Method
GetSize
* Helper methods to get/set size (number of key/value pairs stored in that * page) */
src/storage/page/b_plus_tree_page.cpp:28
↓ 14 callers
Method
Merge
src/primer/orset.cpp:64
↓ 13 callers
Method
Begin
tools/terrier_bench/terrier.cpp:112
↓ 13 callers
Function
CloseExpression
If input points to ( or { or [ or <, finds the position that closes it. If lines[linenum][pos] points to a '(' or '{' or '[' or '<', finds the li
build_support/cpplint.py:1822
↓ 13 callers
Function
GarbageCollection
test/txn/txn_common.h:412
↓ 13 callers
Method
GetTuple
* Read a tuple from a table. */
src/storage/page/table_page.cpp:86
↓ 13 callers
Function
PrintPlan
tools/terrier_bench/terrier.cpp:471
↓ 12 callers
Method
GetChildPlan
@return The child plan node */
src/include/execution/plans/topn_plan.h:53
↓ 12 callers
Method
GetColIdx
* Looks up and returns the index of the first column in the schema with the specified name. * If multiple columns have the same name, the first suc
src/include/catalog/schema.h:58
↓ 12 callers
Method
GetJoinType
@return The join type used in the hash join */
src/include/execution/plans/hash_join_plan.h:67
↓ 12 callers
Method
UpdateUndoLink
* @brief Update an undo link that links table heap tuple to the first undo log. * Before updating, `check` function will be called to ensure validity
src/concurrency/transaction_manager_impl.cpp:44
↓ 12 callers
Method
Victim
src/buffer/lru_replacer.cpp:28
↓ 11 callers
Function
CopyString
test/buffer/buffer_pool_manager_test.cpp:27
↓ 11 callers
Method
GetLength
Get length of the tuple, including varchar length
src/include/storage/table/tuple.h:94
↓ 11 callers
Method
GetName
@return column name */
src/include/catalog/column.h:75
next →
1–100 of 1,956, ranked by callers