Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/andylamp/BPlusTree
/ functions
Functions
271 in github.com/andylamp/BPlusTree
⨍
Functions
271
◇
Types & classes
22
↓ 3 callers
Method
setNextPagePointer
(long next)
src/main/java/ds/bplus/bptree/TreeLeaf.java:86
↓ 3 callers
Method
setPrevPagePointer
(long prevPagePointer)
src/main/java/ds/bplus/bptree/TreeLeaf.java:92
↓ 2 callers
Method
addLastToOverflowList
(long value)
src/main/java/ds/bplus/bptree/TreeLeaf.java:44
↓ 2 callers
Method
addLastToValueList
(String value)
src/main/java/ds/bplus/bptree/TreeLeaf.java:47
↓ 2 callers
Method
addToOverflowList
(int index, long value)
src/main/java/ds/bplus/bptree/TreeLeaf.java:41
↓ 2 callers
Method
commitLookupPage
Function that commits the allocation pool to the file; this can be done after each deletion or more unsafely before committing the file changes at the
src/main/java/ds/bplus/bptree/BPlusTree.java:1830
↓ 2 callers
Method
createOverflowPage
This function is responsible handling the creation of overflow pages. We have generally two distinct cases which are the following: Create an overfl
src/main/java/ds/bplus/bptree/BPlusTree.java:308
↓ 2 callers
Method
fixTheTopPointer
(TreeNode other, TreeInternalNode parent, int parentPointerIndex, int parent
src/main/java/ds/bplus/bptree/BPlusTree.java:1180
↓ 2 callers
Method
getIndex
()
src/main/java/ds/bplus/bptree/SearchResult.java:72
↓ 2 callers
Method
getLeafNodeDegree
()
src/main/java/ds/bplus/bptree/BPlusConfiguration.java:177
↓ 2 callers
Method
getOverflowPageDegree
()
src/main/java/ds/bplus/bptree/BPlusConfiguration.java:151
↓ 2 callers
Method
getTreeDegree
()
src/main/java/ds/bplus/bptree/BPlusConfiguration.java:148
↓ 2 callers
Method
getValueAt
(int index)
src/main/java/ds/bplus/bptree/TreeOverflow.java:47
↓ 2 callers
Method
incrementRootSplits
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:166
↓ 2 callers
Method
incrementTotalLeaves
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:96
↓ 2 callers
Method
initializeLookupPage
This function initializes the look-up page; in the simple case that it does not already exist it just creates an empty page by witting -1L all over it
src/main/java/ds/bplus/bptree/BPlusTree.java:2228
↓ 2 callers
Method
insertIO
(long key, String value, boolean unique, boolean verbose)
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:369
↓ 2 callers
Method
insertNonFull
This function is inspired from the one given in CLRS for inserting a key to a B-Tree but as splitTreeNode has been (heavily) modified in order to be u
src/main/java/ds/bplus/bptree/BPlusTree.java:417
↓ 2 callers
Method
isLookupPageOverflowNode
Check if the node in question is a lookup page overflow node @return true if the node is a lookup page overflow node, false otherwise
src/main/java/ds/bplus/bptree/TreeNode.java:259
↓ 2 callers
Method
isParent
Check if the node has the specified parent @param node node can be internal or leaf @param parent parent is always internal node @param pindex index
src/main/java/ds/bplus/bptree/BPlusTree.java:906
↓ 2 callers
Method
isValidAfterRemoval
Check if the internal node fulfills the B+ Tree invariant after removing <code>remove</code> number of elements @param node node to check @param remo
src/main/java/ds/bplus/bptree/BPlusTree.java:940
↓ 2 callers
Method
joinInternalNodes
@param left left node @param right right node @param cap max capacity of the node @throws InvalidBTreeStateException is thrown when there are incon
src/main/java/ds/bplus/bptree/BPlusTree.java:1339
↓ 2 callers
Method
joinLeaves
@param left left leaf @param right right leaf @param cap max capacity of the leaf @throws InvalidBTreeStateException is thrown when there are incon
src/main/java/ds/bplus/bptree/BPlusTree.java:1209
↓ 2 callers
Method
parseOverflowPages
Function to parse the overflow pages specifically for the range queries @param l leaf which contains the key with the overflow page @param index inde
src/main/java/ds/bplus/bptree/BPlusTree.java:545
↓ 2 callers
Method
popOverflowPointer
()
src/main/java/ds/bplus/bptree/TreeLeaf.java:56
↓ 2 callers
Method
popValue
()
src/main/java/ds/bplus/bptree/TreeLeaf.java:77
↓ 2 callers
Method
pushToOverflowList
(long overflowPointer)
src/main/java/ds/bplus/bptree/TreeLeaf.java:53
↓ 2 callers
Method
pushToValueList
(String value)
src/main/java/ds/bplus/bptree/TreeLeaf.java:74
↓ 2 callers
Method
rangeIO
(long minKey, long maxKey, boolean unique, boolean verbose)
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:332
↓ 2 callers
Method
removeLastOverflowPointer
()
src/main/java/ds/bplus/bptree/TreeLeaf.java:62
↓ 2 callers
Method
removeLastValue
()
src/main/java/ds/bplus/bptree/TreeLeaf.java:80
↓ 2 callers
Method
removeLastValue
()
src/main/java/ds/bplus/bptree/TreeOverflow.java:41
↓ 2 callers
Method
runDefaultTrials
Run default trial set @param trials number of trials to run @param vmin min key value @param vmax max key value @param qrange range of range queries
src/main/java/ds/bplus/util/TestRunner.java:246
↓ 2 callers
Method
setLeaf
(TreeLeaf leaf)
src/main/java/ds/bplus/bptree/SearchResult.java:60
↓ 2 callers
Method
setNextPagePointer
(long next)
src/main/java/ds/bplus/bptree/TreeOverflow.java:53
↓ 2 callers
Method
setOverflowPointerAt
(int index, long value)
src/main/java/ds/bplus/bptree/TreeLeaf.java:59
↓ 2 callers
Method
splitTreeNode
This function is based on the similar function prototype that is given by CLRS for B-Tree but is altered (quite a bit) to be able to be used for B+ Tr
src/main/java/ds/bplus/bptree/BPlusTree.java:179
↓ 2 callers
Method
updatePageIndexCounts
Commit the page count and the max offset in the file @param conf B+ configuration reference @throws IOException is thrown when an I/O operation fails
src/main/java/ds/bplus/bptree/BPlusTree.java:2297
↓ 2 callers
Method
validateNodeCapacityLimits
Function that validates the node capacity invariants based on the current configuration instance. @param conf configuration instance for validating t
src/main/java/ds/bplus/bptree/TreeNode.java:125
↓ 1 callers
Method
binSearchRec
Binary search implementation for tree blocks. @param n node to search @param l left (lower-part) array index @param r right (upper-part) arr
src/main/java/ds/bplus/bptree/BPlusTree.java:376
↓ 1 callers
Method
checkDegreeValidity
Little function that checks if we have any degree < 2 (which is not allowed)
src/main/java/ds/bplus/bptree/BPlusConfiguration.java:131
↓ 1 callers
Method
conditionFileLength
This function adjust the file length by purging the high index pages that are used. Low index pages are purged last by design. @throws IOException is
src/main/java/ds/bplus/bptree/BPlusTree.java:1936
↓ 1 callers
Method
conditionString
Condition the given string to match the entry size. -- in case of length being greater than entry size, it is trimmed -- in case of length being le
src/main/java/ds/bplus/bptree/BPlusTree.java:2431
↓ 1 callers
Method
createOverflowLookupPage
(long index, long nextPointer)
src/main/java/ds/bplus/bptree/BPlusTree.java:1953
↓ 1 callers
Method
createTree
Function that initially creates the tree. Here we always create a Leaf that acts as our Root, until we split it. @return the initial (leaf) tree root.
src/main/java/ds/bplus/bptree/BPlusTree.java:1760
↓ 1 callers
Method
deleteKey
Function to delete a key from our tree... this function is again adopted from CLRS delete method but this was basically written from scratch and is lo
src/main/java/ds/bplus/bptree/BPlusTree.java:748
↓ 1 callers
Method
getConditionThreshold
()
src/main/java/ds/bplus/bptree/BPlusConfiguration.java:189
↓ 1 callers
Method
getKeySize
()
src/main/java/ds/bplus/bptree/BPlusConfiguration.java:174
↓ 1 callers
Method
getLookupPageSize
()
src/main/java/ds/bplus/bptree/BPlusConfiguration.java:183
↓ 1 callers
Method
getNextPointer
Get the next pointer of the node @return the next pointer value
src/main/java/ds/bplus/bptree/TreeLookupOverflowNode.java:68
↓ 1 callers
Method
getPageCountOffset
()
src/main/java/ds/bplus/bptree/BPlusConfiguration.java:198
↓ 1 callers
Method
getPageType
Map the short value to an actual node type enumeration value. This paradoxically is the opposite of that we do in the similarly named function in each
src/main/java/ds/bplus/bptree/BPlusTree.java:1782
↓ 1 callers
Method
getPrevPagePointer
()
src/main/java/ds/bplus/bptree/TreeOverflow.java:56
↓ 1 callers
Method
getValues
()
src/main/java/ds/bplus/bptree/DeleteResult.java:50
↓ 1 callers
Method
getValues
()
src/main/java/ds/bplus/bptree/SearchResult.java:63
↓ 1 callers
Method
handleChoices
Handle the selected user option @param choice the user choice @param sin the input class @param bPerf performance class ties to a B+ Tree instance @t
src/main/java/ds/bplus/util/TestRunner.java:81
↓ 1 callers
Method
handleInternalNodeRedistributionOrMerging
Handle the internal node redistribution/merging @param mnode node to process @param parent the parent node @param parentPointerIndex parent pointer i
src/main/java/ds/bplus/bptree/BPlusTree.java:1668
↓ 1 callers
Method
handleLeafNodeRedistributionOrMerging
Handle the leaf section of the redistribution/merging @param mnode node to process @param parent the parent node @param parentPointerIndex parent poi
src/main/java/ds/bplus/bptree/BPlusTree.java:1542
↓ 1 callers
Method
handleRootRedistributionOrMerging
Handle the root node cases (leaf and internal node) @param mnode root node @return the root node @throws IOException is thrown when an I/O operation
src/main/java/ds/bplus/bptree/BPlusTree.java:1405
↓ 1 callers
Method
incrementIntermittentInternalNodeReads
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:413
↓ 1 callers
Method
incrementIntermittentInternalNodeWrites
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:434
↓ 1 callers
Method
incrementIntermittentLeafNodeReads
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:420
↓ 1 callers
Method
incrementIntermittentLeafNodeWrites
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:441
↓ 1 callers
Method
incrementIntermittentOverflowPageReads
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:427
↓ 1 callers
Method
incrementIntermittentOverflowPageWrites
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:448
↓ 1 callers
Method
incrementInternalNodeSplits
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:173
↓ 1 callers
Method
incrementTotalInsertions
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:115
↓ 1 callers
Method
incrementTotalInternalNodeReads
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:456
↓ 1 callers
Method
incrementTotalInternalNodeWrites
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:480
↓ 1 callers
Method
incrementTotalInternalNodes
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:89
↓ 1 callers
Method
incrementTotalLeafNodeReads
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:464
↓ 1 callers
Method
incrementTotalLeafNodeWrites
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:488
↓ 1 callers
Method
incrementTotalLeafSplits
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:180
↓ 1 callers
Method
incrementTotalOverflowNodeWrites
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:496
↓ 1 callers
Method
incrementTotalOverflowPages
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:82
↓ 1 callers
Method
incrementTotalOverflowReads
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:472
↓ 1 callers
Method
incrementTotalRangeQueries
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:154
↓ 1 callers
Method
incrementTotalSearches
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:148
↓ 1 callers
Method
isOverflowPage
Check if the node is an overflow page @param nt nodeType of the node we want to check @return return true if it's an overflow page, false if it's not
src/main/java/ds/bplus/bptree/BPlusTree.java:2065
↓ 1 callers
Method
isTimeForConditioning
Check if we have to condition the file @return if it's time for conditioning
src/main/java/ds/bplus/bptree/BPlusTree.java:2396
↓ 1 callers
Method
loadListFromFile
Load linked list object from file (used for testing certain key-sequences) @param filename file to load the object from @return the object itself. @t
src/main/java/ds/bplus/util/Utilities.java:144
↓ 1 callers
Method
menuChoice
Display menu choices and grab the user selection @param sin input class @return a valid user option selection
src/main/java/ds/bplus/util/TestRunner.java:37
↓ 1 callers
Method
mergeOrRedistributeTreeNodes
This function handles the merging or redistribution of the nodes depending on their capacity; usually we just redistribute, if not we merge. @param m
src/main/java/ds/bplus/bptree/BPlusTree.java:1362
↓ 1 callers
Method
printConfiguration
()
src/main/java/ds/bplus/bptree/BPlusConfiguration.java:206
↓ 1 callers
Method
printCurrentConfiguration
Prints the current configuration to stdout.
src/main/java/ds/bplus/bptree/BPlusTree.java:2324
↓ 1 callers
Method
printNode
Each class must implement it's own printing method.
src/main/java/ds/bplus/bptree/TreeNode.java:450
↓ 1 callers
Method
pushToPointerArray
(long val)
src/main/java/ds/bplus/bptree/TreeInternalNode.java:53
↓ 1 callers
Method
rangeSearch
Handle range search queries with a bit of twist on how we handle duplicate keys. We have two basic cases depending duplicate keys, which is basicall
src/main/java/ds/bplus/bptree/BPlusTree.java:574
↓ 1 callers
Method
readFileHeader
Reads an existing file and generates a B+ configuration based on the stored values @param r file to read from @param generateConf generate configurat
src/main/java/ds/bplus/bptree/BPlusTree.java:2089
↓ 1 callers
Method
removeEntryAt
(int index, BPlusConfiguration conf)
src/main/java/ds/bplus/bptree/TreeLeaf.java:96
↓ 1 callers
Method
removeLastPointer
()
src/main/java/ds/bplus/bptree/TreeInternalNode.java:38
↓ 1 callers
Method
resetAllMetrics
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:549
↓ 1 callers
Method
runBench
Run the test interface @param bPerf performance class tied to a B+ Tree instance @throws IOException is thrown when an I/O operation fails
src/main/java/ds/bplus/util/TestRunner.java:21
↓ 1 callers
Method
runDefaultTrialsFast
Silently just run the default trials using the default values @param bPerf performance class tied to a B+ Tree instance @throws IOException is thrown
src/main/java/ds/bplus/util/TestRunner.java:58
↓ 1 callers
Method
runDeletion
Run deletion @param sin input class @param bPerf performance class tied to a B+ Tree instance @throws IOException is thrown when an I/O operation fai
src/main/java/ds/bplus/util/TestRunner.java:171
↓ 1 callers
Method
runDeletionTrials
Run a deletion trial @param trials number of trials to run @param rmin the min key value @param rmax the max key value @param unique delete the first
src/main/java/ds/bplus/util/TrialsClass.java:137
↓ 1 callers
Method
runInsertTrial
Run a insertion trial @param trials the number of trials to run @param rmin the min key value @param rmax the max key value @param value value to tie
src/main/java/ds/bplus/util/TrialsClass.java:64
↓ 1 callers
Method
runInsertion
Run insertion @param sin input class @param bPerf performance class tied to a B+ Tree instance @throws IOException is thrown when an I/O operation fa
src/main/java/ds/bplus/util/TestRunner.java:149
↓ 1 callers
Method
runRangeQuery
Run a range query instance @param sin input class @param bPerf performance class tied to a B+ Tree instance @throws IOException is thrown when an I/O
src/main/java/ds/bplus/util/TestRunner.java:213
↓ 1 callers
Method
runRangeQueryTrial
Run a range query trial @param trials the number of trials to run @param rmin the min key value @param rmax the max key value @param range value to t
src/main/java/ds/bplus/util/TrialsClass.java:102
← previous
next →
101–200 of 271, ranked by callers