plywood
Version:
A query planner and executor
24 lines • 1.01 kB
TypeScript
import { AttributeInfo } from '../../datatypes';
import { Expression } from '../../expressions';
import { PlyType } from '../../types';
export interface DruidExpressionBuilderOptions {
rawAttributes: AttributeInfo[];
timeAttribute: string;
}
export declare class DruidExpressionBuilder {
static TIME_PART_TO_FORMAT: Record<string, string>;
static UNSAFE_CHAR: RegExp;
static escape(str: string): string;
static escapeVariable(name: string): string;
static escapeLiteral(x: number | string | Date): string;
static escapeLike(str: string): string;
static expressionTypeToOutputType(type: PlyType): Druid.OutputType;
rawAttributes: AttributeInfo[];
timeAttribute: string;
constructor(options: DruidExpressionBuilderOptions);
expressionToDruidExpression(expression: Expression): string | null;
private castToType;
private overlapExpression;
getAttributesInfo(attributeName: string): AttributeInfo;
}
//# sourceMappingURL=druidExpressionBuilder.d.ts.map