본문으로 건너뛰기

Class: SimpleIndexStore

Hierarchy

  • KVIndexStore

    SimpleIndexStore

Constructors

constructor

new SimpleIndexStore(kvStore?): SimpleIndexStore

Parameters

NameType
kvStore?BaseInMemoryKVStore

Returns

SimpleIndexStore

Overrides

KVIndexStore.constructor

Defined in

packages/core/src/storage/indexStore/SimpleIndexStore.ts:15

Properties

kvStore

Private kvStore: BaseInMemoryKVStore

Defined in

packages/core/src/storage/indexStore/SimpleIndexStore.ts:13

Methods

addIndexStruct

addIndexStruct(indexStruct): Promise<void>

Parameters

NameType
indexStructIndexStruct

Returns

Promise<void>

Inherited from

KVIndexStore.addIndexStruct

Defined in

packages/core/src/storage/indexStore/KVIndexStore.ts:18


deleteIndexStruct

deleteIndexStruct(key): Promise<void>

Parameters

NameType
keystring

Returns

Promise<void>

Inherited from

KVIndexStore.deleteIndexStruct

Defined in

packages/core/src/storage/indexStore/KVIndexStore.ts:24


getIndexStruct

getIndexStruct(structId?): Promise<undefined | IndexStruct>

Parameters

NameType
structId?string

Returns

Promise<undefined | IndexStruct>

Inherited from

KVIndexStore.getIndexStruct

Defined in

packages/core/src/storage/indexStore/KVIndexStore.ts:28


getIndexStructs

getIndexStructs(): Promise<IndexStruct[]>

Returns

Promise<IndexStruct[]>

Inherited from

KVIndexStore.getIndexStructs

Defined in

packages/core/src/storage/indexStore/KVIndexStore.ts:44


persist

persist(persistPath?, fs?): Promise<void>

Parameters

NameTypeDefault value
persistPathstringDEFAULT_PERSIST_DIR
fsGenericFileSystemdefaultFS

Returns

Promise<void>

Overrides

KVIndexStore.persist

Defined in

packages/core/src/storage/indexStore/SimpleIndexStore.ts:40


toDict

toDict(): Record<string, unknown>

Returns

Record<string, unknown>

Defined in

packages/core/src/storage/indexStore/SimpleIndexStore.ts:52


fromDict

fromDict(saveDict): SimpleIndexStore

Parameters

NameType
saveDictDataType

Returns

SimpleIndexStore

Defined in

packages/core/src/storage/indexStore/SimpleIndexStore.ts:47


fromPersistDir

fromPersistDir(persistDir?, fs?): Promise<SimpleIndexStore>

Parameters

NameTypeDefault value
persistDirstringDEFAULT_PERSIST_DIR
fsGenericFileSystemdefaultFS

Returns

Promise<SimpleIndexStore>

Defined in

packages/core/src/storage/indexStore/SimpleIndexStore.ts:21


fromPersistPath

fromPersistPath(persistPath, fs?): Promise<SimpleIndexStore>

Parameters

NameTypeDefault value
persistPathstringundefined
fsGenericFileSystemdefaultFS

Returns

Promise<SimpleIndexStore>

Defined in

packages/core/src/storage/indexStore/SimpleIndexStore.ts:32