Class: SimpleIndexStore
Extends
KVIndexStore
Constructors
new SimpleIndexStore()
new SimpleIndexStore(
kvStore
?):SimpleIndexStore
Parameters
• kvStore?: BaseInMemoryKVStore
Returns
Overrides
KVIndexStore.constructor
Source
packages/core/src/storage/indexStore/SimpleIndexStore.ts:14
Properties
kvStore
private
kvStore:BaseInMemoryKVStore
Source
packages/core/src/storage/indexStore/SimpleIndexStore.ts:12
Methods
addIndexStruct()
addIndexStruct(
indexStruct
):Promise
<void
>
Parameters
• indexStruct: IndexStruct
Returns
Promise
<void
>
Inherited from
KVIndexStore.addIndexStruct
Source
packages/core/src/storage/indexStore/KVIndexStore.ts:18
deleteIndexStruct()
deleteIndexStruct(
key
):Promise
<void
>
Parameters
• key: string
Returns
Promise
<void
>
Inherited from
KVIndexStore.deleteIndexStruct
Source
packages/core/src/storage/indexStore/KVIndexStore.ts:24
getIndexStruct()
getIndexStruct(
structId
?):Promise
<undefined
|IndexStruct
>
Parameters
• structId?: string
Returns
Promise
<undefined
| IndexStruct
>
Inherited from
KVIndexStore.getIndexStruct
Source
packages/core/src/storage/indexStore/KVIndexStore.ts:28
getIndexStructs()
getIndexStructs():
Promise
<IndexStruct
[]>
Returns
Promise
<IndexStruct
[]>
Inherited from
KVIndexStore.getIndexStructs
Source
packages/core/src/storage/indexStore/KVIndexStore.ts:44
persist()
persist(
persistPath
):Promise
<void
>
Parameters
• persistPath: string
= DEFAULT_PERSIST_DIR
Returns
Promise
<void
>
Overrides
KVIndexStore.persist
Source
packages/core/src/storage/indexStore/SimpleIndexStore.ts:35
toDict()
toDict():
Record
<string
,unknown
>
Returns
Record
<string
, unknown
>
Source
packages/core/src/storage/indexStore/SimpleIndexStore.ts:44
fromDict()
static
fromDict(saveDict
):SimpleIndexStore