FieldExpression (Google App Engine API for Java)

Class FieldExpression

  • java.lang.Object

  • public class FieldExpression
    extends java.lang.Object
    Represents an expression bound to a returned Field with the given name. FieldExpressions are added to a QueryOptions, to request an expression computed and returned as the named Field value. For example,
           .setExpression("snippet(\"good story\", content)")
    binds a snippet expression to a Field named "snippet", which will be returned in each search result. In this case the returned "snippet" Field will contain a HTML value containing text snippets of the "content" field matching the query "good story".
    • Method Detail

      • getName

        public java.lang.String getName()
        the name of the expression
      • getExpression

        public java.lang.String getExpression()
        the expression string used to create a field
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object