Package com.google.appengine.api.search
Class FieldExpression.Builder
- java.lang.Object
-
- com.google.appengine.api.search.FieldExpression.Builder
-
- Enclosing class:
- FieldExpression
public static final class FieldExpression.Builder extends Object
A field expression builder. A name and expression must be supplied.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldExpressionbuild()Builds the FieldExpression.FieldExpression.BuildersetExpression(String expression)Sets the expression to evaluate to return inScoredDocument.FieldExpression.BuildersetName(String name)Sets the name of the expression.
-
-
-
Method Detail
-
setName
public FieldExpression.Builder setName(String name)
Sets the name of the expression. The name must be a valid field name.- Parameters:
name- the name of the expression- Returns:
- this Builder
- Throws:
IllegalArgumentException- if name is not a valid field name
-
setExpression
public FieldExpression.Builder setExpression(String expression)
Sets the expression to evaluate to return inScoredDocument.- Parameters:
expression- an expression to evaluate and return in aScoredDocumentfield- Returns:
- this Builder
- Throws:
IllegalArgumentException- if the expression is not valid
-
build
public FieldExpression build()
Builds the FieldExpression. An expression and name for the expression must be given.- Returns:
- the built FieldExpression
- Throws:
IllegalArgumentException- if the name is not a valid field name
-
-