# Functions
DescriptorToPathNode converts a thrift type descriptor to a DOM, assgining path to root NOTICE: it only recursively converts STRUCT type.
FreePathNode put a PathNode back to memory pool.
GetDescByPath searches longitudinally and returns the sub descriptor of the desc specified by path.
NewNodeBool create a new node with given type and data WARN: it WON'T check the correctness of the data.
NewNodeAny convert a go premitive type to Node.
NewNodeBinary converts a []byte value to a STRING node.
NewNodeBool converts a bool value to a BOOL node.
NewNodeInt8 converts a byte value to a BYTE node.
NewNodeDouble converts a float64 value to a DOUBLE node.
NewNodeInt16 converts a int16 value to a I16 node.
NewNodeInt32 converts a int32 value to a I32 node.
NewNodeInt64 converts a int64 value to a I64 node.
NewNodeList creates a LIST node.
NewNodeMap creates a MAP node.
NewNodeSet creates a SET node.
NewNodeString converts a string value to a STRING node.
NewNodeStruct creates a STRUCT node.
NewPathBinKey creates a PathBinKey path.
NewPathFieldId creates a PathFieldId path.
NewPathFieldName creates a PathFieldName path.
NewPathIndex creates a PathIndex path.
NewPathIntKey creates a PathIntKey path.
NewPathNode get a new PathNode from memory pool.
NewPathStrKey creates a PathStrKey path.
NewTypedNode creates a new Node with the given typ, including element type (for LIST/SET/MAP) and key type (for MAP), and its children nodes.
NewValue creates a new Value from a raw byte slice.
PathNodeToInterface convert a pathnode to a interface.
# Constants
Path represents a raw-bytes key of MAP type It is usually used for neither-string-nor-integer type key.
PathFieldId represents a field id of STRUCT type.
PathFieldName represents a field name of STRUCT type NOTICE: it is only supported by Value.
PathIndex represents a index of LIST\SET type.
Path represents a int key of MAP type.
Path represents a string key of MAP type.
# Variables
DefaultNodeBufferSize indicates every element buffer size for one complex-type Node, including `NewNodeList()\NewNodeSet()\NewNodeMap()\NewNodeStruct()\NewNodeAny()`.
DefaultNodeSliceCap is the default capacity of a Node or NodePath slice Usually, a Node or NodePath slice is used to store intermediate or consequential elements of a generic API like Children()|Interface()|SetMany().
StoreChildrenByIdShreshold is the maximum id to store children node by id.
StoreChildrenByIdShreshold is the minimum id to store children node by hash.
UseNativeSkipForGet indicates to use native.Skip (instead of go.Skip) method to skip thrift value This only works for single-value searching API like GetByInt()/GetByRaw()/GetByStr()/Field()/Index()/GetByPath() methods.
# Type aliases
PathType is the type of path.