com.google.appengine.api.search.dev
Class GenericScorer
java.lang.Object
com.google.appengine.api.search.dev.Scorer
com.google.appengine.api.search.dev.GenericScorer
- All Implemented Interfaces:
- java.util.Comparator<GenericScorer.Result>
public class GenericScorer
- extends Scorer
- implements java.util.Comparator<GenericScorer.Result>
Scorer for CUSTOM sorting algorithm, which uses expression evaluation for
multidimensional sorting.
Constructor Summary |
GenericScorer(boolean isNative,
int scorerLimit,
Sort nativeSort,
com.google.appengine.api.search.dev.NumericExpression[] expressions,
Expression.Sorter[] sorters)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
equals |
GenericScorer
public GenericScorer(boolean isNative,
int scorerLimit,
Sort nativeSort,
com.google.appengine.api.search.dev.NumericExpression[] expressions,
Expression.Sorter[] sorters)
newInstance
public static Scorer newInstance(SearchServicePb.SearchParams searchParams,
java.util.Map<java.lang.String,java.util.Set<DocumentPb.FieldValue.ContentType>> fieldTypes)
compare
public int compare(GenericScorer.Result left,
GenericScorer.Result right)
- Specified by:
compare
in interface java.util.Comparator<GenericScorer.Result>
search
public Scorer.SearchResults search(IndexSearcher indexSearcher,
Query q,
int offset,
int limit)
throws java.io.IOException
- Specified by:
search
in class Scorer
- Throws:
java.io.IOException