com.groupbyinc.flux.common.apache.lucene.index.ParallelLeafReader.class Maven / Gradle / Ivy
???? 4? Acom/groupbyinc/flux/common/apache/lucene/index/ParallelLeafReader 9com/groupbyinc/flux/common/apache/lucene/index/LeafReader ParallelLeafReader.java Pcom/groupbyinc/flux/common/apache/lucene/index/ParallelLeafReader$ParallelFields ParallelFields Acom/groupbyinc/flux/common/apache/lucene/index/FieldInfos$Builder 9com/groupbyinc/flux/common/apache/lucene/index/FieldInfos Builder Fcom/groupbyinc/flux/common/apache/lucene/index/IndexReader$CacheHelper :com/groupbyinc/flux/common/apache/lucene/index/IndexReader CacheHelper java/util/Map$Entry
java/util/Map Entry
fieldInfos ;Lcom/groupbyinc/flux/common/apache/lucene/index/FieldInfos; parallelReaders <[Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReader; storedFieldsReaders completeReaderSet Ljava/util/Set; LLjava/util/Set; closeSubReaders Z maxDoc I numDocs hasDeletions metaData =Lcom/groupbyinc/flux/common/apache/lucene/index/LeafMetaData; tvFieldToReader Ljava/util/SortedMap; dLjava/util/SortedMap;
fieldToReader termsFieldToReader Ljava/util/Map; ^Ljava/util/Map; ?([Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReader;)V java/io/IOException 1 @(Z[Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReader;)V / 3
4 this CLcom/groupbyinc/flux/common/apache/lucene/index/ParallelLeafReader; readers |(Z[Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReader;[Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReader;)V / 9
: ()V / <
= java/util/IdentityHashMap ?
@ = java/util/Collections B
newSetFromMap (Ljava/util/Map;)Ljava/util/Set; D E
C F H java/util/TreeMap J
K = ( ) M + ) O java/util/HashMap Q
R = , - T ! V "java/lang/IllegalArgumentException X GThere must be at least one main reader if storedFieldsReaders are used. Z (Ljava/lang/String;)V / \
Y ] clone ()Ljava/lang/Object; ` a
_ b d f ()I " h
i " # k $ h
m $ # o ()Z % q
r % ! t addAll ,(Ljava/util/Collection;[Ljava/lang/Object;)Z v w
C x
java/util/Set z iterator ()Ljava/util/Iterator; | } { ~ java/util/Iterator ? hasNext ? q ? ? next ? a ? ? java/lang/StringBuilder ?
? = #All readers must have same maxDoc: ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? (I)Ljava/lang/StringBuilder; ? ?
? ? != ? toString ()Ljava/lang/String; ? ?
? ?
= 4com/groupbyinc/flux/common/apache/lucene/search/Sort ? getMetaData ?()Lcom/groupbyinc/flux/common/apache/lucene/index/LeafMetaData; ? ?
? ;com/groupbyinc/flux/common/apache/lucene/index/LeafMetaData ? getSort 8()Lcom/groupbyinc/flux/common/apache/lucene/search/Sort; ? ?
? ? equals (Ljava/lang/Object;)Z ? ?
? ? Jcannot combine LeafReaders that have different index sorts: saw both sort= ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ? ?
? ? and ? getCreatedVersionMajor ? h
? ? Scannot combine LeafReaders that have different creation versions: saw both version= ?
getFieldInfos =()Lcom/groupbyinc/flux/common/apache/lucene/index/FieldInfos; ? ?
?
~ 8com/groupbyinc/flux/common/apache/lucene/index/FieldInfo ? name Ljava/lang/String; ? ? ? ? java/util/SortedMap ? containsKey ? ? ? ? add v(Lcom/groupbyinc/flux/common/apache/lucene/index/FieldInfo;)Lcom/groupbyinc/flux/common/apache/lucene/index/FieldInfo; ? ?
? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? ?
hasVectors ? q
? ? getIndexOptions ?()Lcom/groupbyinc/flux/common/apache/lucene/index/IndexOptions; ? ?
? ? ;com/groupbyinc/flux/common/apache/lucene/index/IndexOptions ? NONE =Lcom/groupbyinc/flux/common/apache/lucene/index/IndexOptions; ? ? ? ? ? 5com/groupbyinc/flux/common/apache/lucene/util/Version ? LATEST 7Lcom/groupbyinc/flux/common/apache/lucene/util/Version; ? ? ? ? major ? # ? ?
getMinVersion 9()Lcom/groupbyinc/flux/common/apache/lucene/util/Version; ? ?
? ? onOrAfter :(Lcom/groupbyinc/flux/common/apache/lucene/util/Version;)Z ? ?
? ? finish ? ?
? ? q(ILcom/groupbyinc/flux/common/apache/lucene/util/Version;Lcom/groupbyinc/flux/common/apache/lucene/search/Sort;)V / ?
? ? &