Skip to main content

Class: IndexDict

The underlying structure of each index.

Hierarchy

Constructors

constructor

new IndexDict(indexId?, summary?)

Parameters

NameTypeDefault value
indexIdstringundefined
summaryundefinedundefined

Inherited from

IndexStruct.constructor

Defined in

indices/BaseIndex.ts:19

Properties

indexId

indexId: string

Inherited from

IndexStruct.indexId

Defined in

indices/BaseIndex.ts:16


nodesDict

nodesDict: Record<string, BaseNode> = {}

Defined in

indices/BaseIndex.ts:45


summary

Optional summary: string

Inherited from

IndexStruct.summary

Defined in

indices/BaseIndex.ts:17


type

type: IndexStructType = IndexStructType.SIMPLE_DICT

Defined in

indices/BaseIndex.ts:46

Methods

addNode

addNode(node, textId?): void

Parameters

NameType
nodeBaseNode
textId?string

Returns

void

Defined in

indices/BaseIndex.ts:55


delete

delete(nodeId): void

Parameters

NameType
nodeIdstring

Returns

void

Defined in

indices/BaseIndex.ts:68


getSummary

getSummary(): string

Returns

string

Overrides

IndexStruct.getSummary

Defined in

indices/BaseIndex.ts:48


toJson

toJson(): Record<string, unknown>

Returns

Record<string, unknown>

Overrides

IndexStruct.toJson

Defined in

indices/BaseIndex.ts:60