Package com.influxdb.query.dsl
Class Expressions
java.lang.Object
com.influxdb.query.dsl.Expressions
- All Implemented Interfaces:
HasImports
A container holding a list of
Expression
s.
Example
VariableAssignment a = Flux.from("test1").asVariable("a"); VariableAssignment b = Flux.from("test2").asVariable("b"); String flux = new Expressions( a, b, a.first().yield("firstA"), b.first().yield("firstB"), a.last().yield("lastA"), b.last().yield("lastB") ).toString();
-
Constructor Summary
ConstructorDescriptionExpressions
(Expression... expressions) Expressions
(Collection<? extends Expression> expressions) -
Method Summary
Modifier and TypeMethodDescriptionaddExpressions
(Expression... expressions) Adds another expression to this container.toString()
-
Constructor Details
-
Expressions
- Parameters:
expressions
- the expressions to be used
-
Expressions
- Parameters:
expressions
- the expressions to be used
-
-
Method Details
-
addExpressions
Adds another expression to this container.- Parameters:
expressions
- the expressions to be added- Returns:
- this
-
toString
- Parameters:
parameters
- parameters to resolveprependImports
- true, if the imports should be prepended- Returns:
- the string representation of the expressions
-
toString
-
getImports
- Specified by:
getImports
in interfaceHasImports
- Returns:
- the imports
-