com.groupbyinc.flux.common.apache.lucene.index.MultiPassIndexSplitter.class Maven / Gradle / Ivy
???? 4! Ecom/groupbyinc/flux/common/apache/lucene/index/MultiPassIndexSplitter java/lang/Object MultiPassIndexSplitter.java ALcom/groupbyinc/flux/common/apache/lucene/util/SuppressForbidden; reason &System.out required: command line tool _com/groupbyinc/flux/common/apache/lucene/index/MultiPassIndexSplitter$FakeDeleteLeafIndexReader FakeDeleteLeafIndexReader [com/groupbyinc/flux/common/apache/lucene/index/MultiPassIndexSplitter$FakeDeleteIndexReader FakeDeleteIndexReader Icom/groupbyinc/flux/common/apache/lucene/index/IndexWriterConfig$OpenMode @com/groupbyinc/flux/common/apache/lucene/index/IndexWriterConfig OpenMode ()V
this GLcom/groupbyinc/flux/common/apache/lucene/index/MultiPassIndexSplitter; split {(Lcom/groupbyinc/flux/common/apache/lucene/index/IndexReader;[Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;Z)V java/io/IOException Invalid number of outputs. (Ljava/lang/String;)V
! :com/groupbyinc/flux/common/apache/lucene/index/IndexReader # numDocs ()I % &
$ ' "Not enough documents for splitting ) ?(Lcom/groupbyinc/flux/common/apache/lucene/index/IndexReader;)V +
, maxDoc . &
/ ;[Lcom/groupbyinc/flux/common/apache/lucene/store/Directory; 1 undeleteAll 3
4 deleteDocument (I)V 6 7
8 :com/groupbyinc/flux/common/apache/lucene/index/IndexWriter : ?(Lcom/groupbyinc/flux/common/apache/lucene/analysis/Analyzer;)V <
= CREATE KLcom/groupbyinc/flux/common/apache/lucene/index/IndexWriterConfig$OpenMode; ? @ A setOpenMode ?(Lcom/groupbyinc/flux/common/apache/lucene/index/IndexWriterConfig$OpenMode;)Lcom/groupbyinc/flux/common/apache/lucene/index/IndexWriterConfig; C D
E (Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;Lcom/groupbyinc/flux/common/apache/lucene/index/IndexWriterConfig;)V G
; H java/lang/System J err Ljava/io/PrintStream; L M K N java/lang/StringBuilder P
Q
Writing part S append -(Ljava/lang/String;)Ljava/lang/StringBuilder; U V
Q W (I)Ljava/lang/StringBuilder; U Y
Q Z ... \ toString ()Ljava/lang/String; ^ _
Q ` java/io/PrintStream b println d
c e getSequentialSubReaders ()Ljava/util/List; g h
i java/util/List k size m & l n :com/groupbyinc/flux/common/apache/lucene/index/CodecReader p toArray (([Ljava/lang/Object;)[Ljava/lang/Object; r s l t =[Lcom/groupbyinc/flux/common/apache/lucene/index/CodecReader; v
addIndexes @([Lcom/groupbyinc/flux/common/apache/lucene/index/CodecReader;)J x y
; z close |
; } Done. j I lo hi w