Package io.deephaven.time
Class TimeLiteralReplacedExpression
java.lang.Object
io.deephaven.time.TimeLiteralReplacedExpression
TimeLiteralReplacedExpression is a query expression with time, period, and datetime literals replaced by instance
variables. This contains the converted formula, instance variable declarations, and a map of types of the instance
variables.
-
Method Summary
Modifier and TypeMethodDescriptionconvertExpression(String expression) Converts a query expression to aTimeLiteralReplacedExpression, where the time, period, and datetime literals are replaced by instance variables.Gets the formula after replacing time, period, and datetime literals with variables.An expression that declares new instance variables.Gets a map of names and types of new instance variables.
-
Method Details
-
getConvertedFormula
Gets the formula after replacing time, period, and datetime literals with variables.- Returns:
- formula after replacing time, period, and datetime literals with variables.
-
getInstanceVariablesString
An expression that declares new instance variables.- Returns:
- expression that declares new instance variables.
-
getNewVariables
Gets a map of names and types of new instance variables.- Returns:
- a map of names and types of new instance variables.
-
convertExpression
Converts a query expression to aTimeLiteralReplacedExpression, where the time, period, and datetime literals are replaced by instance variables.- Parameters:
expression- query expression to convert.- Returns:
- a
TimeLiteralReplacedExpressionwhere time, period, and datetime literals have been replaced by instance variables. - Throws:
Exception- If any error occurs or a literal value cannot be parsed.
-