Class: IndexDict
The underlying structure of each index.
Hierarchy
-
↳
IndexDict
Constructors
constructor
• new IndexDict(indexId?
, summary?
): IndexDict
Parameters
Name | Type | Default value |
---|---|---|
indexId | `${string}-${string}-${string}-${string}-${string}` | undefined |
summary | undefined | undefined |
Returns
Inherited from
Defined in
packages/core/src/indices/IndexStruct.ts:10
Properties
indexId
• indexId: string
Inherited from
Defined in
packages/core/src/indices/IndexStruct.ts:7
nodesDict
• nodesDict: Record
<string
, BaseNode
<Metadata
>> = {}
Defined in
packages/core/src/indices/json-to-index-struct.ts:11
summary
• Optional
summary: string
Inherited from
Defined in
packages/core/src/indices/IndexStruct.ts:8
type
• type: IndexStructType
= IndexStructType.SIMPLE_DICT
Defined in
packages/core/src/indices/json-to-index-struct.ts:12
Methods
addNode
▸ addNode(node
, textId?
): void
Parameters
Name | Type |
---|---|
node | BaseNode <Metadata > |
textId? | string |
Returns
void
Defined in
packages/core/src/indices/json-to-index-struct.ts:21
delete
▸ delete(nodeId
): void
Parameters
Name | Type |
---|---|
nodeId | string |
Returns
void
Defined in
packages/core/src/indices/json-to-index-struct.ts:40
getSummary
▸ getSummary(): string
Returns
string
Overrides
Defined in
packages/core/src/indices/json-to-index-struct.ts:14
toJson
▸ toJson(): Record
<string
, unknown
>