Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products. If you have feedback or questions as you navigate the site, click Send Feedback.

Expression

Stay organized with collections Save and categorize content based on your preferences.
com.google.appengine.api.search.dev

Class Expression

  • java.lang.Object
    • com.google.appengine.api.search.dev.Expression
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class and Description
      static interface  Expression.Sorter
      Sort class for potential multi dimensional sorting of the expression.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Expression() 
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method and Description
      abstract FieldValue eval(Document doc)
      Evaluate the expression to field value proto for the specified document.
      abstract java.util.List<Expression.Sorter> getSorters(int sign, double defaultValueNumeric, java.lang.String defaultValueText)
      Get list of sort classes for the expression.
      static FieldValue makeValue(ContentType type, java.lang.String stringValue)
      Helper function to make field value proto from specified content.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Expression

        public Expression()
    • Method Detail

      • makeValue

        public static final FieldValue makeValue(ContentType type,
                                                 java.lang.String stringValue)
        Helper function to make field value proto from specified content.
      • getSorters

        public abstract java.util.List<Expression.Sorter> getSorters(int sign,
                                                                     double defaultValueNumeric,
                                                                     java.lang.String defaultValueText)
        Get list of sort classes for the expression. Usually it contains just one element, but for field expressions it can potentially return 2 sorters when both numeric and text fields exist with a field name.