Skip to main content

LookupTreeNode

This class represents a node in a hierarchical lookup tree used for resolving field paths. It stores field information associated with specific keys and maintains mappings for nested lookups by both string names and integer indices.

Attributes

AttributeTypeDescription
fieldsSmallVec< [LookupFieldInfo; 1] >Collection of field information entries that exactly match the current lookup key, typically containing a single entry.
mapAHashMap< PathItemString, LookupTreeNode >A hash map used for nested lookups by string names, facilitating path-based navigation like ['foo', 'bar'].
listAHashMap< i64, LookupTreeNode >A hash map used for nested lookups by integer indices, facilitating path-based navigation like ['foo', 0].

Constructor

Signature

def LookupTreeNode()

Methods


fields()

def fields() - > SmallVec< [LookupFieldInfo; 1] >

Contains all field information entries that exactly match the current lookup key path.

Returns

TypeDescription
SmallVec< [LookupFieldInfo; 1] >A small vector containing the field metadata associated with this specific node in the lookup tree.

map()

def map() - > AHashMap< PathItemString, LookupTreeNode >

Stores nested lookup nodes indexed by string keys for traversing named object properties.

Returns

TypeDescription
AHashMap< PathItemString, LookupTreeNode >A hash map mapping property names to their corresponding child lookup nodes.

list()

def list() - > AHashMap< i64, LookupTreeNode >

Stores nested lookup nodes indexed by integer keys for traversing array or list elements.

Returns

TypeDescription
AHashMap< i64, LookupTreeNode >A hash map mapping integer indices to their corresponding child lookup nodes.