public class FieldExpression extends Expression
type
Constructor and Description |
---|
FieldExpression(FieldExpression other,
Expression variableKey)
Constructor that creates a subfield expression from a field expression and a variable key.
|
FieldExpression(FieldExpression other,
Integer index)
Constructor that creates a subfield expression from a field expression and a list index.
|
FieldExpression(FieldExpression other,
String key)
Constructor that creates a subfield expression from a field expression and a map key.
|
FieldExpression(String field)
Constructor that creates a field expression.
|
FieldExpression(String field,
Expression variableKey)
Constructor that creates a field expression with a variable list index or map key.
|
FieldExpression(String field,
Expression variableKey,
Expression variableSubKey)
Constructor that creates a field expression with map key and a map subkey.
|
FieldExpression(String field,
Expression variableKey,
String subKey)
Constructor that creates a field expression with a variable list index or map key and a map subkey.
|
FieldExpression(String field,
Integer index)
Constructor that creates a field expression with a list index.
|
FieldExpression(String field,
Integer index,
Expression variableSubKey)
Constructor that creates a field expression with a list index and a variable map subkey.
|
FieldExpression(String field,
Integer index,
String subKey)
Constructor that creates a field expression with a list index and a map subkey.
|
FieldExpression(String field,
String key)
Constructor that creates a field expression with a map key.
|
FieldExpression(String field,
String key,
Expression variableSubKey)
Constructor that creates a field expression with a map key and a variable map subkey.
|
FieldExpression(String field,
String key,
String subKey)
Constructor that creates a field expression with a map key and a map subkey.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Evaluator |
getEvaluator()
Gets a new instance of an evaluator for this expression.
|
String |
getName()
Gets the name of this field expression formatted with delimiters for any index and/or keys.
|
int |
hashCode() |
String |
toString() |
public FieldExpression(String field)
field
- The non-null field to get.public FieldExpression(String field, Integer index)
field
- The non-null field to get.index
- The non-null index to get from the field.public FieldExpression(String field, String key)
field
- The non-null field to get.key
- The non-null key to get from the field.public FieldExpression(String field, Expression variableKey)
field
- The non-null field to get.variableKey
- The non-null variable key to get from the field.public FieldExpression(String field, Integer index, String subKey)
field
- The non-null field to get.index
- The non-null index to get from the field.subKey
- The non-null subkey to get from the field[index].public FieldExpression(String field, String key, String subKey)
field
- The non-null field to get.key
- The non-null key to get from the field.subKey
- The non-null subkey to get from the field.key.public FieldExpression(String field, Expression variableKey, String subKey)
field
- The non-null field to get.variableKey
- The non-null variable key to get from the field.subKey
- The non-null subkey to get from the field[key].public FieldExpression(String field, Integer index, Expression variableSubKey)
field
- The non-null field to get.index
- The non-null index to get from the field.variableSubKey
- The non-null variable subkey to get from the field[index].public FieldExpression(String field, String key, Expression variableSubKey)
field
- The non-null field to get.key
- The non-null key to get from the field.variableSubKey
- The non-null variable subkey to get from the field.key.public FieldExpression(String field, Expression variableKey, Expression variableSubKey)
field
- The non-null field to get.variableKey
- The non-null variable key to get from the field.variableSubKey
- The non-null variable subkey to get from the field[key].public FieldExpression(FieldExpression other, Integer index)
other
- The non-null field expression to get a subfield from.index
- The non-null index to get from the field expression.public FieldExpression(FieldExpression other, String key)
other
- The non-null field expression to get a subfield from.key
- The non-null key to get from the field expression.public FieldExpression(FieldExpression other, Expression variableKey)
other
- The non-null field expression to get a subfield from.variableKey
- The non-null variable key to get from the field expression.public String getName()
SimpleEqualityPartitioner
only when the key and subkey are not
expressions.public Evaluator getEvaluator()
Expression
getEvaluator
in class Expression
public boolean equals(Object obj)
equals
in class Expression
public int hashCode()
hashCode
in class Expression
public String toString()
toString
in class Expression
Copyright © 2021. All rights reserved.