Class: IndexDict
The underlying structure of each index.
Hierarchy
↳
IndexDict
Constructors
constructor
• new IndexDict(indexId?
, summary?
)
Parameters
Name | Type | Default value |
---|---|---|
indexId | string | undefined |
summary | undefined | undefined |
Inherited from
Defined in
Properties
indexId
• indexId: string
Inherited from
Defined in
nodesDict
• nodesDict: Record
<string
, BaseNode
> = {}
Defined in
summary
• Optional
summary: string
Inherited from
Defined in
type
• type: IndexStructType
= IndexStructType.SIMPLE_DICT
Defined in
Methods
addNode
▸ addNode(node
, textId?
): void
Parameters
Name | Type |
---|---|
node | BaseNode |
textId? | string |
Returns
void
Defined in
delete
▸ delete(nodeId
): void
Parameters
Name | Type |
---|---|
nodeId | string |
Returns
void
Defined in
getSummary
▸ getSummary(): string
Returns
string
Overrides
Defined in
toJson
▸ toJson(): Record
<string
, unknown
>
Returns
Record
<string
, unknown
>