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
↓ 43 callers
Method
getCurrentCapacity
Returns the current node capacity @return the newCap variable value.
src/main/java/ds/bplus/bptree/TreeNode.java:83
↓ 41 callers
Method
getPageIndex
Return the page index @return current page index
src/main/java/ds/bplus/bptree/TreeNode.java:307
↓ 26 callers
Method
readNode
Read each tree node and return it as a generic type @param index index of the page in the file @return a TreeNode object referencing to the loaded pa
src/main/java/ds/bplus/bptree/BPlusTree.java:1964
↓ 22 callers
Method
getKeyAt
Get the specific key at position indicated by <code>index</code> @param index the position to get the key @return the key at position
src/main/java/ds/bplus/bptree/TreeNode.java:299
↓ 20 callers
Method
redistributeNodes
Function that is responsible to redistribute values among two leaf nodes while updating the referring key of the parent node (always an internal node)
src/main/java/ds/bplus/bptree/BPlusTree.java:995
↓ 17 callers
Method
writeNode
Abstract method that all classes must implement that writes each node type to a page slot. More details in each implementation. @param r an already
src/main/java/ds/bplus/bptree/TreeNode.java:441
↓ 16 callers
Method
getLeaf
()
src/main/java/ds/bplus/bptree/SearchResult.java:57
↓ 16 callers
Method
incrementCapacity
Increment the node capacity by one. @param conf configuration instance for validating the limits. @throws InvalidBTreeStateException is thrown when t
src/main/java/ds/bplus/bptree/TreeNode.java:102
↓ 12 callers
Method
decrementCapacity
Decrement the node capacity by one. @param conf configuration instance for validating the limits. @throws InvalidBTreeStateException is thrown when t
src/main/java/ds/bplus/bptree/TreeNode.java:113
↓ 12 callers
Method
getInterminentInternalPageWrites
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:239
↓ 12 callers
Method
getNextPagePointer
()
src/main/java/ds/bplus/bptree/TreeLeaf.java:83
↓ 12 callers
Method
getPointerAt
(int index)
src/main/java/ds/bplus/bptree/TreeInternalNode.java:32
↓ 11 callers
Method
getNextPagePointer
()
src/main/java/ds/bplus/bptree/TreeOverflow.java:50
↓ 11 callers
Method
searchIO
(long key, boolean unique, boolean verbose)
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:292
↓ 10 callers
Method
canRedistribute
Simple helper function to check if we can re-distribute the node values. @param with node to check the capacity @return the number of positions to ch
src/main/java/ds/bplus/bptree/BPlusTree.java:919
↓ 10 callers
Method
getOverflowPointerAt
(int index)
src/main/java/ds/bplus/bptree/TreeLeaf.java:50
↓ 10 callers
Method
getTotalTreePages
Returns the total number of pages currently in use @return return the total number of pages
src/main/java/ds/bplus/bptree/BPlusTree.java:2331
↓ 9 callers
Method
fuzzyAddToTree
Add a random sequence of numbers in the tree using unique or discrete values for the key. @param from starting range (>= 0) @param to ending range @p
src/main/java/ds/bplus/util/Utilities.java:65
↓ 9 callers
Method
getPageSize
()
src/main/java/ds/bplus/bptree/BPlusConfiguration.java:137
↓ 9 callers
Method
setBeingDeleted
Set being deleted flag @param beingDeleted value to set the flag.
src/main/java/ds/bplus/bptree/TreeNode.java:202
↓ 8 callers
Method
addToKeyArrayAt
Add key at index while shifting entries pointed by index and after by one. @param index index to shift keys and add @param key key to add in position
src/main/java/ds/bplus/bptree/TreeNode.java:334
↓ 8 callers
Method
deleteIO
(long key, boolean unique, boolean verbose)
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:251
↓ 8 callers
Method
deletePage
Delete the page @param pageIndex page index to remove @param sort sort free sort pool?
src/main/java/ds/bplus/bptree/BPlusTree.java:2379
↓ 8 callers
Method
getEntrySize
()
src/main/java/ds/bplus/bptree/BPlusConfiguration.java:140
↓ 8 callers
Method
getFirstLookupPageElements
()
src/main/java/ds/bplus/bptree/BPlusConfiguration.java:144
↓ 8 callers
Method
getInterminentInternalPageReads
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:227
↓ 8 callers
Method
getInterminentLeafPageReads
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:231
↓ 8 callers
Method
getInterminentOverflowPageReads
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:235
↓ 8 callers
Method
getInterminentOverflowPageWrites
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:247
↓ 8 callers
Method
getPageReads
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:219
↓ 8 callers
Method
getPageWrites
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:223
↓ 8 callers
Method
isLeaf
Check if the node is a leaf page @param nt nodeType of the node we want to check @return return true it's a leaf page, false if it's not
src/main/java/ds/bplus/bptree/BPlusTree.java:2074
↓ 8 callers
Method
readPositiveInt
It reads an positive integer, zero included, from standard input and returns it as value. In case of an error it returns -1 @param message The messag
src/main/java/ds/bplus/util/StandardInputRead.java:59
↓ 7 callers
Method
addLastToKeyArray
Add a key to the last place of the array @param key key to add
src/main/java/ds/bplus/bptree/TreeNode.java:350
↓ 7 callers
Method
addPointerAt
(int index, long val)
src/main/java/ds/bplus/bptree/TreeInternalNode.java:41
↓ 7 callers
Method
getMaxInternalNodeCapacity
()
src/main/java/ds/bplus/bptree/BPlusConfiguration.java:154
↓ 7 callers
Method
getMinLeafNodeCapacity
()
src/main/java/ds/bplus/bptree/BPlusConfiguration.java:168
↓ 7 callers
Method
isLeaf
Check if the node in question is a leaf (including root) @return true if the node is a leaf, false if it's not.
src/main/java/ds/bplus/bptree/TreeNode.java:228
↓ 6 callers
Method
generateFirstAvailablePageIndex
Generate the first available index for a page. @param conf B+ configuration reference @return page index
src/main/java/ds/bplus/bptree/BPlusTree.java:2275
↓ 6 callers
Method
getHeaderSize
()
src/main/java/ds/bplus/bptree/BPlusConfiguration.java:195
↓ 6 callers
Method
getNodeType
Return the node type @return the current node type
src/main/java/ds/bplus/bptree/TreeNode.java:268
↓ 6 callers
Method
getPrevPagePointer
()
src/main/java/ds/bplus/bptree/TreeLeaf.java:89
↓ 6 callers
Method
isInternalNode
Check if the node in question is an internal node (including root) @return true if the node is an internal node, false if it's not.
src/main/java/ds/bplus/bptree/TreeNode.java:249
↓ 6 callers
Method
isRoot
Check if the node in question is a tree root. @return true if it is a tree root, false if it's not.
src/main/java/ds/bplus/bptree/TreeNode.java:239
↓ 6 callers
Method
mergeNodes
Function that merges two leaves together; in this case we must have two leaves, left and right that are merged and their parent that must be an inter
src/main/java/ds/bplus/bptree/BPlusTree.java:1137
↓ 6 callers
Method
permQPR
(long x)
src/main/java/ds/bplus/util/Utilities.java:174
↓ 6 callers
Method
popKey
Pop the key at the head of the array @return key that is in the head of the array
src/main/java/ds/bplus/bptree/TreeNode.java:374
↓ 6 callers
Method
popPointer
()
src/main/java/ds/bplus/bptree/TreeInternalNode.java:35
↓ 6 callers
Method
sequentialAddToTree
Helper to add stuff to the tree @param from key to start @param to key to end @param val value to tie with the keys @param unique allow duplicates? @p
src/main/java/ds/bplus/util/Utilities.java:40
↓ 6 callers
Method
setCurrentCapacity
Set the current capacity @param newCap replace node capacity with this argument.
src/main/java/ds/bplus/bptree/TreeNode.java:92
↓ 6 callers
Method
writeNode
Overflow node write structure is as follows: -- node type -- (2 bytes) -- next pointer -- (8 bytes) -- prev pointer -- (8 bytes) -- values -- (ma
src/main/java/ds/bplus/bptree/TreeOverflow.java:75
↓ 5 callers
Method
getMaxLeafNodeCapacity
()
src/main/java/ds/bplus/bptree/BPlusConfiguration.java:157
↓ 5 callers
Method
getMinInternalNodeCapacity
()
src/main/java/ds/bplus/bptree/BPlusConfiguration.java:171
↓ 5 callers
Method
getQueryResult
Used to give us access to the actual list @return query result list reference
src/main/java/ds/bplus/bptree/RangeResult.java:29
↓ 5 callers
Method
insertKey
Insert the key into the tree while also providing the flexibility of having unique keys or not at will. @param key key to add @param value value of t
src/main/java/ds/bplus/bptree/BPlusTree.java:116
↓ 5 callers
Method
isEmpty
Check if the node is empty (and definitely needs merging) @return true if it is empty false if it's not.
src/main/java/ds/bplus/bptree/TreeNode.java:211
↓ 5 callers
Method
isInternalNode
Check if the node is an internal node @param nt nodeType of the node we want to check @return return true if it's an Internal Node, false if it's not
src/main/java/ds/bplus/bptree/BPlusTree.java:2054
↓ 5 callers
Method
isOverflow
Check if the node in question is an overflow page @return true if the node is an overflow page, false if it's not
src/main/java/ds/bplus/bptree/TreeNode.java:219
↓ 5 callers
Method
randInt
Returns a pseudo-random number between min and max, inclusive. The difference between min and max can be at most <code>Integer.MAX_VALUE - 1</code>.
src/main/java/ds/bplus/util/Utilities.java:25
↓ 5 callers
Method
writeFileHeader
Writes the file header containing all the juicy details @param conf valid configuration @throws IOException is thrown when an I/O operation fails
src/main/java/ds/bplus/bptree/BPlusTree.java:2154
↓ 5 callers
Method
writeNode
Leaf node write structure is as follows: -- node type -- (2 bytes) -- next pointer -- (8 bytes) -- prev pointer -- (8 bytes) -- key/value pairs -
src/main/java/ds/bplus/bptree/TreeLeaf.java:118
↓ 4 callers
Method
addPointerLast
(long val)
src/main/java/ds/bplus/bptree/TreeInternalNode.java:44
↓ 4 callers
Method
basicParams
Set up the basic parameters of the tree @param pageSize page size (default is 1024 bytes) @param keySize key size (default is long [8 bytes]) @par
src/main/java/ds/bplus/bptree/BPlusConfiguration.java:83
↓ 4 callers
Method
calculateDegree
calculates the degree of a node (internal/leaf) @param elementSize the node element size (in bytes) @param elementHeaderSize the node header size (in
src/main/java/ds/bplus/bptree/BPlusConfiguration.java:123
↓ 4 callers
Method
commitTree
Just commit the tree by actually closing the FD thus flushing the buffers. @throws IOException is thrown when an I/O operation fails @throws InvalidB
src/main/java/ds/bplus/bptree/BPlusTree.java:2213
↓ 4 callers
Method
getInterminentLeafPageWrites
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:243
↓ 4 callers
Method
getPageType
Get the page type that maps the enumeration to numbers that are easily stored in our file. @return the number representation of the node type @throws
src/main/java/ds/bplus/bptree/TreeNode.java:401
↓ 4 callers
Method
getValueAt
(int index)
src/main/java/ds/bplus/bptree/TreeLeaf.java:71
↓ 4 callers
Method
incrementTotalPages
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:76
↓ 4 callers
Method
initializeCommon
Handy method to initialize common variables
src/main/java/ds/bplus/bptree/BPlusTree.java:2347
↓ 4 callers
Method
initializeCommon
Common method to initialize constructor parameters @param pageSize page size (default is 1024 bytes) @param keySize key size (default is long [8 byte
src/main/java/ds/bplus/bptree/BPlusConfiguration.java:97
↓ 4 callers
Method
isFound
()
src/main/java/ds/bplus/bptree/SearchResult.java:69
↓ 4 callers
Method
isUnique
Grab from user the unique flag. @param sin console input library. @return the boolean user choice.
src/main/java/ds/bplus/util/TestRunner.java:126
↓ 4 callers
Method
openFile
Opens a file descriptor to our B+ Tree storage file; it can handle already existing files as well without recreating them unless explicitly stated. @
src/main/java/ds/bplus/bptree/BPlusTree.java:2178
↓ 4 callers
Method
removeKeyAt
Remove and pop the key at specific position @param index index that points where to remvoe the key @return removed key
src/main/java/ds/bplus/bptree/TreeNode.java:391
↓ 4 callers
Method
removePointerAt
(int index)
src/main/java/ds/bplus/bptree/TreeInternalNode.java:29
↓ 4 callers
Method
resetIntermittentPageTracking
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:215
↓ 4 callers
Method
setNodeType
Explicitly set the node type @param nodeType set the node type
src/main/java/ds/bplus/bptree/TreeNode.java:277
↓ 4 callers
Method
startPageTracking
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:199
↓ 3 callers
Method
addToValueList
(int index, String value)
src/main/java/ds/bplus/bptree/TreeLeaf.java:68
↓ 3 callers
Method
binSearchBlock
Binary search implementation for tree blocks; if not found returns the lower/upper bound position instead based on `rank`. @param n node to search @pa
src/main/java/ds/bplus/bptree/BPlusTree.java:362
↓ 3 callers
Method
calculatePageOffset
Calculate the page offset taking in account the for the lookup page at the start of the file. @param index index of the page @return the calculated f
src/main/java/ds/bplus/bptree/BPlusTree.java:1819
↓ 3 callers
Method
getFirstKey
Get first key @return return the first key value
src/main/java/ds/bplus/bptree/TreeNode.java:366
↓ 3 callers
Method
getMaxLookupPageOverflowCapacity
()
src/main/java/ds/bplus/bptree/BPlusConfiguration.java:164
↓ 3 callers
Method
getMaxOverflowNodeCapacity
()
src/main/java/ds/bplus/bptree/BPlusConfiguration.java:160
↓ 3 callers
Method
incrementPageReads
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:187
↓ 3 callers
Method
incrementPageWrites
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:193
↓ 3 callers
Method
incrementTotalDeletions
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:121
↓ 3 callers
Method
incrementTotalNodeReads
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:103
↓ 3 callers
Method
incrementTotalNodeWrites
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:109
↓ 3 callers
Method
incrementTotalSplits
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:160
↓ 3 callers
Method
isFound
()
src/main/java/ds/bplus/bptree/DeleteResult.java:56
↓ 3 callers
Method
isFull
Check if the node is full (and needs splitting) @param conf configuration to deduce which degree to use @return true is the node is full false if it'
src/main/java/ds/bplus/bptree/TreeNode.java:45
↓ 3 callers
Method
isTimeToMerge
Check if the node is underutilized and needs to be merged @param conf B+ Tree configuration reference @return true is the node needs to be merged or
src/main/java/ds/bplus/bptree/TreeNode.java:61
↓ 3 callers
Method
pushToKeyArray
Push a key to head of the array @param key key to push
src/main/java/ds/bplus/bptree/TreeNode.java:342
↓ 3 callers
Method
pushToValueList
(String value)
src/main/java/ds/bplus/bptree/TreeOverflow.java:38
↓ 3 callers
Method
removeLastKey
Remove and pop the last key of the array @return key that is in the last place of the array
src/main/java/ds/bplus/bptree/TreeNode.java:382
↓ 3 callers
Method
searchKey
Search inside the B+ Tree data structure for the requested key; based on the unique flag we have two choices which are the following: unique flag tr
src/main/java/ds/bplus/bptree/BPlusTree.java:664
↓ 3 callers
Method
setDefaults
()
src/main/java/ds/bplus/bptree/BPlusTreePerformanceCounter.java:203
↓ 3 callers
Method
setKeyArrayAt
Set the key in the array at specific position @param index index to set the key @param key key to set in position
src/main/java/ds/bplus/bptree/TreeNode.java:324
next →
1–100 of 271, ranked by callers