Class: KeywordTable
The underlying structure of each index.
Hierarchy
-
↳
KeywordTable
Constructors
constructor
• new KeywordTable(indexId?
, summary?
)
Parameters
Name | Type | Default value |
---|---|---|
indexId | string | undefined |
summary | undefined | undefined |
Inherited from
Defined in
packages/core/src/indices/BaseIndex.ts:19
Properties
indexId
• indexId: string
Inherited from
Defined in
packages/core/src/indices/BaseIndex.ts:16
summary
• Optional
summary: string
Inherited from
Defined in
packages/core/src/indices/BaseIndex.ts:17
table
• table: Map
<string
, Set
<string
>>
Defined in
packages/core/src/indices/BaseIndex.ts:112
type
• type: IndexStructType
= IndexStructType.KEYWORD_TABLE
Defined in
packages/core/src/indices/BaseIndex.ts:113
Methods
addNode
▸ addNode(keywords
, nodeId
): void
Parameters
Name | Type |
---|---|
keywords | string [] |
nodeId | string |
Returns
void
Defined in
packages/core/src/indices/BaseIndex.ts:114
deleteNode
▸ deleteNode(keywords
, nodeId
): void
Parameters
Name | Type |
---|---|
keywords | string [] |
nodeId | string |
Returns
void
Defined in
packages/core/src/indices/BaseIndex.ts:123
getSummary
▸ getSummary(): string
Returns
string
Inherited from
Defined in
packages/core/src/indices/BaseIndex.ts:31
toJson
▸ toJson(): Record
<string
, unknown
>
Returns
Record
<string
, unknown
>