Skip to main content

Class: abstract BaseObjectNodeMapping

Extended by

Constructors

new BaseObjectNodeMapping()

new BaseObjectNodeMapping(): BaseObjectNodeMapping

Returns

BaseObjectNodeMapping

Methods

_addObj()

abstract _addObj(obj): void

Parameters

obj: any

Returns

void

Defined in

packages/llamaindex/src/objects/base.ts:29


_fromNode()

abstract _fromNode(node): any

Parameters

node: BaseNode<Metadata>

Returns

any

Defined in

packages/llamaindex/src/objects/base.ts:37


addObj()

addObj(obj): void

Parameters

obj: any

Returns

void

Defined in

packages/llamaindex/src/objects/base.ts:23


fromNode()

fromNode(node): any

Parameters

node: BaseNode<Metadata>

Returns

any

Defined in

packages/llamaindex/src/objects/base.ts:40


fromObjects()

abstract fromObjects<OT>(objs, ...args): BaseObjectNodeMapping

Type Parameters

OT

Parameters

objs: OT[]

• ...args: any[]

Returns

BaseObjectNodeMapping

Defined in

packages/llamaindex/src/objects/base.ts:13


objNodeMapping()

abstract objNodeMapping(): Record<any, any>

Returns

Record<any, any>

Defined in

packages/llamaindex/src/objects/base.ts:16


persist()

abstract persist(persistDir, objNodeMappingFilename): void

Parameters

persistDir: string

objNodeMappingFilename: string

Returns

void

Defined in

packages/llamaindex/src/objects/base.ts:47


toNode()

abstract toNode(obj): TextNode<Metadata>

Parameters

obj: any

Returns

TextNode<Metadata>

Defined in

packages/llamaindex/src/objects/base.ts:17


toNodes()

toNodes(objs): TextNode<Metadata>[]

Parameters

objs: any[]

Returns

TextNode<Metadata>[]

Defined in

packages/llamaindex/src/objects/base.ts:32


validateObject()

validateObject(obj): void

Parameters

obj: any

Returns

void

Defined in

packages/llamaindex/src/objects/base.ts:20