@pujansrt/data-genie
Version:
High performant ETL engine written in TypeScript
40 lines (39 loc) • 1.28 kB
TypeScript
import { RecordTransformation } from '../transformers/transforming-reader';
export declare class BasicFieldTransformer {
private fieldNames;
constructor(...fieldNames: string[]);
stringToDouble(): RecordTransformation;
nullToValue(defaultValue: any): RecordTransformation;
stringToInt(): RecordTransformation;
dateParse(format: string): RecordTransformation;
}
export declare class RenameField {
private oldName;
private newName;
private allowDuplicateFieldNames;
constructor(oldName: string, newName: string);
setAllowDuplicateFieldNames(value: boolean): this;
transform(): RecordTransformation;
}
export declare class SetField {
private fieldName;
private value;
constructor(fieldName: string, value: any);
transform(): RecordTransformation;
}
export declare class SetCalculatedField {
private fieldName;
private expression;
constructor(fieldName: string, expression: string);
transform(): RecordTransformation;
}
export declare class RemoveFields {
private fieldNames;
constructor(...fieldNames: string[]);
transform(): RecordTransformation;
}
export declare class SelectFields {
private fieldNames;
constructor(...fieldNames: string[]);
transform(): RecordTransformation;
}