Class ExpressionBuilder.IntValueExpression

java.lang.Object
com.google.appengine.api.search.dev.Expression
com.google.appengine.api.search.dev.ExpressionBuilder.IntValueExpression
Enclosing class:
ExpressionBuilder

public static class ExpressionBuilder.IntValueExpression extends Expression
Expression which evaluates to numeric constant.
  • Method Details

    • evalDouble

      public double evalDouble(org.apache.lucene.document.Document doc)
      Evaluate double value from specified document.
    • eval

      public com.google.apphosting.api.search.DocumentPb.FieldValue eval(org.apache.lucene.document.Document doc) throws EvaluationException
      Description copied from class: Expression
      Evaluate the expression to field value proto for the specified document.
      Specified by:
      eval in class Expression
      Throws:
      EvaluationException
    • getSorters

      public List<Expression.Sorter> getSorters(int sign, double defaultValueNumeric, String defaultValueText)
      Description copied from class: Expression
      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.
      Specified by:
      getSorters in class Expression
    • getNumericSorter

      public Expression.Sorter getNumericSorter(int sign, double defaultValueNumeric)