com.groupbyinc.flux.common.apache.lucene.search.grouping.SearchGroup$GroupMerger.class Maven / Gradle / Ivy
???? 4 ? Pcom/groupbyinc/flux/common/apache/lucene/search/grouping/SearchGroup$GroupMerger (Ljava/lang/Object; java/lang/Object SearchGroup.java Tcom/groupbyinc/flux/common/apache/lucene/search/grouping/SearchGroup$GroupComparator Dcom/groupbyinc/flux/common/apache/lucene/search/grouping/SearchGroup GroupComparator Pcom/groupbyinc/flux/common/apache/lucene/search/grouping/SearchGroup$MergedGroup MergedGroup GroupMerger Ncom/groupbyinc/flux/common/apache/lucene/search/grouping/SearchGroup$ShardIter ShardIter groupComp VLcom/groupbyinc/flux/common/apache/lucene/search/grouping/SearchGroup$GroupComparator; [Lcom/groupbyinc/flux/common/apache/lucene/search/grouping/SearchGroup$GroupComparator; queue Ljava/util/NavigableSet; qLjava/util/NavigableSet;>;
groupsSeen Ljava/util/Map; kLjava/util/Map;>; $assertionsDisabled Z 9(Lcom/groupbyinc/flux/common/apache/lucene/search/Sort;)V ()V
!
# % java/util/TreeSet ' (Ljava/util/Comparator;)V )
( * , java/util/HashMap .
/ ! 1 this WLcom/groupbyinc/flux/common/apache/lucene/search/grouping/SearchGroup$GroupMerger; RLcom/groupbyinc/flux/common/apache/lucene/search/grouping/SearchGroup$GroupMerger; groupSort 6Lcom/groupbyinc/flux/common/apache/lucene/search/Sort; updateNextGroup T(ILcom/groupbyinc/flux/common/apache/lucene/search/grouping/SearchGroup$ShardIter;)V iter Ljava/util/Iterator; : ; < java/util/Iterator > hasNext ()Z @ A ? B next H()Lcom/groupbyinc/flux/common/apache/lucene/search/grouping/SearchGroup; D E
F
groupValue Ljava/lang/Object; H I
J
java/util/Map L get &(Ljava/lang/Object;)Ljava/lang/Object; N O M P (Ljava/lang/Object;)V R
S
shardIndex I U V W
minShardIndex Y V
Z \
sortValues [Ljava/lang/Object; ^ _
` java/lang/AssertionError b
c ! topValues e _
f put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; h i M j inQueue l
m java/util/NavigableSet o add (Ljava/lang/Object;)Z q r p s processed u
v comparators B[Lcom/groupbyinc/flux/common/apache/lucene/search/FieldComparator; x y z reversed [I | } ~ ?com/groupbyinc/flux/common/apache/lucene/search/FieldComparator ?
compareValues '(Ljava/lang/Object;Ljava/lang/Object;)I ? ?
? ? remove ? r p ? shards Ljava/util/List; ? ?
? java/util/List ? ? s size ()I ? ? p ? pollLast ()Ljava/lang/Object; ? ? p ? cmp compIDX competes group KLcom/groupbyinc/flux/common/apache/lucene/search/grouping/SearchGroup; FLcom/groupbyinc/flux/common/apache/lucene/search/grouping/SearchGroup; mergedGroup WLcom/groupbyinc/flux/common/apache/lucene/search/grouping/SearchGroup$MergedGroup; RLcom/groupbyinc/flux/common/apache/lucene/search/grouping/SearchGroup$MergedGroup; isNew topN shard ULcom/groupbyinc/flux/common/apache/lucene/search/grouping/SearchGroup$ShardIter; PLcom/groupbyinc/flux/common/apache/lucene/search/grouping/SearchGroup$ShardIter; merge *(Ljava/util/List;II)Ljava/util/Collection; ? ? (I)Ljava/lang/Object; N ? ? ? java/util/Collection ? isEmpty ? A ? ? (Ljava/util/Collection;I)V ?
? 8 9
? java/util/ArrayList ? (I)V ?
? ? p ? pollFirst ? ? p ?
!
J iterator ()Ljava/util/Iterator; ? ? ? ? D ? ? ? ? ? cLjava/util/Collection;>; Ljava/util/Collection; shardIDX newGroup shardIter uLjava/util/List;>;>; offset maxQueueSize newTopGroups ]Ljava/util/List;>; count java/lang/Class ? desiredAssertionStatus ? A
? ? Signature Code LocalVariableTable LocalVariableTypeTable LineNumberTable
StackMapTable Y(ILcom/groupbyinc/flux/common/apache/lucene/search/grouping/SearchGroup$ShardIter;)V ?(Ljava/util/List;>;>;II)Ljava/util/Collection;>;
SourceFile InnerClasses ? ? ? ? ? +*? "*? Y+? $? &*? (Y*? &? +? -*? /Y? 0? 2? ? + 3 5 + 6 7 ? + 3 4 ? ? ? ? ? * ? 8 9 ? z,? =? C ?N,? GN*? 2-? K? Q ?
:? ? 6? \?
Y-? K? T:,? X? [? ]? -? a? ? cY? d?-? a? g*? 2-? K? k W? n*? -? t W? ?? w? ??k66*? &? {?? c*? &? .*? &? {2-? a2? g2? ?h6? 6? /? ? '*? &? {?d? ,? X? [? 6????? ;? n? *? -? ? W-? a? g,? X? [*? -? t W? n? ?,? ? W? *? -? ? ? *? -? ? ?
N-? n??? ? f
? 1 ? V ? m ? V ? ? ? F ? ? #4 ? ? /( ? q ? ? z 3 5 z ? V z ? ? ? 4 F ? ? #4 ? ? q ? ? z 3 4 z ? ? ? ? ( ? ? ? # ? / ? 4 ? A ? J ? _ ? h ? x ? ~ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?$ -
6BHTWdqvy ? , ? +
@? 1-
? ? @? ? ? #? ! ? ? ? ? ? Z
?`66+? ? ? 1+? ? ? ?:? ? ? *? Y? ?? ????ʻ ?Y? ?:6*? -? ? ? ?*? -? ? ?
:? w?? 8?
Y? ?:? ?? K? g? a? ? W? ? ? ? 3? ?? ? :? C ? ? ? ? : * ? ?????u? ? ? ?? ? z ? ? 9 ? V ? , ? ? ? ? ? h q ? ? ? 3 5 ? ? ? ? ? V ? ? V ? ? V K ? ? ? N ? ? V ? H ? ? ? , ? ? ? ? ? h q ? ? ? 3 4 ? ? ? K ? ? ? ? f " # $ *&