public class Expression extends Object implements Serializable, Cloneable
A named expression that can be evaluated at search time. Can be used to sort the search results, define other expressions, or return computed information in the search results.
Constructor and Description |
---|
Expression() |
Modifier and Type | Method and Description |
---|---|
Expression |
clone() |
boolean |
equals(Object obj) |
String |
getExpressionName()
Names must begin with a letter and can contain the following
characters: a-z (lowercase), 0-9, and _ (underscore).
|
String |
getExpressionValue()
The expression to evaluate for sorting while processing a search
request.
|
int |
hashCode() |
void |
setExpressionName(String expressionName)
Names must begin with a letter and can contain the following
characters: a-z (lowercase), 0-9, and _ (underscore).
|
void |
setExpressionValue(String expressionValue)
The expression to evaluate for sorting while processing a search
request.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Expression |
withExpressionName(String expressionName)
Names must begin with a letter and can contain the following
characters: a-z (lowercase), 0-9, and _ (underscore).
|
Expression |
withExpressionValue(String expressionValue)
The expression to evaluate for sorting while processing a search
request.
|
public String getExpressionName()
Constraints:
Length: 1 - 64
Pattern: [a-z][a-z0-9_]*
public void setExpressionName(String expressionName)
Constraints:
Length: 1 - 64
Pattern: [a-z][a-z0-9_]*
expressionName
- Names must begin with a letter and can contain the following
characters: a-z (lowercase), 0-9, and _ (underscore).public Expression withExpressionName(String expressionName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [a-z][a-z0-9_]*
expressionName
- Names must begin with a letter and can contain the following
characters: a-z (lowercase), 0-9, and _ (underscore).public String getExpressionValue()
Expression
syntax is based on JavaScript
expressions. For more information, see Configuring Expressions in the Amazon
CloudSearch Developer Guide.
Constraints:
Length: 1 - 10240
Expression
syntax is based on JavaScript
expressions. For more information, see Configuring Expressions in the Amazon
CloudSearch Developer Guide.public void setExpressionValue(String expressionValue)
Expression
syntax is based on JavaScript
expressions. For more information, see Configuring Expressions in the Amazon
CloudSearch Developer Guide.
Constraints:
Length: 1 - 10240
expressionValue
- The expression to evaluate for sorting while processing a search
request. The Expression
syntax is based on JavaScript
expressions. For more information, see Configuring Expressions in the Amazon
CloudSearch Developer Guide.public Expression withExpressionValue(String expressionValue)
Expression
syntax is based on JavaScript
expressions. For more information, see Configuring Expressions in the Amazon
CloudSearch Developer Guide.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 10240
expressionValue
- The expression to evaluate for sorting while processing a search
request. The Expression
syntax is based on JavaScript
expressions. For more information, see Configuring Expressions in the Amazon
CloudSearch Developer Guide.public String toString()
toString
in class Object
Object.toString()
public Expression clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.