@proto-kit/indexer • Docs
Documentation / @proto-kit/indexer / IndexBatchTask
Class: IndexBatchTask
Used by various module sub-types that may need to be configured
Extends
Implements
Constructors
new IndexBatchTask()
new IndexBatchTask(
batchStorage):IndexBatchTask
Parameters
• batchStorage: BatchStorage
Returns
Overrides
Defined in
indexer/src/tasks/IndexBatchTask.ts:20
Properties
batchStorage
batchStorage:
BatchStorage
Defined in
indexer/src/tasks/IndexBatchTask.ts:22
currentConfig
protectedcurrentConfig:undefined|NoConfig
Store the config separately, so that we can apply additional checks when retrieving it via the getter
Inherited from
TaskWorkerModule.currentConfig
Defined in
common/dist/config/ConfigurableModule.d.ts:17
name
name:
string="index-batch"
Implementation of
Defined in
indexer/src/tasks/IndexBatchTask.ts:18
Accessors
config
Get Signature
get config():
Config
Returns
Config
Set Signature
set config(
config):void
Parameters
• config: Config
Returns
void
Inherited from
Defined in
common/dist/config/ConfigurableModule.d.ts:18
Methods
compute()
compute(
input):Promise<string|void>
Parameters
• input: Batch
Returns
Promise<string | void>
Implementation of
Defined in
indexer/src/tasks/IndexBatchTask.ts:30
create()
create(
childContainerProvider):void
Parameters
• childContainerProvider: ChildContainerProvider
Returns
void
Inherited from
Defined in
common/dist/config/ConfigurableModule.d.ts:20
inputSerializer()
inputSerializer():
TaskSerializer<Batch>
Returns
Implementation of
Defined in
indexer/src/tasks/IndexBatchTask.ts:42
prepare()
prepare():
Promise<void>
Returns
Promise<void>
Implementation of
Defined in
indexer/src/tasks/IndexBatchTask.ts:28
resultSerializer()
resultSerializer():
TaskSerializer<string|void>
Returns
TaskSerializer<string | void>