public interface Expression extends Serializable
Modifier and Type | Interface and Description |
---|---|
static class |
Expression.CastExpression
Get constant value.
|
static class |
Expression.DateFormat
Convert the temporal value to desired formatted string.
|
static interface |
Expression.ExpressionCreator
Expression creator.
|
static class |
Expression.ExpressionFunction
Expression function.
|
static class |
Expression.ReferencedField
Referenced field in expression input parameters.
|
static class |
Expression.Substring
Get substring using
String.substring(int) . |
static class |
Expression.TemporalExpressionBase<T>
Expression to handle temporal value.
|
static class |
Expression.TemporalToIntConverter
Convert the temporal value to an integer.
|
static class |
Expression.TruncateComputer
Truncate numeric/decimal/string value.
|
Modifier and Type | Method and Description |
---|---|
static Expression |
cast(String... literals) |
static Expression |
create(Map<String,DataType> typeMapping,
boolean caseSensitive,
String exprName,
String... args) |
String |
eval(String input)
Compute value from given input.
|
String |
fieldReference()
Return name of referenced field.
|
DataType |
outputType()
Return
DataType of computed value. |
static Expression |
substring(String fieldReference,
String... literals) |
static Expression |
truncate(String fieldReference,
DataType fieldType,
String... literals) |
String fieldReference()
String eval(String input)
static Expression create(Map<String,DataType> typeMapping, boolean caseSensitive, String exprName, String... args)
static Expression substring(String fieldReference, String... literals)
static Expression truncate(String fieldReference, DataType fieldType, String... literals)
static Expression cast(String... literals)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.