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:15
Properties
kvStore
private
kvStore:BaseInMemoryKVStore
Source
packages/core/src/storage/indexStore/SimpleIndexStore.ts:13
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
,fs
):Promise
<void
>
Parameters
• persistPath: string
= DEFAULT_PERSIST_DIR
• fs: GenericFileSystem
= defaultFS
Returns
Promise
<void
>
Overrides
KVIndexStore.persist
Source
packages/core/src/storage/indexStore/SimpleIndexStore.ts:40
toDict()
toDict():
Record
<string
,unknown
>
Returns
Record
<string
, unknown
>
Source
packages/core/src/storage/indexStore/SimpleIndexStore.ts:52
fromDict()
static
fromDict(saveDict
):SimpleIndexStore
Parameters
• saveDict: DataType
Returns
Source
packages/core/src/storage/indexStore/SimpleIndexStore.ts:47
fromPersistDir()
static
fromPersistDir(persistDir
,fs
):Promise
<SimpleIndexStore
>
Parameters
• persistDir: string
= DEFAULT_PERSIST_DIR
• fs: GenericFileSystem
= defaultFS
Returns
Promise
<SimpleIndexStore
>
Source
packages/core/src/storage/indexStore/SimpleIndexStore.ts:21
fromPersistPath()
static
fromPersistPath(persistPath
,fs
):Promise
<SimpleIndexStore
>
Parameters
• persistPath: string
• fs: GenericFileSystem
= defaultFS
Returns
Promise
<SimpleIndexStore
>