|
| static NodeHandle< BaseNode > | New (ART &art, Node &node) |
| | Get a new BaseNode handle and initialize the base node.
|
| static void | ReplaceChild (BaseNode &n, const uint8_t byte, const Node child) |
| | Replace the child at byte.
|
| static unsafe_optional_ptr< Node > | GetChild (BaseNode &n, const uint8_t byte, const bool unsafe=false) |
| | Get the child at byte.
|
| static unsafe_optional_ptr< Node > | GetNextChild (BaseNode &n, uint8_t &byte) |
| | Get the first child greater than or equal to the byte.
|
| template<class F> |
| static void | Iterator (BaseNode< CAPACITY, TYPE > &n, F &&lambda) |
|
|
class | Node4 |
|
class | Node16 |
|
class | Node48 |
◆ New()
template<
uint8_t CAPACITY, NType TYPE>
Get a new BaseNode handle and initialize the base node.
57961 {
57964
57967
57968
57970
57974 }
57975
57977 }
Definition duckdb.cpp:57944
IndexPointer New()
Get a new IndexPointer to a segment, might cause a new buffer allocation.
Definition duckdb.cpp:156189
void Clear()
Resets the IndexPointer.
Definition duckdb.hpp:22560
static FixedSizeAllocator & GetAllocator(const ART &art, const NType type)
Get a reference to the allocator.
Definition duckdb.cpp:154663
◆ ReplaceChild()
template<
uint8_t CAPACITY, NType TYPE>
Replace the child at byte.
57980 {
57983 if (
n.key[
i] ==
byte) {
57986
57989 }
57990 return;
57991 }
57992 }
57993 }
GateStatus GetGateStatus() const
Returns the gate status of a node.
Definition duckdb.cpp:12046
void SetGateStatus(const GateStatus status)
Sets the gate status of a node.
Definition duckdb.cpp:12050
◆ GetChild()
template<
uint8_t CAPACITY, NType TYPE>
Get the child at byte.
57996 {
57998 if (
n.key[
i] ==
byte) {
58000 throw InternalException(
"empty child i = %d for byte %d in BaseNode::GetChild",
i,
byte);
58001 }
58002 return &
n.children[
i];
58003 }
58004 }
58005 return nullptr;
58006 }
bool HasMetadata() const
Returns false, if the metadata is empty.
Definition duckdb.hpp:22536
◆ GetNextChild()
template<
uint8_t CAPACITY, NType TYPE>
Get the first child greater than or equal to the byte.
58009 {
58011 if (
n.key[
i] >=
byte) {
58013 return &
n.children[
i];
58014 }
58015 }
58016 return nullptr;
58017 }
◆ ExtractChildren()
template<
uint8_t CAPACITY, NType TYPE>
Extracts the bytes and their respective children. The return value is valid as long as the arena is valid. The node must be freed after calling into this function.
58022 {
58027
58031 }
58032
58034 }
◆ Iterator()
template<
uint8_t CAPACITY, NType TYPE>
template<class F>
◆ InsertChildInternal()
template<
uint8_t CAPACITY, NType TYPE>
153634 {
153635
153639 }
153640
153641
153643 n.key[
i] =
n.key[
i - 1];
153644 n.children[
i] =
n.children[
i - 1];
153645 }
153646
153650}
◆ DeleteChildInternal()
template<
uint8_t CAPACITY, NType TYPE>
153654 {
153657
153661 break;
153662 }
153663 }
153664
153665
153668
153669
153671 n.key[
i] =
n.key[
i + 1];
153672 n.children[
i] =
n.children[
i + 1];
153673 }
153674
153676}
static void FreeTree(ART &art, Node &node)
Free the node and its children.
Definition duckdb.cpp:154628
The documentation for this class was generated from the following file: