public class MapFunctions extends Object
These functions accept map objects as input parameters.
Constructor and Description |
---|
MapFunctions() |
Modifier and Type | Method and Description |
---|---|
static ScalarValuedFunction |
containsKey(Map<Object,Object> leftValue,
ScalarValuedFunction rightExpr)
Builds an expression to check if a constant contains a mapping for the key specified by an
expression.
|
static ScalarValuedFunction |
containsKey(Map<Object,Object> leftValue,
String rightField)
Builds an expression to check if a constant contains a mapping for the key specified by the
other field.
|
static ScalarValuedFunction |
containsKey(ScalarValuedFunction leftExpr,
ScalarValuedFunction rightExpr)
Builds an expression to check if an expression contains a mapping for the key specified by the
other expression.
|
static ScalarValuedFunction |
containsKey(ScalarValuedFunction leftExpr,
String rightField)
Builds an expression to check if an expression contains a mapping for the key specified by the
other field.
|
static ScalarValuedFunction |
containsKey(String leftField,
ScalarValuedFunction rightExpr)
Builds an expression to check if a field contains a mapping for the key specified by an
expression.
|
static ScalarValuedFunction |
containsKey(String leftField,
String rightField)
Builds an expression to check if a field contains a mapping for the key specified by the
other field.
|
static ScalarValuedFunction |
mapGet(Map<Object,Object> leftValue,
ScalarValuedFunction rightExpr)
Builds an expression to get the value mapped to a key from specified constant.
|
static ScalarValuedFunction |
mapGet(Map<Object,Object> leftValue,
String rightField)
Builds an expression to get the value mapped to a key from specified constant.
|
static ScalarValuedFunction |
mapGet(ScalarValuedFunction leftExpr,
ScalarValuedFunction rightExpr)
Builds an expression to get the value mapped to a key from specified ScalarValuedFunction.
|
static ScalarValuedFunction |
mapGet(ScalarValuedFunction leftExpr,
String rightField)
Builds an expression to get the value mapped to a key from specified ScalarValuedFunction.
|
static ScalarValuedFunction |
mapGet(String leftField,
ScalarValuedFunction rightExpr)
Builds an expression to get the value mapped to a key from specified field.
|
static ScalarValuedFunction |
mapGet(String leftField,
String rightField)
Builds an expression to get the value mapped to a key from specified field.
|
static ScalarValuedFunction |
mapSize(ScalarValuedFunction expr)
Builds an expression to get the number of kay-value mappings in ScalarValuedFunction expression.
|
static ScalarValuedFunction |
mapSize(String field)
Builds an expression to get the number of kay-value mappings in the specified field.
|
static ScalarValuedFunction |
mapToString(ScalarValuedFunction expr)
Builds an expression to get the string representation of a ScalarValuedFunction.
|
static ScalarValuedFunction |
mapToString(String field)
Builds an expression to get the string representation of a specified field.
|
public static ScalarValuedFunction mapGet(String leftField, String rightField)
null
, the result is null
.leftField
- the record field value on the left side of mapGetrightField
- the record field value on the right side of mapGetpublic static ScalarValuedFunction mapGet(String leftField, ScalarValuedFunction rightExpr)
null
, the result is null
.leftField
- the record field value on the left side of mapGetrightExpr
- the ScalarValuedFunction expression on the right side of mapGetpublic static ScalarValuedFunction mapGet(Map<Object,Object> leftValue, String rightField)
null
, the result is null
.leftValue
- the constant value on the left side of mapGetrightField
- the record field value on the right side of mapGetpublic static ScalarValuedFunction mapGet(Map<Object,Object> leftValue, ScalarValuedFunction rightExpr)
null
, the result is null
.leftValue
- the constant value on the left side of mapGetrightExpr
- the ScalarValuedFunction expression on the right side of mapGetpublic static ScalarValuedFunction mapGet(ScalarValuedFunction leftExpr, String rightField)
null
, the result is null
.leftExpr
- the ScalarValuedFunction expression on the left side of mapGetrightField
- the record field value on the right side of mapGetpublic static ScalarValuedFunction mapGet(ScalarValuedFunction leftExpr, ScalarValuedFunction rightExpr)
null
, the result is null
.leftExpr
- the ScalarValuedFunction expression on the left side of mapGetrightExpr
- the ScalarValuedFunction expression on the right side of mapGetpublic static ScalarValuedFunction mapSize(String field)
null
, the result is null
.field
- the record field valuepublic static ScalarValuedFunction mapSize(ScalarValuedFunction expr)
null
, the result is null
.expr
- the ScalarValuedFunction expressionpublic static ScalarValuedFunction mapToString(String field)
null
, the result is null
.field
- the record field valuepublic static ScalarValuedFunction mapToString(ScalarValuedFunction expr)
null
, the result is null
.expr
- the ScalarValuedFunction expressionpublic static ScalarValuedFunction containsKey(String leftField, String rightField)
null
, the result is null
.leftField
- the record field value on the left side of containsKeyrightField
- the record field value on the right side of containsKeypublic static ScalarValuedFunction containsKey(String leftField, ScalarValuedFunction rightExpr)
null
, the result is null
.leftField
- the record field value on the left side of containsKeyrightExpr
- the ScalarValuedFunction expression on the right side of containsKeypublic static ScalarValuedFunction containsKey(Map<Object,Object> leftValue, String rightField)
null
, the result is null
.leftValue
- the constant value on the left side of containsKeyrightField
- the record field value on the right side of containsKeypublic static ScalarValuedFunction containsKey(Map<Object,Object> leftValue, ScalarValuedFunction rightExpr)
null
, the result is null
.leftValue
- the constant value on the left side of containsKeyrightExpr
- the ScalarValuedFunction expression on the right side of containsKeypublic static ScalarValuedFunction containsKey(ScalarValuedFunction leftExpr, String rightField)
null
, the result is null
.leftExpr
- the ScalarValuedFunction expression on the left side of containsKeyrightField
- the record field value on the right side of containsKeypublic static ScalarValuedFunction containsKey(ScalarValuedFunction leftExpr, ScalarValuedFunction rightExpr)
null
, the result is null
.leftExpr
- the ScalarValuedFunction expression on the left side of containsKeyrightExpr
- the ScalarValuedFunction expression on the left side of containsKeyCopyright © 2021 Actian Corporation. All rights reserved.