Class: SimpleIndexStore
Extends
Constructors
new SimpleIndexStore()
new SimpleIndexStore(
kvStore
?):SimpleIndexStore
Parameters
• kvStore?: BaseInMemoryKVStore
Returns
Overrides
Defined in
packages/core/storage/index-store/dist/index.d.ts:23
Methods
addIndexStruct()
addIndexStruct(
indexStruct
):Promise
<void
>
Parameters
• indexStruct: IndexStruct
Returns
Promise
<void
>
Inherited from
Defined in
packages/core/storage/index-store/dist/index.d.ts:16
deleteIndexStruct()
deleteIndexStruct(
key
):Promise
<void
>
Parameters
• key: string
Returns
Promise
<void
>
Inherited from
KVIndexStore
.deleteIndexStruct
Defined in
packages/core/storage/index-store/dist/index.d.ts:17
getIndexStruct()
getIndexStruct(
structId
?):Promise
<undefined
|IndexStruct
>
Parameters
• structId?: string
Returns
Promise
<undefined
| IndexStruct
>
Inherited from
Defined in
packages/core/storage/index-store/dist/index.d.ts:18
getIndexStructs()
getIndexStructs():
Promise
<IndexStruct
[]>
Returns
Promise
<IndexStruct
[]>
Inherited from
Defined in
packages/core/storage/index-store/dist/index.d.ts:19
persist()
persist(
persistPath
?):Promise
<void
>
Parameters
• persistPath?: string
Returns
Promise
<void
>
Overrides
Defined in
packages/core/storage/index-store/dist/index.d.ts:26
toDict()
toDict():
Record
<string
,unknown
>
Returns
Record
<string
, unknown
>
Defined in
packages/core/storage/index-store/dist/index.d.ts:28
fromDict()
static
fromDict(saveDict
):SimpleIndexStore
Parameters
• saveDict: DataType
Returns
Defined in
packages/core/storage/index-store/dist/index.d.ts:27
fromPersistDir()
static
fromPersistDir(persistDir
?):Promise
<SimpleIndexStore
>
Parameters
• persistDir?: string
Returns
Promise
<SimpleIndexStore
>
Defined in
packages/core/storage/index-store/dist/index.d.ts:24
fromPersistPath()
static
fromPersistPath(persistPath
):Promise
<SimpleIndexStore
>
Parameters
• persistPath: string
Returns
Promise
<SimpleIndexStore
>
Defined in
packages/core/storage/index-store/dist/index.d.ts:25