Skip to main content

LookupPath

This class represents a structured path used for lookups, requiring an initial string key followed by an optional sequence of additional path items. It provides a mechanism to encode and manage hierarchical identifiers where the root must be a string-based key.

Attributes

AttributeTypeDescription
first_item[PathItemString](pathitemstring.md?sid=lookup_key_pathitemstring)The initial string key that serves as the mandatory starting point for all lookup paths.
restVec< PathItem >A collection of additional path items used to resolve nested or complex lookups beyond the initial key.

Constructor

Signature

def LookupPath(
first_item: [PathItemString](pathitemstring.md?sid=lookup_key_pathitemstring),
rest: Vec< PathItem >
) - > null

Parameters

NameTypeDescription
first_item[PathItemString](pathitemstring.md?sid=lookup_key_pathitemstring)The initial string key that all paths must start with.
restVec< PathItem >A vector containing any additional items in the lookup path.

Methods


first_item()

def first_item() - > [PathItemString](pathitemstring.md?sid=lookup_key_pathitemstring)

Returns the initial string key that all lookup paths must start with.

Returns

TypeDescription
[PathItemString](pathitemstring.md?sid=lookup_key_pathitemstring)The mandatory first segment of the path represented as a string key

rest()

def rest() - > Vec< PathItem >

Provides the remaining segments of the lookup path following the initial key.

Returns

TypeDescription
Vec< PathItem >A collection of additional path items that constitute the full lookup sequence