@pujansrt/data-genie
Version:
High performant ETL engine written in TypeScript
14 lines (13 loc) • 612 B
TypeScript
import { DataReader, DataRecord } from '../core/interfaces';
import { DataTransformer } from '../transformers/transformers';
export declare class GroupByReader extends DataTransformer {
private groupByField;
private aggregations;
constructor(reader: DataReader, groupByField: string);
count(outputField: string): this;
sum(sourceField: string, outputField: string): this;
max(sourceField: string, outputField: string): this;
min(sourceField: string, outputField: string): this;
avg(sourceField: string, outputField: string): this;
read(): AsyncIterableIterator<DataRecord>;
}