Class SortExpressionChecker

java.lang.Object
com.google.appengine.api.search.checkers.SortExpressionChecker

public class SortExpressionChecker extends Object
Checks the values of a SortExpression.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.google.appengine.api.search.proto.SearchServicePb.SortSpec
    checkValid(com.google.appengine.api.search.proto.SearchServicePb.SortSpec spec)
    Checks the SearchServicePb.SortSpec is valid, specifically checking the limit on number of documents to score is not too large.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SortExpressionChecker

      public SortExpressionChecker()
  • Method Details

    • checkValid

      public static com.google.appengine.api.search.proto.SearchServicePb.SortSpec checkValid(com.google.appengine.api.search.proto.SearchServicePb.SortSpec spec)
      Checks the SearchServicePb.SortSpec is valid, specifically checking the limit on number of documents to score is not too large.
      Parameters:
      spec - the SearchServicePb.SortSpec to check
      Returns:
      the checked spec
      Throws:
      IllegalArgumentException - if the spec is invalid