import { DataEntity } from '@terascope/core-utils'; import OperationCore from './operation-core.js'; import { SliceRequest, OpConfig } from '../../interfaces/index.js'; /** * A base class for supporting "Processors" that run on a "Worker". * A "Processor" cannot be the first operation in the job configuration. * This class will likely not be used externally * since Teraslice only supports a few types varients based on this class. * * See [[OperationCore]] for more information */ export default abstract class ProcessorCore extends OperationCore { /** * A generic method called by the Teraslice framework to a give a "Processor" * the ability to handle the input and output of operation * @param input an array of DataEntities * @returns an array of DataEntities */ abstract handle(input: DataEntity[], sliceRequest?: SliceRequest): Promise; } //# sourceMappingURL=processor-core.d.ts.map