@milaboratories/ptabler-expression-js 1.1.23 → 1.1.24
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/_virtual/_rolldown/runtime.js +36 -0
- package/dist/expressions.cjs +752 -835
- package/dist/expressions.cjs.map +1 -1
- package/dist/expressions.d.ts +266 -265
- package/dist/expressions.js +752 -834
- package/dist/expressions.js.map +1 -1
- package/dist/functions.cjs +101 -130
- package/dist/functions.cjs.map +1 -1
- package/dist/functions.d.ts +30 -30
- package/dist/functions.js +96 -123
- package/dist/functions.js.map +1 -1
- package/dist/index.cjs +42 -46
- package/dist/index.d.ts +12 -9
- package/dist/index.js +4 -3
- package/dist/types.d.ts +8 -1
- package/package.json +6 -6
- package/dist/expressions.d.ts.map +0 -1
- package/dist/functions.d.ts.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/types.d.ts.map +0 -1
package/dist/expressions.d.ts
CHANGED
|
@@ -1,297 +1,298 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import type { AggregationType, BinaryArithmeticExpression, BinaryArithmeticOperator, BooleanLogicExpression, ColumnReferenceExpression, ComparisonExpression, ComparisonOperator, ConstantValueExpression, CumsumExpression, Expression, ExtendedUnaryStringExpression, FillNaNExpression, FillNullExpression, FuzzyFilterDistanceMetric, FuzzyStringFilterExpression, MinMaxExpression, MinMaxOperator, NotExpression, RankExpression, StringContainsExpression, StringDistanceExpression, StringDistanceMetric, StringJoinExpression, StringReplaceExpression, SubstringExpression, UnaryArithmeticExpression, UnaryArithmeticOperator, WhenThenOtherwiseExpression, WindowExpression } from "./types";
|
|
1
|
+
import { types_d_exports } from "./types.js";
|
|
2
|
+
|
|
3
|
+
//#region src/expressions.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Base abstract class for all expressions
|
|
7
6
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
7
|
+
declare abstract class ExpressionImpl {
|
|
8
|
+
protected _alias?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Convert the expressionImpl to JSON format compatible with PTabler schema
|
|
11
|
+
*/
|
|
12
|
+
abstract toJSON(): types_d_exports.Expression;
|
|
13
|
+
/**
|
|
14
|
+
* Get the alias for this expressionImpl (defaults to a generated name)
|
|
15
|
+
*/
|
|
16
|
+
abstract getAlias(): string;
|
|
17
|
+
/**
|
|
18
|
+
* Set an alias for this expression
|
|
19
|
+
*/
|
|
20
|
+
alias(name: string): ExpressionImpl;
|
|
21
|
+
/**
|
|
22
|
+
* Clone this expression
|
|
23
|
+
*/
|
|
24
|
+
protected abstract clone(): ExpressionImpl;
|
|
25
|
+
plus(other: ExpressionImpl | number | string): ArithmeticExpressionImpl;
|
|
26
|
+
minus(other: ExpressionImpl | number | string): ArithmeticExpressionImpl;
|
|
27
|
+
multiply(other: ExpressionImpl | number | string): ArithmeticExpressionImpl;
|
|
28
|
+
truediv(other: ExpressionImpl | number | string): ArithmeticExpressionImpl;
|
|
29
|
+
floordiv(other: ExpressionImpl | number | string): ArithmeticExpressionImpl;
|
|
30
|
+
gt(other: ExpressionImpl | number | string): ComparisonExpressionImpl;
|
|
31
|
+
ge(other: ExpressionImpl | number | string): ComparisonExpressionImpl;
|
|
32
|
+
eq(other: ExpressionImpl | number | string): ComparisonExpressionImpl;
|
|
33
|
+
lt(other: ExpressionImpl | number | string): ComparisonExpressionImpl;
|
|
34
|
+
le(other: ExpressionImpl | number | string): ComparisonExpressionImpl;
|
|
35
|
+
neq(other: ExpressionImpl | number | string): ComparisonExpressionImpl;
|
|
36
|
+
and(...others: ExpressionImpl[]): LogicalExpressionImpl;
|
|
37
|
+
or(...others: ExpressionImpl[]): LogicalExpressionImpl;
|
|
38
|
+
not(): LogicalExpressionImpl;
|
|
39
|
+
abs(): UnaryArithmeticExpressionImpl;
|
|
40
|
+
sqrt(): UnaryArithmeticExpressionImpl;
|
|
41
|
+
log(): UnaryArithmeticExpressionImpl;
|
|
42
|
+
log10(): UnaryArithmeticExpressionImpl;
|
|
43
|
+
log2(): UnaryArithmeticExpressionImpl;
|
|
44
|
+
floor(): UnaryArithmeticExpressionImpl;
|
|
45
|
+
ceil(): UnaryArithmeticExpressionImpl;
|
|
46
|
+
round(): UnaryArithmeticExpressionImpl;
|
|
47
|
+
negate(): UnaryArithmeticExpressionImpl;
|
|
48
|
+
isNull(): NullCheckExpressionImpl;
|
|
49
|
+
isNotNull(): NullCheckExpressionImpl;
|
|
50
|
+
fillNull(value: ExpressionImpl): FillNullExpressionImpl;
|
|
51
|
+
fillNaN(value: ExpressionImpl): FillNaNExpressionImpl;
|
|
52
|
+
strConcat(...others: (ExpressionImpl | string)[]): StringConcatExpressionImpl;
|
|
53
|
+
substring(start: number, length?: number): SubstringExpressionImpl;
|
|
54
|
+
strReplace(pattern: string, value: string, options?: Pick<types_d_exports.StringReplaceExpression, "replaceAll" | "literal">): StringReplaceExpressionImpl;
|
|
55
|
+
strContains(pattern: ExpressionImpl | string, literal?: boolean, strict?: boolean): StringContainsExpressionImpl;
|
|
56
|
+
strToUpper(): StringCaseExpressionImpl;
|
|
57
|
+
strToLower(): StringCaseExpressionImpl;
|
|
58
|
+
strStartsWith(pattern: ExpressionImpl | string): StringStartsWithExpressionImpl;
|
|
59
|
+
strEndsWith(pattern: ExpressionImpl | string): StringEndsWithExpressionImpl;
|
|
60
|
+
sum(): AggregationExpressionImpl;
|
|
61
|
+
mean(): AggregationExpressionImpl;
|
|
62
|
+
count(): AggregationExpressionImpl;
|
|
63
|
+
min(): AggregationExpressionImpl;
|
|
64
|
+
max(): AggregationExpressionImpl;
|
|
65
|
+
first(): AggregationExpressionImpl;
|
|
66
|
+
last(): AggregationExpressionImpl;
|
|
67
|
+
cumsum(): CumsumExpressionImpl;
|
|
68
|
+
stringDistance(other: ExpressionImpl | string, metric: types_d_exports.StringDistanceMetric, returnSimilarity?: boolean): StringDistanceExpressionImpl;
|
|
69
|
+
fuzzyStringFilter(pattern: ExpressionImpl | string, metric: types_d_exports.FuzzyFilterDistanceMetric, bound: number): FuzzyStringFilterExpressionImpl;
|
|
71
70
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
71
|
+
declare class ColumnExpressionImpl extends ExpressionImpl {
|
|
72
|
+
private readonly columnName;
|
|
73
|
+
constructor(columnName: string);
|
|
74
|
+
toJSON(): types_d_exports.ColumnReferenceExpression;
|
|
75
|
+
getAlias(): string;
|
|
76
|
+
protected clone(): ExpressionImpl;
|
|
77
|
+
/**
|
|
78
|
+
* Get the column name
|
|
79
|
+
*/
|
|
80
|
+
getColumnName(): string;
|
|
82
81
|
}
|
|
83
82
|
/**
|
|
84
83
|
* Helper function to coerce values to expressions
|
|
85
84
|
*/
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
85
|
+
declare function coerceToExpression(value: ExpressionImpl | LiteralValue): ExpressionImpl;
|
|
86
|
+
declare class MinMaxExpressionImpl extends ExpressionImpl {
|
|
87
|
+
private readonly op;
|
|
88
|
+
private readonly ops;
|
|
89
|
+
constructor(op: types_d_exports.MinMaxOperator, ops: ExpressionImpl[]);
|
|
90
|
+
toJSON(): types_d_exports.MinMaxExpression;
|
|
91
|
+
getAlias(): string;
|
|
92
|
+
protected clone(): ExpressionImpl;
|
|
94
93
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
94
|
+
declare class ArithmeticExpressionImpl extends ExpressionImpl {
|
|
95
|
+
private readonly operator;
|
|
96
|
+
private readonly lhs;
|
|
97
|
+
private readonly rhs;
|
|
98
|
+
constructor(operator: types_d_exports.BinaryArithmeticOperator, lhs: ExpressionImpl, rhs: ExpressionImpl);
|
|
99
|
+
toJSON(): types_d_exports.BinaryArithmeticExpression;
|
|
100
|
+
getAlias(): string;
|
|
101
|
+
protected clone(): ExpressionImpl;
|
|
103
102
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
103
|
+
declare class ComparisonExpressionImpl extends ExpressionImpl {
|
|
104
|
+
private readonly operator;
|
|
105
|
+
private readonly lhs;
|
|
106
|
+
private readonly rhs;
|
|
107
|
+
constructor(operator: types_d_exports.ComparisonOperator, lhs: ExpressionImpl, rhs: ExpressionImpl);
|
|
108
|
+
toJSON(): types_d_exports.ComparisonExpression;
|
|
109
|
+
getAlias(): string;
|
|
110
|
+
protected clone(): ComparisonExpressionImpl;
|
|
112
111
|
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
112
|
+
declare class LogicalExpressionImpl extends ExpressionImpl {
|
|
113
|
+
private readonly operator;
|
|
114
|
+
private readonly operands;
|
|
115
|
+
constructor(operator: "and" | "or" | "not", operands: ExpressionImpl[]);
|
|
116
|
+
toJSON(): types_d_exports.NotExpression | types_d_exports.BooleanLogicExpression;
|
|
117
|
+
getAlias(): string;
|
|
118
|
+
protected clone(): ExpressionImpl;
|
|
120
119
|
}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
120
|
+
declare class UnaryArithmeticExpressionImpl extends ExpressionImpl {
|
|
121
|
+
private readonly operator;
|
|
122
|
+
private readonly value;
|
|
123
|
+
constructor(operator: types_d_exports.UnaryArithmeticOperator, value: ExpressionImpl);
|
|
124
|
+
toJSON(): types_d_exports.UnaryArithmeticExpression;
|
|
125
|
+
getAlias(): string;
|
|
126
|
+
protected clone(): ExpressionImpl;
|
|
128
127
|
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
128
|
+
declare class NullCheckExpressionImpl extends ExpressionImpl {
|
|
129
|
+
private readonly operator;
|
|
130
|
+
private readonly value;
|
|
131
|
+
constructor(operator: "is_na" | "is_not_na", value: ExpressionImpl);
|
|
132
|
+
toJSON(): types_d_exports.Expression;
|
|
133
|
+
getAlias(): string;
|
|
134
|
+
protected clone(): ExpressionImpl;
|
|
136
135
|
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
136
|
+
type LiteralValue = string | number | boolean | null;
|
|
137
|
+
declare class LiteralExpressionImpl extends ExpressionImpl {
|
|
138
|
+
private readonly value;
|
|
139
|
+
constructor(value: LiteralValue);
|
|
140
|
+
toJSON(): types_d_exports.ConstantValueExpression;
|
|
141
|
+
getAlias(): string;
|
|
142
|
+
protected clone(): ExpressionImpl;
|
|
143
|
+
/**
|
|
144
|
+
* Get the literal value
|
|
145
|
+
*/
|
|
146
|
+
getValue(): string | number | boolean | null;
|
|
147
|
+
/**
|
|
148
|
+
* Generate a default alias based on the value
|
|
149
|
+
*/
|
|
150
|
+
private generateDefaultAlias;
|
|
152
151
|
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
152
|
+
declare class FillNullExpressionImpl extends ExpressionImpl {
|
|
153
|
+
private readonly expr;
|
|
154
|
+
private readonly fillValue;
|
|
155
|
+
constructor(expr: ExpressionImpl, fillValue: ExpressionImpl);
|
|
156
|
+
toJSON(): types_d_exports.FillNullExpression;
|
|
157
|
+
getAlias(): string;
|
|
158
|
+
protected clone(): ExpressionImpl;
|
|
160
159
|
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
160
|
+
declare class FillNaNExpressionImpl extends ExpressionImpl {
|
|
161
|
+
private readonly expr;
|
|
162
|
+
private readonly fillValue;
|
|
163
|
+
constructor(expr: ExpressionImpl, fillValue: ExpressionImpl);
|
|
164
|
+
toJSON(): types_d_exports.FillNaNExpression;
|
|
165
|
+
getAlias(): string;
|
|
166
|
+
protected clone(): ExpressionImpl;
|
|
168
167
|
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
168
|
+
declare class StringConcatExpressionImpl extends ExpressionImpl {
|
|
169
|
+
private readonly operands;
|
|
170
|
+
private readonly delimiter;
|
|
171
|
+
constructor(operands: ExpressionImpl[], delimiter?: string);
|
|
172
|
+
toJSON(): types_d_exports.StringJoinExpression;
|
|
173
|
+
getAlias(): string;
|
|
174
|
+
protected clone(): ExpressionImpl;
|
|
176
175
|
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
176
|
+
declare class SubstringExpressionImpl extends ExpressionImpl {
|
|
177
|
+
private readonly expr;
|
|
178
|
+
private readonly start;
|
|
179
|
+
private readonly length?;
|
|
180
|
+
constructor(expr: ExpressionImpl, start: number, length?: number | undefined);
|
|
181
|
+
toJSON(): types_d_exports.SubstringExpression;
|
|
182
|
+
getAlias(): string;
|
|
183
|
+
protected clone(): ExpressionImpl;
|
|
185
184
|
}
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
185
|
+
declare class StringReplaceExpressionImpl extends ExpressionImpl {
|
|
186
|
+
private readonly expr;
|
|
187
|
+
private readonly pattern;
|
|
188
|
+
private readonly value;
|
|
189
|
+
private readonly options?;
|
|
190
|
+
constructor(expr: ExpressionImpl, pattern: string, value: string, options?: Pick<types_d_exports.StringReplaceExpression, "replaceAll" | "literal"> | undefined);
|
|
191
|
+
toJSON(): types_d_exports.StringReplaceExpression;
|
|
192
|
+
getAlias(): string;
|
|
193
|
+
protected clone(): ExpressionImpl;
|
|
195
194
|
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
195
|
+
declare class StringContainsExpressionImpl extends ExpressionImpl {
|
|
196
|
+
private readonly expr;
|
|
197
|
+
private readonly pattern;
|
|
198
|
+
private readonly literal?;
|
|
199
|
+
private readonly strict?;
|
|
200
|
+
constructor(expr: ExpressionImpl, pattern: ExpressionImpl, literal?: boolean | undefined, strict?: boolean | undefined);
|
|
201
|
+
toJSON(): types_d_exports.StringContainsExpression;
|
|
202
|
+
getAlias(): string;
|
|
203
|
+
protected clone(): ExpressionImpl;
|
|
205
204
|
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
205
|
+
declare class StringCaseExpressionImpl extends ExpressionImpl {
|
|
206
|
+
private readonly operation;
|
|
207
|
+
private readonly expr;
|
|
208
|
+
constructor(operation: "to_upper" | "to_lower", expr: ExpressionImpl);
|
|
209
|
+
toJSON(): types_d_exports.ExtendedUnaryStringExpression;
|
|
210
|
+
getAlias(): string;
|
|
211
|
+
protected clone(): ExpressionImpl;
|
|
213
212
|
}
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
213
|
+
declare class StringStartsWithExpressionImpl extends ExpressionImpl {
|
|
214
|
+
private readonly expr;
|
|
215
|
+
private readonly pattern;
|
|
216
|
+
constructor(expr: ExpressionImpl, pattern: ExpressionImpl);
|
|
217
|
+
toJSON(): types_d_exports.Expression;
|
|
218
|
+
getAlias(): string;
|
|
219
|
+
protected clone(): ExpressionImpl;
|
|
221
220
|
}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
221
|
+
declare class StringEndsWithExpressionImpl extends ExpressionImpl {
|
|
222
|
+
private readonly expr;
|
|
223
|
+
private readonly pattern;
|
|
224
|
+
constructor(expr: ExpressionImpl, pattern: ExpressionImpl);
|
|
225
|
+
toJSON(): types_d_exports.Expression;
|
|
226
|
+
getAlias(): string;
|
|
227
|
+
protected clone(): ExpressionImpl;
|
|
229
228
|
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
229
|
+
declare class CumsumExpressionImpl extends ExpressionImpl {
|
|
230
|
+
private readonly value;
|
|
231
|
+
private readonly additionalOrderBy;
|
|
232
|
+
private readonly partitionBy;
|
|
233
|
+
private readonly descending?;
|
|
234
|
+
constructor(value: ExpressionImpl, additionalOrderBy?: ExpressionImpl[], partitionBy?: ExpressionImpl[], descending?: boolean | undefined);
|
|
235
|
+
toJSON(): types_d_exports.CumsumExpression;
|
|
236
|
+
getAlias(): string;
|
|
237
|
+
protected clone(): ExpressionImpl;
|
|
239
238
|
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
239
|
+
declare class AggregationExpressionImpl extends ExpressionImpl {
|
|
240
|
+
operation: types_d_exports.AggregationType;
|
|
241
|
+
expr?: ExpressionImpl | undefined;
|
|
242
|
+
constructor(operation: types_d_exports.AggregationType, expr?: ExpressionImpl | undefined);
|
|
243
|
+
toJSON(): types_d_exports.WindowExpression;
|
|
244
|
+
getAlias(): string;
|
|
245
|
+
protected clone(): ExpressionImpl;
|
|
247
246
|
}
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
247
|
+
declare class WindowExpressionImpl extends ExpressionImpl {
|
|
248
|
+
private readonly expr;
|
|
249
|
+
private readonly aggregation;
|
|
250
|
+
private readonly partitionBy;
|
|
251
|
+
constructor(expr: ExpressionImpl, aggregation: types_d_exports.AggregationType, partitionBy: ExpressionImpl[]);
|
|
252
|
+
toJSON(): types_d_exports.WindowExpression;
|
|
253
|
+
getAlias(): string;
|
|
254
|
+
protected clone(): ExpressionImpl;
|
|
256
255
|
}
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
256
|
+
declare class StringDistanceExpressionImpl extends ExpressionImpl {
|
|
257
|
+
private readonly string1;
|
|
258
|
+
private readonly string2;
|
|
259
|
+
private readonly metric;
|
|
260
|
+
private readonly returnSimilarity?;
|
|
261
|
+
constructor(string1: ExpressionImpl, string2: ExpressionImpl, metric: types_d_exports.StringDistanceMetric, returnSimilarity?: boolean | undefined);
|
|
262
|
+
toJSON(): types_d_exports.StringDistanceExpression;
|
|
263
|
+
getAlias(): string;
|
|
264
|
+
protected clone(): ExpressionImpl;
|
|
266
265
|
}
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
266
|
+
declare class FuzzyStringFilterExpressionImpl extends ExpressionImpl {
|
|
267
|
+
private readonly expr;
|
|
268
|
+
private readonly pattern;
|
|
269
|
+
private readonly metric;
|
|
270
|
+
private readonly bound;
|
|
271
|
+
constructor(expr: ExpressionImpl, pattern: ExpressionImpl, metric: types_d_exports.FuzzyFilterDistanceMetric, bound: number);
|
|
272
|
+
toJSON(): types_d_exports.FuzzyStringFilterExpression;
|
|
273
|
+
getAlias(): string;
|
|
274
|
+
protected clone(): ExpressionImpl;
|
|
276
275
|
}
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
276
|
+
declare class RankExpressionImpl extends ExpressionImpl {
|
|
277
|
+
private readonly orderBy;
|
|
278
|
+
private readonly partitionBy;
|
|
279
|
+
private readonly descending;
|
|
280
|
+
constructor(orderBy: ExpressionImpl[], partitionBy: ExpressionImpl[], descending: boolean);
|
|
281
|
+
toJSON(): types_d_exports.RankExpression;
|
|
282
|
+
getAlias(): string;
|
|
283
|
+
protected clone(): ExpressionImpl;
|
|
285
284
|
}
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
285
|
+
declare class WhenThenOtherwiseExpressionImpl extends ExpressionImpl {
|
|
286
|
+
private readonly conditions;
|
|
287
|
+
private readonly otherwiseValue;
|
|
288
|
+
constructor(conditions: Array<{
|
|
289
|
+
when: ExpressionImpl;
|
|
290
|
+
then: ExpressionImpl;
|
|
291
|
+
}>, otherwiseValue: ExpressionImpl);
|
|
292
|
+
toJSON(): types_d_exports.WhenThenOtherwiseExpression;
|
|
293
|
+
getAlias(): string;
|
|
294
|
+
protected clone(): ExpressionImpl;
|
|
296
295
|
}
|
|
296
|
+
//#endregion
|
|
297
|
+
export { AggregationExpressionImpl, ArithmeticExpressionImpl, ColumnExpressionImpl, ComparisonExpressionImpl, CumsumExpressionImpl, ExpressionImpl, FillNaNExpressionImpl, FillNullExpressionImpl, FuzzyStringFilterExpressionImpl, LiteralExpressionImpl, LiteralValue, LogicalExpressionImpl, MinMaxExpressionImpl, NullCheckExpressionImpl, RankExpressionImpl, StringCaseExpressionImpl, StringConcatExpressionImpl, StringContainsExpressionImpl, StringDistanceExpressionImpl, StringEndsWithExpressionImpl, StringReplaceExpressionImpl, StringStartsWithExpressionImpl, SubstringExpressionImpl, UnaryArithmeticExpressionImpl, WhenThenOtherwiseExpressionImpl, WindowExpressionImpl, coerceToExpression };
|
|
297
298
|
//# sourceMappingURL=expressions.d.ts.map
|