@terascope/job-components 0.75.1 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/builtin/collect/interfaces.d.ts +2 -2
- package/dist/src/builtin/collect/interfaces.d.ts.map +1 -1
- package/dist/src/builtin/collect/interfaces.js +1 -2
- package/dist/src/builtin/collect/processor.d.ts +4 -4
- package/dist/src/builtin/collect/processor.d.ts.map +1 -1
- package/dist/src/builtin/collect/processor.js +5 -7
- package/dist/src/builtin/collect/processor.js.map +1 -1
- package/dist/src/builtin/collect/schema.d.ts +2 -2
- package/dist/src/builtin/collect/schema.d.ts.map +1 -1
- package/dist/src/builtin/collect/schema.js +2 -5
- package/dist/src/builtin/collect/schema.js.map +1 -1
- package/dist/src/builtin/delay/interfaces.d.ts +1 -1
- package/dist/src/builtin/delay/interfaces.d.ts.map +1 -1
- package/dist/src/builtin/delay/interfaces.js +1 -2
- package/dist/src/builtin/delay/processor.d.ts +2 -2
- package/dist/src/builtin/delay/processor.d.ts.map +1 -1
- package/dist/src/builtin/delay/processor.js +4 -7
- package/dist/src/builtin/delay/processor.js.map +1 -1
- package/dist/src/builtin/delay/schema.d.ts +2 -2
- package/dist/src/builtin/delay/schema.d.ts.map +1 -1
- package/dist/src/builtin/delay/schema.js +2 -5
- package/dist/src/builtin/delay/schema.js.map +1 -1
- package/dist/src/builtin/index.d.ts +5 -5
- package/dist/src/builtin/index.d.ts.map +1 -1
- package/dist/src/builtin/index.js +6 -16
- package/dist/src/builtin/index.js.map +1 -1
- package/dist/src/builtin/noop/processor.d.ts +1 -1
- package/dist/src/builtin/noop/processor.d.ts.map +1 -1
- package/dist/src/builtin/noop/processor.js +2 -5
- package/dist/src/builtin/noop/processor.js.map +1 -1
- package/dist/src/builtin/noop/schema.d.ts +1 -1
- package/dist/src/builtin/noop/schema.d.ts.map +1 -1
- package/dist/src/builtin/noop/schema.js +2 -5
- package/dist/src/builtin/noop/schema.js.map +1 -1
- package/dist/src/builtin/test-reader/data/fetcher-data.d.ts +1 -1
- package/dist/src/builtin/test-reader/data/fetcher-data.d.ts.map +1 -1
- package/dist/src/builtin/test-reader/data/fetcher-data.js +1 -2
- package/dist/src/builtin/test-reader/data/fetcher-data.js.map +1 -1
- package/dist/src/builtin/test-reader/data/slicer-data.d.ts +1 -1
- package/dist/src/builtin/test-reader/data/slicer-data.d.ts.map +1 -1
- package/dist/src/builtin/test-reader/data/slicer-data.js +1 -2
- package/dist/src/builtin/test-reader/data/slicer-data.js.map +1 -1
- package/dist/src/builtin/test-reader/fetcher.d.ts +3 -3
- package/dist/src/builtin/test-reader/fetcher.d.ts.map +1 -1
- package/dist/src/builtin/test-reader/fetcher.js +12 -21
- package/dist/src/builtin/test-reader/fetcher.js.map +1 -1
- package/dist/src/builtin/test-reader/interfaces.d.ts +1 -1
- package/dist/src/builtin/test-reader/interfaces.d.ts.map +1 -1
- package/dist/src/builtin/test-reader/interfaces.js +1 -2
- package/dist/src/builtin/test-reader/schema.d.ts +2 -2
- package/dist/src/builtin/test-reader/schema.d.ts.map +1 -1
- package/dist/src/builtin/test-reader/schema.js +2 -5
- package/dist/src/builtin/test-reader/schema.js.map +1 -1
- package/dist/src/builtin/test-reader/slicer.d.ts +3 -3
- package/dist/src/builtin/test-reader/slicer.d.ts.map +1 -1
- package/dist/src/builtin/test-reader/slicer.js +10 -19
- package/dist/src/builtin/test-reader/slicer.js.map +1 -1
- package/dist/src/config-validators.d.ts +1 -1
- package/dist/src/config-validators.d.ts.map +1 -1
- package/dist/src/config-validators.js +10 -19
- package/dist/src/config-validators.js.map +1 -1
- package/dist/src/execution-context/api.d.ts +4 -5
- package/dist/src/execution-context/api.d.ts.map +1 -1
- package/dist/src/execution-context/api.js +16 -16
- package/dist/src/execution-context/api.js.map +1 -1
- package/dist/src/execution-context/base.d.ts +6 -6
- package/dist/src/execution-context/base.d.ts.map +1 -1
- package/dist/src/execution-context/base.js +30 -27
- package/dist/src/execution-context/base.js.map +1 -1
- package/dist/src/execution-context/index.d.ts +9 -12
- package/dist/src/execution-context/index.d.ts.map +1 -1
- package/dist/src/execution-context/index.js +16 -44
- package/dist/src/execution-context/index.js.map +1 -1
- package/dist/src/execution-context/interfaces.d.ts +2 -2
- package/dist/src/execution-context/interfaces.d.ts.map +1 -1
- package/dist/src/execution-context/interfaces.js +1 -2
- package/dist/src/execution-context/slicer.d.ts +5 -4
- package/dist/src/execution-context/slicer.d.ts.map +1 -1
- package/dist/src/execution-context/slicer.js +20 -20
- package/dist/src/execution-context/slicer.js.map +1 -1
- package/dist/src/execution-context/utils.d.ts +1 -1
- package/dist/src/execution-context/utils.d.ts.map +1 -1
- package/dist/src/execution-context/utils.js +5 -11
- package/dist/src/execution-context/utils.js.map +1 -1
- package/dist/src/execution-context/worker.d.ts +6 -5
- package/dist/src/execution-context/worker.d.ts.map +1 -1
- package/dist/src/execution-context/worker.js +50 -68
- package/dist/src/execution-context/worker.js.map +1 -1
- package/dist/src/formats.d.ts +2 -2
- package/dist/src/formats.d.ts.map +1 -1
- package/dist/src/formats.js +21 -27
- package/dist/src/formats.js.map +1 -1
- package/dist/src/index.d.ts +12 -12
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +13 -29
- package/dist/src/index.js.map +1 -1
- package/dist/src/interfaces/context.d.ts +23 -140
- package/dist/src/interfaces/context.d.ts.map +1 -1
- package/dist/src/interfaces/context.js +1 -2
- package/dist/src/interfaces/index.d.ts +4 -5
- package/dist/src/interfaces/index.d.ts.map +1 -1
- package/dist/src/interfaces/index.js +4 -21
- package/dist/src/interfaces/index.js.map +1 -1
- package/dist/src/interfaces/misc.d.ts +3 -0
- package/dist/src/interfaces/misc.d.ts.map +1 -1
- package/dist/src/interfaces/misc.js +2 -2
- package/dist/src/interfaces/misc.js.map +1 -1
- package/dist/src/interfaces/operation-lifecycle.d.ts +4 -3
- package/dist/src/interfaces/operation-lifecycle.d.ts.map +1 -1
- package/dist/src/interfaces/operation-lifecycle.js +1 -2
- package/dist/src/interfaces/operations.d.ts +11 -64
- package/dist/src/interfaces/operations.d.ts.map +1 -1
- package/dist/src/interfaces/operations.js +1 -4
- package/dist/src/interfaces/operations.js.map +1 -1
- package/dist/src/job-schemas.d.ts +1 -1
- package/dist/src/job-schemas.d.ts.map +1 -1
- package/dist/src/job-schemas.js +32 -39
- package/dist/src/job-schemas.js.map +1 -1
- package/dist/src/job-validator.d.ts +3 -2
- package/dist/src/job-validator.d.ts.map +1 -1
- package/dist/src/job-validator.js +19 -20
- package/dist/src/job-validator.js.map +1 -1
- package/dist/src/operation-loader/index.d.ts +2 -2
- package/dist/src/operation-loader/index.d.ts.map +1 -1
- package/dist/src/operation-loader/index.js +2 -18
- package/dist/src/operation-loader/index.js.map +1 -1
- package/dist/src/operation-loader/interfaces.d.ts +1 -1
- package/dist/src/operation-loader/interfaces.d.ts.map +1 -1
- package/dist/src/operation-loader/interfaces.js +15 -18
- package/dist/src/operation-loader/interfaces.js.map +1 -1
- package/dist/src/operation-loader/loader.d.ts +7 -9
- package/dist/src/operation-loader/loader.d.ts.map +1 -1
- package/dist/src/operation-loader/loader.js +96 -137
- package/dist/src/operation-loader/loader.js.map +1 -1
- package/dist/src/operations/api-factory.d.ts +2 -2
- package/dist/src/operations/api-factory.d.ts.map +1 -1
- package/dist/src/operations/api-factory.js +4 -13
- package/dist/src/operations/api-factory.js.map +1 -1
- package/dist/src/operations/batch-processor.d.ts +2 -2
- package/dist/src/operations/batch-processor.d.ts.map +1 -1
- package/dist/src/operations/batch-processor.js +5 -11
- package/dist/src/operations/batch-processor.js.map +1 -1
- package/dist/src/operations/convict-schema.d.ts +2 -2
- package/dist/src/operations/convict-schema.d.ts.map +1 -1
- package/dist/src/operations/convict-schema.js +11 -15
- package/dist/src/operations/convict-schema.js.map +1 -1
- package/dist/src/operations/core/api-core.d.ts +4 -4
- package/dist/src/operations/core/api-core.d.ts.map +1 -1
- package/dist/src/operations/core/api-core.js +7 -10
- package/dist/src/operations/core/api-core.js.map +1 -1
- package/dist/src/operations/core/core.d.ts +2 -2
- package/dist/src/operations/core/core.d.ts.map +1 -1
- package/dist/src/operations/core/core.js +5 -4
- package/dist/src/operations/core/core.js.map +1 -1
- package/dist/src/operations/core/fetcher-core.d.ts +2 -2
- package/dist/src/operations/core/fetcher-core.d.ts.map +1 -1
- package/dist/src/operations/core/fetcher-core.js +2 -8
- package/dist/src/operations/core/fetcher-core.js.map +1 -1
- package/dist/src/operations/core/index.d.ts +6 -6
- package/dist/src/operations/core/index.d.ts.map +1 -1
- package/dist/src/operations/core/index.js +7 -18
- package/dist/src/operations/core/index.js.map +1 -1
- package/dist/src/operations/core/operation-core.d.ts +5 -5
- package/dist/src/operations/core/operation-core.d.ts.map +1 -1
- package/dist/src/operations/core/operation-core.js +8 -11
- package/dist/src/operations/core/operation-core.js.map +1 -1
- package/dist/src/operations/core/processor-core.d.ts +2 -2
- package/dist/src/operations/core/processor-core.d.ts.map +1 -1
- package/dist/src/operations/core/processor-core.js +2 -8
- package/dist/src/operations/core/processor-core.js.map +1 -1
- package/dist/src/operations/core/schema-core.d.ts +1 -1
- package/dist/src/operations/core/schema-core.d.ts.map +1 -1
- package/dist/src/operations/core/schema-core.js +3 -4
- package/dist/src/operations/core/schema-core.js.map +1 -1
- package/dist/src/operations/core/slicer-core.d.ts +4 -4
- package/dist/src/operations/core/slicer-core.d.ts.map +1 -1
- package/dist/src/operations/core/slicer-core.js +13 -14
- package/dist/src/operations/core/slicer-core.js.map +1 -1
- package/dist/src/operations/each-processor.d.ts +2 -2
- package/dist/src/operations/each-processor.d.ts.map +1 -1
- package/dist/src/operations/each-processor.js +2 -8
- package/dist/src/operations/each-processor.js.map +1 -1
- package/dist/src/operations/fetcher.d.ts +2 -2
- package/dist/src/operations/fetcher.d.ts.map +1 -1
- package/dist/src/operations/fetcher.js +4 -10
- package/dist/src/operations/fetcher.js.map +1 -1
- package/dist/src/operations/filter-processor.d.ts +2 -2
- package/dist/src/operations/filter-processor.d.ts.map +1 -1
- package/dist/src/operations/filter-processor.js +2 -8
- package/dist/src/operations/filter-processor.js.map +1 -1
- package/dist/src/operations/index.d.ts +14 -15
- package/dist/src/operations/index.d.ts.map +1 -1
- package/dist/src/operations/index.js +15 -47
- package/dist/src/operations/index.js.map +1 -1
- package/dist/src/operations/interfaces.d.ts +12 -12
- package/dist/src/operations/interfaces.d.ts.map +1 -1
- package/dist/src/operations/interfaces.js +1 -2
- package/dist/src/operations/job-observer.d.ts +3 -3
- package/dist/src/operations/job-observer.d.ts.map +1 -1
- package/dist/src/operations/job-observer.js +14 -10
- package/dist/src/operations/job-observer.js.map +1 -1
- package/dist/src/operations/map-processor.d.ts +2 -2
- package/dist/src/operations/map-processor.d.ts.map +1 -1
- package/dist/src/operations/map-processor.js +4 -10
- package/dist/src/operations/map-processor.js.map +1 -1
- package/dist/src/operations/observer.d.ts +2 -2
- package/dist/src/operations/observer.d.ts.map +1 -1
- package/dist/src/operations/observer.js +2 -8
- package/dist/src/operations/observer.js.map +1 -1
- package/dist/src/operations/operation-api.d.ts +2 -2
- package/dist/src/operations/operation-api.d.ts.map +1 -1
- package/dist/src/operations/operation-api.js +2 -8
- package/dist/src/operations/operation-api.js.map +1 -1
- package/dist/src/operations/parallel-slicer.d.ts +2 -2
- package/dist/src/operations/parallel-slicer.d.ts.map +1 -1
- package/dist/src/operations/parallel-slicer.js +7 -16
- package/dist/src/operations/parallel-slicer.js.map +1 -1
- package/dist/src/operations/slicer.d.ts +2 -2
- package/dist/src/operations/slicer.d.ts.map +1 -1
- package/dist/src/operations/slicer.js +7 -16
- package/dist/src/operations/slicer.js.map +1 -1
- package/dist/src/register-apis.d.ts +2 -3
- package/dist/src/register-apis.d.ts.map +1 -1
- package/dist/src/register-apis.js +17 -49
- package/dist/src/register-apis.js.map +1 -1
- package/dist/src/test-helpers.d.ts +11 -31
- package/dist/src/test-helpers.d.ts.map +1 -1
- package/dist/src/test-helpers.js +67 -150
- package/dist/src/test-helpers.js.map +1 -1
- package/dist/src/utils.d.ts +1 -1
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js +9 -14
- package/dist/src/utils.js.map +1 -1
- package/package.json +10 -7
- package/dist/src/interfaces/jobs.d.ts +0 -171
- package/dist/src/interfaces/jobs.d.ts.map +0 -1
- package/dist/src/interfaces/jobs.js +0 -10
- package/dist/src/interfaces/jobs.js.map +0 -1
- package/dist/src/operations/shims/index.d.ts +0 -9
- package/dist/src/operations/shims/index.d.ts.map +0 -1
- package/dist/src/operations/shims/index.js +0 -21
- package/dist/src/operations/shims/index.js.map +0 -1
- package/dist/src/operations/shims/legacy-processor-shim.d.ts +0 -5
- package/dist/src/operations/shims/legacy-processor-shim.d.ts.map +0 -1
- package/dist/src/operations/shims/legacy-processor-shim.js +0 -50
- package/dist/src/operations/shims/legacy-processor-shim.js.map +0 -1
- package/dist/src/operations/shims/legacy-reader-shim.d.ts +0 -7
- package/dist/src/operations/shims/legacy-reader-shim.d.ts.map +0 -1
- package/dist/src/operations/shims/legacy-reader-shim.js +0 -66
- package/dist/src/operations/shims/legacy-reader-shim.js.map +0 -1
- package/dist/src/operations/shims/legacy-slice-events-shim.d.ts +0 -10
- package/dist/src/operations/shims/legacy-slice-events-shim.d.ts.map +0 -1
- package/dist/src/operations/shims/legacy-slice-events-shim.js +0 -34
- package/dist/src/operations/shims/legacy-slice-events-shim.js.map +0 -1
- package/dist/src/operations/shims/operation-api-shim.d.ts +0 -7
- package/dist/src/operations/shims/operation-api-shim.d.ts.map +0 -1
- package/dist/src/operations/shims/operation-api-shim.js +0 -10
- package/dist/src/operations/shims/operation-api-shim.js.map +0 -1
- package/dist/src/operations/shims/processor-shim.d.ts +0 -4
- package/dist/src/operations/shims/processor-shim.d.ts.map +0 -1
- package/dist/src/operations/shims/processor-shim.js +0 -51
- package/dist/src/operations/shims/processor-shim.js.map +0 -1
- package/dist/src/operations/shims/reader-shim.d.ts +0 -4
- package/dist/src/operations/shims/reader-shim.d.ts.map +0 -1
- package/dist/src/operations/shims/reader-shim.js +0 -92
- package/dist/src/operations/shims/reader-shim.js.map +0 -1
- package/dist/src/operations/shims/schema-shim.d.ts +0 -4
- package/dist/src/operations/shims/schema-shim.d.ts.map +0 -1
- package/dist/src/operations/shims/schema-shim.js +0 -31
- package/dist/src/operations/shims/schema-shim.js.map +0 -1
- package/dist/src/operations/shims/shim-utils.d.ts +0 -9
- package/dist/src/operations/shims/shim-utils.d.ts.map +0 -1
- package/dist/src/operations/shims/shim-utils.js +0 -34
- package/dist/src/operations/shims/shim-utils.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetcher.d.ts","sourceRoot":"","sources":["../../../src/operations/fetcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"fetcher.d.ts","sourceRoot":"","sources":["../../../src/operations/fetcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,WAAW,MAAM,wBAAwB,CAAC;AAEjD;;GAEG;AAEH,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,OAAO,CAAC,CAAC,GAAG,QAAQ,CAAE,SAAQ,WAAW,CAAC,CAAC,CAAC;IACtE;;;MAGE;IACF,QAAQ,CAAC,KAAK,CAAC,YAAY,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,cAAc,CAAC;IAEzD,MAAM,CAAC,YAAY,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;CAG9D"}
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const utils_1 = require("@terascope/utils");
|
|
7
|
-
const fetcher_core_1 = __importDefault(require("./core/fetcher-core"));
|
|
1
|
+
import { DataEntity } from '@terascope/utils';
|
|
2
|
+
import FetcherCore from './core/fetcher-core.js';
|
|
8
3
|
/**
|
|
9
4
|
* The simpliest varient of "Fetcher"
|
|
10
5
|
*/
|
|
11
|
-
class Fetcher extends
|
|
6
|
+
export default class Fetcher extends FetcherCore {
|
|
12
7
|
async handle(sliceRequest) {
|
|
13
|
-
return
|
|
8
|
+
return DataEntity.makeArray(await this.fetch(sliceRequest));
|
|
14
9
|
}
|
|
15
10
|
}
|
|
16
|
-
exports.default = Fetcher;
|
|
17
11
|
//# sourceMappingURL=fetcher.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetcher.js","sourceRoot":"","sources":["../../../src/operations/fetcher.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetcher.js","sourceRoot":"","sources":["../../../src/operations/fetcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAkB,MAAM,kBAAkB,CAAC;AAE9D,OAAO,WAAW,MAAM,wBAAwB,CAAC;AAEjD;;GAEG;AAEH,MAAM,CAAC,OAAO,OAAgB,OAAsB,SAAQ,WAAc;IAOtE,KAAK,CAAC,MAAM,CAAC,YAAsB;QAC/B,OAAO,UAAU,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;IAChE,CAAC;CACJ"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DataEntity } from '@terascope/utils';
|
|
2
|
-
import { OpConfig } from '../interfaces';
|
|
3
|
-
import ProcessorCore from './core/processor-core';
|
|
2
|
+
import { OpConfig } from '../interfaces/index.js';
|
|
3
|
+
import ProcessorCore from './core/processor-core.js';
|
|
4
4
|
/**
|
|
5
5
|
* A variation of Processor that can process a single DataEntity at a time.
|
|
6
6
|
* This processor is used to removed data from the batch of data
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-processor.d.ts","sourceRoot":"","sources":["../../../src/operations/filter-processor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"filter-processor.d.ts","sourceRoot":"","sources":["../../../src/operations/filter-processor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,aAAa,MAAM,0BAA0B,CAAC;AAErD;;;GAGG;AACH,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,eAAe,CAAC,CAAC,GAAG,QAAQ,CAAE,SAAQ,aAAa,CAAC,CAAC,CAAC;IAChF;;;OAGG;IACH,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,OAAO;IAE9E;;;;OAIG;IACG,MAAM,CAAC,KAAK,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;CAG3D"}
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const processor_core_1 = __importDefault(require("./core/processor-core"));
|
|
1
|
+
import ProcessorCore from './core/processor-core.js';
|
|
7
2
|
/**
|
|
8
3
|
* A variation of Processor that can process a single DataEntity at a time.
|
|
9
4
|
* This processor is used to removed data from the batch of data
|
|
10
5
|
*/
|
|
11
|
-
class FilterProcessor extends
|
|
6
|
+
export default class FilterProcessor extends ProcessorCore {
|
|
12
7
|
/**
|
|
13
8
|
* A generic method called by the Teraslice framework, calls {@link #filter}
|
|
14
9
|
* @param input an array of DataEntities
|
|
@@ -18,5 +13,4 @@ class FilterProcessor extends processor_core_1.default {
|
|
|
18
13
|
return input.filter((data, index, array) => this.filter(data, index, array));
|
|
19
14
|
}
|
|
20
15
|
}
|
|
21
|
-
exports.default = FilterProcessor;
|
|
22
16
|
//# sourceMappingURL=filter-processor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-processor.js","sourceRoot":"","sources":["../../../src/operations/filter-processor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"filter-processor.js","sourceRoot":"","sources":["../../../src/operations/filter-processor.ts"],"names":[],"mappings":"AAEA,OAAO,aAAa,MAAM,0BAA0B,CAAC;AAErD;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAgB,eAA8B,SAAQ,aAAgB;IAOhF;;;;OAIG;IACH,KAAK,CAAC,MAAM,CAAC,KAAmB;QAC5B,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;IACjF,CAAC;CACJ"}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import BatchProcessor from './batch-processor';
|
|
2
|
-
import ConvictSchema from './convict-schema';
|
|
3
|
-
import EachProcessor from './each-processor';
|
|
4
|
-
import Fetcher from './fetcher';
|
|
5
|
-
import FilterProcessor from './filter-processor';
|
|
6
|
-
import JobObserver from './job-observer';
|
|
7
|
-
import MapProcessor from './map-processor';
|
|
8
|
-
import Observer from './observer';
|
|
9
|
-
import OperationAPI from './operation-api';
|
|
10
|
-
import ParallelSlicer from './parallel-slicer';
|
|
11
|
-
import Slicer from './slicer';
|
|
12
|
-
import APIFactory from './api-factory';
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './
|
|
15
|
-
export * from './core';
|
|
1
|
+
import BatchProcessor from './batch-processor.js';
|
|
2
|
+
import ConvictSchema from './convict-schema.js';
|
|
3
|
+
import EachProcessor from './each-processor.js';
|
|
4
|
+
import Fetcher from './fetcher.js';
|
|
5
|
+
import FilterProcessor from './filter-processor.js';
|
|
6
|
+
import JobObserver from './job-observer.js';
|
|
7
|
+
import MapProcessor from './map-processor.js';
|
|
8
|
+
import Observer from './observer.js';
|
|
9
|
+
import OperationAPI from './operation-api.js';
|
|
10
|
+
import ParallelSlicer from './parallel-slicer.js';
|
|
11
|
+
import Slicer from './slicer.js';
|
|
12
|
+
import APIFactory from './api-factory.js';
|
|
13
|
+
export * from './interfaces.js';
|
|
14
|
+
export * from './core/index.js';
|
|
16
15
|
export { BatchProcessor, ConvictSchema, EachProcessor, Fetcher, FilterProcessor, JobObserver, MapProcessor, Observer, OperationAPI, ParallelSlicer, Slicer, APIFactory };
|
|
17
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,sBAAsB,CAAC;AAClD,OAAO,aAAa,MAAM,qBAAqB,CAAC;AAChD,OAAO,aAAa,MAAM,qBAAqB,CAAC;AAChD,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,eAAe,MAAM,uBAAuB,CAAC;AACpD,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAC5C,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,QAAQ,MAAM,eAAe,CAAC;AACrC,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,cAAc,MAAM,sBAAsB,CAAC;AAClD,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAE1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,OAAO,EACH,cAAc,EACd,aAAa,EACb,aAAa,EACb,OAAO,EACP,eAAe,EACf,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,MAAM,EACN,UAAU,EACb,CAAC"}
|
|
@@ -1,48 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
16
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
-
};
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.APIFactory = exports.Slicer = exports.ParallelSlicer = exports.OperationAPI = exports.Observer = exports.MapProcessor = exports.JobObserver = exports.FilterProcessor = exports.Fetcher = exports.EachProcessor = exports.ConvictSchema = exports.BatchProcessor = void 0;
|
|
21
|
-
const batch_processor_1 = __importDefault(require("./batch-processor"));
|
|
22
|
-
exports.BatchProcessor = batch_processor_1.default;
|
|
23
|
-
const convict_schema_1 = __importDefault(require("./convict-schema"));
|
|
24
|
-
exports.ConvictSchema = convict_schema_1.default;
|
|
25
|
-
const each_processor_1 = __importDefault(require("./each-processor"));
|
|
26
|
-
exports.EachProcessor = each_processor_1.default;
|
|
27
|
-
const fetcher_1 = __importDefault(require("./fetcher"));
|
|
28
|
-
exports.Fetcher = fetcher_1.default;
|
|
29
|
-
const filter_processor_1 = __importDefault(require("./filter-processor"));
|
|
30
|
-
exports.FilterProcessor = filter_processor_1.default;
|
|
31
|
-
const job_observer_1 = __importDefault(require("./job-observer"));
|
|
32
|
-
exports.JobObserver = job_observer_1.default;
|
|
33
|
-
const map_processor_1 = __importDefault(require("./map-processor"));
|
|
34
|
-
exports.MapProcessor = map_processor_1.default;
|
|
35
|
-
const observer_1 = __importDefault(require("./observer"));
|
|
36
|
-
exports.Observer = observer_1.default;
|
|
37
|
-
const operation_api_1 = __importDefault(require("./operation-api"));
|
|
38
|
-
exports.OperationAPI = operation_api_1.default;
|
|
39
|
-
const parallel_slicer_1 = __importDefault(require("./parallel-slicer"));
|
|
40
|
-
exports.ParallelSlicer = parallel_slicer_1.default;
|
|
41
|
-
const slicer_1 = __importDefault(require("./slicer"));
|
|
42
|
-
exports.Slicer = slicer_1.default;
|
|
43
|
-
const api_factory_1 = __importDefault(require("./api-factory"));
|
|
44
|
-
exports.APIFactory = api_factory_1.default;
|
|
45
|
-
__exportStar(require("./shims"), exports);
|
|
46
|
-
__exportStar(require("./interfaces"), exports);
|
|
47
|
-
__exportStar(require("./core"), exports);
|
|
1
|
+
import BatchProcessor from './batch-processor.js';
|
|
2
|
+
import ConvictSchema from './convict-schema.js';
|
|
3
|
+
import EachProcessor from './each-processor.js';
|
|
4
|
+
import Fetcher from './fetcher.js';
|
|
5
|
+
import FilterProcessor from './filter-processor.js';
|
|
6
|
+
import JobObserver from './job-observer.js';
|
|
7
|
+
import MapProcessor from './map-processor.js';
|
|
8
|
+
import Observer from './observer.js';
|
|
9
|
+
import OperationAPI from './operation-api.js';
|
|
10
|
+
import ParallelSlicer from './parallel-slicer.js';
|
|
11
|
+
import Slicer from './slicer.js';
|
|
12
|
+
import APIFactory from './api-factory.js';
|
|
13
|
+
export * from './interfaces.js';
|
|
14
|
+
export * from './core/index.js';
|
|
15
|
+
export { BatchProcessor, ConvictSchema, EachProcessor, Fetcher, FilterProcessor, JobObserver, MapProcessor, Observer, OperationAPI, ParallelSlicer, Slicer, APIFactory };
|
|
48
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,sBAAsB,CAAC;AAClD,OAAO,aAAa,MAAM,qBAAqB,CAAC;AAChD,OAAO,aAAa,MAAM,qBAAqB,CAAC;AAChD,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,eAAe,MAAM,uBAAuB,CAAC;AACpD,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAC5C,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,QAAQ,MAAM,eAAe,CAAC;AACrC,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,cAAc,MAAM,sBAAsB,CAAC;AAClD,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAE1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,OAAO,EACH,cAAc,EACd,aAAa,EACb,aAAa,EACb,OAAO,EACP,eAAe,EACf,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,MAAM,EACN,UAAU,EACb,CAAC"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { ExecutionConfig, Context, OpConfig, APIConfig
|
|
2
|
-
import FetcherCore from './core/fetcher-core';
|
|
3
|
-
import SchemaCore, { OpType } from './core/schema-core';
|
|
4
|
-
import SlicerCore from './core/slicer-core';
|
|
5
|
-
import APICore from './core/api-core';
|
|
6
|
-
import ProcessorCore from './core/processor-core';
|
|
7
|
-
import Slicer from './slicer';
|
|
8
|
-
import ParallelSlicer from './parallel-slicer';
|
|
9
|
-
import OperationAPI from './operation-api';
|
|
1
|
+
import { ExecutionConfig, Context, OpConfig, APIConfig } from '../interfaces/index.js';
|
|
2
|
+
import FetcherCore from './core/fetcher-core.js';
|
|
3
|
+
import SchemaCore, { OpType } from './core/schema-core.js';
|
|
4
|
+
import SlicerCore from './core/slicer-core.js';
|
|
5
|
+
import APICore from './core/api-core.js';
|
|
6
|
+
import ProcessorCore from './core/processor-core.js';
|
|
7
|
+
import Slicer from './slicer.js';
|
|
8
|
+
import ParallelSlicer from './parallel-slicer.js';
|
|
9
|
+
import OperationAPI from './operation-api.js';
|
|
10
10
|
export type APICoreConstructor<U> = {
|
|
11
|
-
new (context:
|
|
11
|
+
new (context: Context, apiConfig: APIConfig, executionConfig: ExecutionConfig): U;
|
|
12
12
|
};
|
|
13
13
|
export type OperationCoreConstructor<U> = {
|
|
14
|
-
new <T = OpConfig>(context:
|
|
14
|
+
new <T = OpConfig>(context: Context, opConfig: OpConfig & T, executionConfig: ExecutionConfig): U;
|
|
15
15
|
};
|
|
16
16
|
export type SlicerCoreConstructor<U> = {
|
|
17
|
-
new <T = OpConfig>(context:
|
|
17
|
+
new <T = OpConfig>(context: Context, opConfig: OpConfig & T, executionConfig: ExecutionConfig): U;
|
|
18
18
|
};
|
|
19
19
|
export type SchemaConstructor<T = any> = {
|
|
20
20
|
type(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/operations/interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/operations/interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EAAE,OAAO,EAAE,QAAQ,EAClC,SAAS,EACZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,WAAW,MAAM,wBAAwB,CAAC;AACjD,OAAO,UAAU,EAAE,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,UAAU,MAAM,uBAAuB,CAAC;AAC/C,OAAO,OAAO,MAAM,oBAAoB,CAAC;AACzC,OAAO,aAAa,MAAM,0BAA0B,CAAC;AACrD,OAAO,MAAM,MAAM,aAAa,CAAC;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AwB,CAAC,WAAW,CAAC,CAAC;AACvE,MAAM,MAAM,oBAAoB,GAAG,wBAAwB,CAAC,aAAa,CAAC,CAAC;AAE3E,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG,UAAU,GAAG,aAAa,CAAC;AAErE,MAAM,WAAW,eAAe;IAC5B,MAAM,EAAE,iBAAiB,CAAC;IAC1B,GAAG,CAAC,EAAE,uBAAuB,CAAC;CACjC;AAED,MAAM,WAAW,YAAY;IACzB,MAAM,EAAE,iBAAiB,CAAC;CAC7B;AAED,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,UAAU,CAAC;AAClD,MAAM,WAAW,SAAU,SAAQ,YAAY;IAC3C,GAAG,EAAE,uBAAuB,GAAG,mBAAmB,CAAC;IACnD,IAAI,EAAE,gBAAgB,CAAC;CAC1B;AAED,MAAM,WAAW,YAAa,SAAQ,eAAe;IACjD,MAAM,EAAE,iBAAiB,CAAC;IAC1B,OAAO,EAAE,kBAAkB,CAAC;CAC/B;AAED,MAAM,WAAW,eAAgB,SAAQ,eAAe;IACpD,SAAS,EAAE,oBAAoB,CAAC;CACnC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExecutionConfig, APIConfig, SliceAnalyticsData,
|
|
2
|
-
import Observer from './observer';
|
|
1
|
+
import { ExecutionConfig, APIConfig, SliceAnalyticsData, Context } from '../interfaces/index.js';
|
|
2
|
+
import Observer from './observer.js';
|
|
3
3
|
/**
|
|
4
4
|
* An Observer for monitoring the Slice Analytics
|
|
5
5
|
*/
|
|
@@ -10,7 +10,7 @@ export default class JobObserver extends Observer {
|
|
|
10
10
|
protected _currentIndex: number;
|
|
11
11
|
private _opLength;
|
|
12
12
|
private _initialized;
|
|
13
|
-
constructor(context:
|
|
13
|
+
constructor(context: Context, apiConfig: APIConfig, executionConfig: ExecutionConfig);
|
|
14
14
|
onSliceInitialized(sliceId: string): Promise<void>;
|
|
15
15
|
onOperationStart(sliceId: string, index: number): void;
|
|
16
16
|
onOperationComplete(sliceId: string, index: number, processed: number): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job-observer.d.ts","sourceRoot":"","sources":["../../../src/operations/job-observer.ts"],"names":[],"mappings":"AACA,OAAO,EACH,eAAe,EAAE,SAAS,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"job-observer.d.ts","sourceRoot":"","sources":["../../../src/operations/job-observer.ts"],"names":[],"mappings":"AACA,OAAO,EACH,eAAe,EAAE,SAAS,EAAE,kBAAkB,EAC9C,OAAO,EACV,MAAM,wBAAwB,CAAC;AAChC,OAAO,QAAQ,MAAM,eAAe,CAAC;AAErC;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,QAAQ;IAC7C,gBAAgB,EAAE,OAAO,CAAC;IAC1B,aAAa,EAAE,kBAAkB,GAAG,SAAS,CAAC;IAG9C,SAAS,CAAC,eAAe,EAAE,MAAM,CAAC;IAElC,SAAS,CAAC,aAAa,EAAE,MAAM,CAAC;IAGhC,OAAO,CAAC,SAAS,CAAS;IAG1B,OAAO,CAAC,YAAY,CAAqB;gBAE7B,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,eAAe,EAAE,eAAe;IAe9E,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAWxD,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAYtD,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI;IAe5E,YAAY,IAAI,kBAAkB,GAAC,SAAS;IAW5C,gBAAgB,IAAI,kBAAkB;CAOzC"}
|
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const utils_1 = require("@terascope/utils");
|
|
7
|
-
const observer_1 = __importDefault(require("./observer"));
|
|
1
|
+
import { times } from '@terascope/utils';
|
|
2
|
+
import Observer from './observer.js';
|
|
8
3
|
/**
|
|
9
4
|
* An Observer for monitoring the Slice Analytics
|
|
10
5
|
*/
|
|
11
|
-
class JobObserver extends
|
|
6
|
+
export default class JobObserver extends Observer {
|
|
7
|
+
collectAnalytics;
|
|
8
|
+
analyticsData;
|
|
9
|
+
// use to avoid undefinied variable issues
|
|
10
|
+
_currentSliceId;
|
|
11
|
+
// use to avoid undefinied variable issues
|
|
12
|
+
_currentIndex;
|
|
13
|
+
// the length of the operations
|
|
14
|
+
_opLength;
|
|
15
|
+
// in-flight analytics
|
|
16
|
+
_initialized;
|
|
12
17
|
constructor(context, apiConfig, executionConfig) {
|
|
13
18
|
super(context, apiConfig, executionConfig);
|
|
14
19
|
this._opLength = executionConfig.operations.length;
|
|
@@ -68,9 +73,8 @@ class JobObserver extends observer_1.default {
|
|
|
68
73
|
};
|
|
69
74
|
}
|
|
70
75
|
}
|
|
71
|
-
exports.default = JobObserver;
|
|
72
76
|
function initVals(int) {
|
|
73
|
-
return
|
|
77
|
+
return times(int, initVal);
|
|
74
78
|
}
|
|
75
79
|
function initVal() {
|
|
76
80
|
return -1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job-observer.js","sourceRoot":"","sources":["../../../src/operations/job-observer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"job-observer.js","sourceRoot":"","sources":["../../../src/operations/job-observer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAKzC,OAAO,QAAQ,MAAM,eAAe,CAAC;AAErC;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,QAAQ;IAC7C,gBAAgB,CAAU;IAC1B,aAAa,CAAiC;IAE9C,0CAA0C;IAChC,eAAe,CAAS;IAClC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,CAAC;AACd,CAAC;AAED,SAAS,cAAc;IACnB,OAAO,OAAO,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC;AAC1C,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DataEntity } from '@terascope/utils';
|
|
2
|
-
import { OpConfig } from '../interfaces';
|
|
3
|
-
import ProcessorCore from './core/processor-core';
|
|
2
|
+
import { OpConfig } from '../interfaces/index.js';
|
|
3
|
+
import ProcessorCore from './core/processor-core.js';
|
|
4
4
|
/**
|
|
5
5
|
* A variation of Processor that can process a single DataEntity at a time.
|
|
6
6
|
* This processor should return a modified DataEntity.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map-processor.d.ts","sourceRoot":"","sources":["../../../src/operations/map-processor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"map-processor.d.ts","sourceRoot":"","sources":["../../../src/operations/map-processor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,aAAa,MAAM,0BAA0B,CAAC;AAErD;;;GAGG;AAEH,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,YAAY,CAAC,CAAC,GAAG,QAAQ,CAAE,SAAQ,aAAa,CAAC,CAAC,CAAC;IAC7E;;;;OAIG;IACH,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,UAAU;IAE9E;;;;;OAKG;IACG,MAAM,CAAC,KAAK,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;CAG3D"}
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const utils_1 = require("@terascope/utils");
|
|
7
|
-
const processor_core_1 = __importDefault(require("./core/processor-core"));
|
|
1
|
+
import { DataEntity } from '@terascope/utils';
|
|
2
|
+
import ProcessorCore from './core/processor-core.js';
|
|
8
3
|
/**
|
|
9
4
|
* A variation of Processor that can process a single DataEntity at a time.
|
|
10
5
|
* This processor should return a modified DataEntity.
|
|
11
6
|
*/
|
|
12
|
-
class MapProcessor extends
|
|
7
|
+
export default class MapProcessor extends ProcessorCore {
|
|
13
8
|
/**
|
|
14
9
|
* A generic method called by the Teraslice framework, calls {@link #map}
|
|
15
10
|
* @param input an array of DataEntities
|
|
@@ -17,8 +12,7 @@ class MapProcessor extends processor_core_1.default {
|
|
|
17
12
|
* @returns an array of DataEntities
|
|
18
13
|
*/
|
|
19
14
|
async handle(input) {
|
|
20
|
-
return input.map((data, index, array) =>
|
|
15
|
+
return input.map((data, index, array) => DataEntity.make(this.map(data, index, array)));
|
|
21
16
|
}
|
|
22
17
|
}
|
|
23
|
-
exports.default = MapProcessor;
|
|
24
18
|
//# sourceMappingURL=map-processor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map-processor.js","sourceRoot":"","sources":["../../../src/operations/map-processor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"map-processor.js","sourceRoot":"","sources":["../../../src/operations/map-processor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,aAAa,MAAM,0BAA0B,CAAC;AAErD;;;GAGG;AAEH,MAAM,CAAC,OAAO,OAAgB,YAA2B,SAAQ,aAAgB;IAQ7E;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CAAC,KAAmB;QAC5B,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IAC5F,CAAC;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observer.d.ts","sourceRoot":"","sources":["../../../src/operations/observer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"observer.d.ts","sourceRoot":"","sources":["../../../src/operations/observer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,oBAAoB,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD;;GAEG;AACH,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,QAAQ,CAAC,CAAC,GAAG,SAAS,CAAE,SAAQ,OAAO,CAAC,CAAC,CAAC;CACvE"}
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const api_core_1 = __importDefault(require("./core/api-core"));
|
|
1
|
+
import APICore from './core/api-core.js';
|
|
7
2
|
/**
|
|
8
3
|
* An Observer factory class for operations
|
|
9
4
|
*/
|
|
10
|
-
class Observer extends
|
|
5
|
+
export default class Observer extends APICore {
|
|
11
6
|
}
|
|
12
|
-
exports.default = Observer;
|
|
13
7
|
//# sourceMappingURL=observer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observer.js","sourceRoot":"","sources":["../../../src/operations/observer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"observer.js","sourceRoot":"","sources":["../../../src/operations/observer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,oBAAoB,CAAC;AAGzC;;GAEG;AACH,MAAM,CAAC,OAAO,OAAgB,QAAwB,SAAQ,OAAU;CACvE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operation-api.d.ts","sourceRoot":"","sources":["../../../src/operations/operation-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"operation-api.d.ts","sourceRoot":"","sources":["../../../src/operations/operation-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,OAAO,MAAM,oBAAoB,CAAC;AAEzC;;GAEG;AACH,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,YAAY,CAAC,CAAC,GAAG,SAAS,CAAE,SAAQ,OAAO,CAAC,CAAC,CAAC;IACxE;;;;;;;OAOG;IACH,QAAQ,CAAC,SAAS,CAAC,GAAG,MAAM,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,KAAK,CAAC;CACvD"}
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const api_core_1 = __importDefault(require("./core/api-core"));
|
|
1
|
+
import APICore from './core/api-core.js';
|
|
7
2
|
/**
|
|
8
3
|
* An API factory class for operations
|
|
9
4
|
*/
|
|
10
|
-
class OperationAPI extends
|
|
5
|
+
export default class OperationAPI extends APICore {
|
|
11
6
|
}
|
|
12
|
-
exports.default = OperationAPI;
|
|
13
7
|
//# sourceMappingURL=operation-api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operation-api.js","sourceRoot":"","sources":["../../../src/operations/operation-api.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"operation-api.js","sourceRoot":"","sources":["../../../src/operations/operation-api.ts"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,oBAAoB,CAAC;AAEzC;;GAEG;AACH,MAAM,CAAC,OAAO,OAAgB,YAA4B,SAAQ,OAAU;CAU3E"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SlicerFn, OpConfig, SlicerRecoveryData } from '../interfaces';
|
|
2
|
-
import SlicerCore from './core/slicer-core';
|
|
1
|
+
import { SlicerFn, OpConfig, SlicerRecoveryData } from '../interfaces/index.js';
|
|
2
|
+
import SlicerCore from './core/slicer-core.js';
|
|
3
3
|
/**
|
|
4
4
|
* A varient of a "Slicer" for running a parallel stream of slicers.
|
|
5
5
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parallel-slicer.d.ts","sourceRoot":"","sources":["../../../src/operations/parallel-slicer.ts"],"names":[],"mappings":"AACA,OAAO,EACH,QAAQ,EAAgB,QAAQ,EAAE,kBAAkB,EACvD,MAAM,
|
|
1
|
+
{"version":3,"file":"parallel-slicer.d.ts","sourceRoot":"","sources":["../../../src/operations/parallel-slicer.ts"],"names":[],"mappings":"AACA,OAAO,EACH,QAAQ,EAAgB,QAAQ,EAAE,kBAAkB,EACvD,MAAM,wBAAwB,CAAC;AAChC,OAAO,UAAU,MAAM,uBAAuB,CAAC;AAE/C;;;;GAIG;AAEH,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,cAAc,CAAC,CAAC,GAAG,QAAQ,CAAE,SAAQ,UAAU,CAAC,CAAC,CAAC;IAC5E,SAAS,CAAC,QAAQ,EAAE,SAAS,EAAE,CAAM;IAErC;;;;OAIG;IACG,UAAU,CAAC,YAAY,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAoBnE;;;;OAIG;IACG,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAK/B;;;OAGG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC;IAE7D,OAAO,IAAI,MAAM;IAIX,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC;IAoBhC,IAAI,UAAU,IAAI,OAAO,CAExB;YAEa,aAAa;CAgC9B;AAED,UAAU,SAAS;IACf,IAAI,EAAE,OAAO,CAAC;IACd,EAAE,EAAE,QAAQ,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1,20 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const utils_1 = require("@terascope/utils");
|
|
7
|
-
const slicer_core_1 = __importDefault(require("./core/slicer-core"));
|
|
1
|
+
import { times, isFunction, pDelay } from '@terascope/utils';
|
|
2
|
+
import SlicerCore from './core/slicer-core.js';
|
|
8
3
|
/**
|
|
9
4
|
* A varient of a "Slicer" for running a parallel stream of slicers.
|
|
10
5
|
*
|
|
11
6
|
* See [[SlicerCore]] for more informartion
|
|
12
7
|
*/
|
|
13
|
-
class ParallelSlicer extends
|
|
14
|
-
|
|
15
|
-
super(...arguments);
|
|
16
|
-
this._slicers = [];
|
|
17
|
-
}
|
|
8
|
+
export default class ParallelSlicer extends SlicerCore {
|
|
9
|
+
_slicers = [];
|
|
18
10
|
/**
|
|
19
11
|
* Register the different Slicer instances
|
|
20
12
|
*
|
|
@@ -23,9 +15,9 @@ class ParallelSlicer extends slicer_core_1.default {
|
|
|
23
15
|
async initialize(recoveryData) {
|
|
24
16
|
await super.initialize(recoveryData);
|
|
25
17
|
const { slicers = 1 } = this.executionConfig;
|
|
26
|
-
const promises =
|
|
18
|
+
const promises = times(slicers, async (id) => {
|
|
27
19
|
const fn = await this.newSlicer(id);
|
|
28
|
-
if (!
|
|
20
|
+
if (!isFunction(fn))
|
|
29
21
|
return;
|
|
30
22
|
this._slicers.push({
|
|
31
23
|
done: false,
|
|
@@ -63,7 +55,7 @@ class ParallelSlicer extends slicer_core_1.default {
|
|
|
63
55
|
}
|
|
64
56
|
else {
|
|
65
57
|
// promises are a microtask, if no action then we need to delay
|
|
66
|
-
await
|
|
58
|
+
await pDelay(10);
|
|
67
59
|
}
|
|
68
60
|
return this.isFinished;
|
|
69
61
|
}
|
|
@@ -105,5 +97,4 @@ class ParallelSlicer extends slicer_core_1.default {
|
|
|
105
97
|
}
|
|
106
98
|
}
|
|
107
99
|
}
|
|
108
|
-
exports.default = ParallelSlicer;
|
|
109
100
|
//# sourceMappingURL=parallel-slicer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parallel-slicer.js","sourceRoot":"","sources":["../../../src/operations/parallel-slicer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parallel-slicer.js","sourceRoot":"","sources":["../../../src/operations/parallel-slicer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAI7D,OAAO,UAAU,MAAM,uBAAuB,CAAC;AAE/C;;;;GAIG;AAEH,MAAM,CAAC,OAAO,OAAgB,cAA6B,SAAQ,UAAa;IAClE,QAAQ,GAAgB,EAAE,CAAC;IAErC;;;;OAIG;IACH,KAAK,CAAC,UAAU,CAAC,YAAkC;QAC/C,MAAM,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;QACrC,MAAM,EAAE,OAAO,GAAG,CAAC,EAAE,GAAG,IAAI,CAAC,eAAe,CAAC;QAE7C,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE;YACzC,MAAM,EAAE,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;YACpC,IAAI,CAAC,UAAU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@
|
|
|
1
|
-
{"version":3,"file":"slicer.d.ts","sourceRoot":"","sources":["../../../src/operations/slicer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"slicer.d.ts","sourceRoot":"","sources":["../../../src/operations/slicer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,UAAU,MAAM,uBAAuB,CAAC;AAE/C;;;;GAIG;AAEH,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,MAAM,CAAC,CAAC,GAAG,QAAQ,CAAE,SAAQ,UAAU,CAAC,CAAC,CAAC;IACpE;;OAEG;IACH,SAAS,CAAC,KAAK,SAAK;IAEpB,UAAU,UAAS;IAEnB;;;OAGG;IACH,QAAQ,CAAC,KAAK,IAAI,OAAO,CAAC,YAAY,CAAC;IAEvC,OAAO,IAAI,MAAM;IAIX,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC;CA0BnC"}
|
|
@@ -1,23 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const slicer_core_1 = __importDefault(require("./core/slicer-core"));
|
|
1
|
+
import SlicerCore from './core/slicer-core.js';
|
|
7
2
|
/**
|
|
8
3
|
* The simpliest form a "Slicer"
|
|
9
4
|
*
|
|
10
5
|
* See [[SlicerCore]]
|
|
11
6
|
*/
|
|
12
|
-
class Slicer extends
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
this.order = 0;
|
|
19
|
-
this.isFinished = false;
|
|
20
|
-
}
|
|
7
|
+
export default class Slicer extends SlicerCore {
|
|
8
|
+
/**
|
|
9
|
+
* @private
|
|
10
|
+
*/
|
|
11
|
+
order = 0;
|
|
12
|
+
isFinished = false;
|
|
21
13
|
slicers() {
|
|
22
14
|
return 1;
|
|
23
15
|
}
|
|
@@ -47,5 +39,4 @@ class Slicer extends slicer_core_1.default {
|
|
|
47
39
|
return false;
|
|
48
40
|
}
|
|
49
41
|
}
|
|
50
|
-
exports.default = Slicer;
|
|
51
42
|
//# sourceMappingURL=slicer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slicer.js","sourceRoot":"","sources":["../../../src/operations/slicer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"slicer.js","sourceRoot":"","sources":["../../../src/operations/slicer.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,MAAM,uBAAuB,CAAC;AAE/C;;;;GAIG;AAEH,MAAM,CAAC,OAAO,OAAgB,MAAqB,SAAQ,UAAa;IACpE;;OAEG;IACO,KAAK,GAAG,CAAC,CAAC;IAEpB,UAAU,GAAG,KAAK,CAAC;IAQnB,OAAO;QACH,OAAO,CAAC,CAAC;IACb,CAAC;IAED,KAAK,CAAC,MAAM;QACR,IAAI,IAAI,CAAC,UAAU;YAAE,OAAO,IAAI,CAAC;QAEjC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC;QAClC,IAAI,MAAM,IAAI,IAAI,IAAI,IAAI,CAAC,WAAW,EAAE,EAAE;YACtC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;YACvB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,gCAAgC,CAAC,CAAC;YACnD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC;YACnC,OAAO,IAAI,CAAC;SACf;QAED,IAAI,MAAM,IAAI,IAAI;YAAE,OAAO,KAAK,CAAC;QAEjC,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;YACvB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC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