com.groupbyinc.flux.common.apache.lucene.search.TopTermsRewrite.class Maven / Gradle / Ivy
???? 4 ? ?com/groupbyinc/flux/common/apache/lucene/search/TopTermsRewrite bLcom/groupbyinc/flux/common/apache/lucene/search/TermCollectingRewrite; Ecom/groupbyinc/flux/common/apache/lucene/search/TermCollectingRewrite TopTermsRewrite.java Icom/groupbyinc/flux/common/apache/lucene/search/TopTermsRewrite$ScoreTerm ScoreTerm Acom/groupbyinc/flux/common/apache/lucene/search/TopTermsRewrite$2
Acom/groupbyinc/flux/common/apache/lucene/search/TopTermsRewrite$1 Scom/groupbyinc/flux/common/apache/lucene/search/TermCollectingRewrite$TermCollector
TermCollector size I scoreTermSortByTermComp Ljava/util/Comparator; cLjava/util/Comparator; (I)V ()V
this FLcom/groupbyinc/flux/common/apache/lucene/search/TopTermsRewrite; ALcom/groupbyinc/flux/common/apache/lucene/search/TopTermsRewrite; getSize ()I
getMaxSize rewrite ?(Lcom/groupbyinc/flux/common/apache/lucene/index/IndexReader;Lcom/groupbyinc/flux/common/apache/lucene/search/MultiTermQuery;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query; java/io/IOException % " !
' java/lang/Math ) min (II)I + ,
* - java/util/PriorityQueue /
0 ^(Lcom/groupbyinc/flux/common/apache/lucene/search/TopTermsRewrite;Ljava/util/PriorityQueue;I)V 2
3 collectTerms ?(Lcom/groupbyinc/flux/common/apache/lucene/index/IndexReader;Lcom/groupbyinc/flux/common/apache/lucene/search/MultiTermQuery;Lcom/groupbyinc/flux/common/apache/lucene/search/TermCollectingRewrite$TermCollector;)V 5 6
7 getTopLevelBuilder ()Ljava/lang/Object; 9 :
; !
0 = toArray (([Ljava/lang/Object;)[Ljava/lang/Object; ? @
0 A L[Lcom/groupbyinc/flux/common/apache/lucene/search/TopTermsRewrite$ScoreTerm; C E 7com/groupbyinc/flux/common/apache/lucene/util/ArrayUtil G timSort ,([Ljava/lang/Object;Ljava/util/Comparator;)V I J
H K :com/groupbyinc/flux/common/apache/lucene/index/IndexReader M >com/groupbyinc/flux/common/apache/lucene/search/MultiTermQuery O java/lang/Object Q 3com/groupbyinc/flux/common/apache/lucene/index/Term S field Ljava/lang/String; U V P W bytes ?Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRefBuilder; Y Z [ =com/groupbyinc/flux/common/apache/lucene/util/BytesRefBuilder ]
toBytesRef :()Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef; _ `
^ a M(Ljava/lang/String;Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;)V c
T d termState