
com.groupbyinc.flux.common.apache.lucene.codecs.blocktree.BlockTreeTermsWriter$TermsWriter.class Maven / Gradle / Ivy
???? 3? Zcom/groupbyinc/flux/common/apache/lucene/codecs/blocktree/BlockTreeTermsWriter$TermsWriter java/lang/Object BlockTreeTermsWriter.java [com/groupbyinc/flux/common/apache/lucene/codecs/blocktree/BlockTreeTermsWriter$PendingEntry Ncom/groupbyinc/flux/common/apache/lucene/codecs/blocktree/BlockTreeTermsWriter PendingEntry [com/groupbyinc/flux/common/apache/lucene/codecs/blocktree/BlockTreeTermsWriter$PendingBlock PendingBlock Zcom/groupbyinc/flux/common/apache/lucene/codecs/blocktree/BlockTreeTermsWriter$PendingTerm PendingTerm TermsWriter Zcom/groupbyinc/flux/common/apache/lucene/codecs/blocktree/AutoPrefixTermsWriter$PrefixTerm Ocom/groupbyinc/flux/common/apache/lucene/codecs/blocktree/AutoPrefixTermsWriter
PrefixTerm \com/groupbyinc/flux/common/apache/lucene/codecs/blocktree/BlockTreeTermsWriter$FieldMetaData
FieldMetaData fieldInfo :Lcom/groupbyinc/flux/common/apache/lucene/index/FieldInfo; longsSize I numTerms J docsSeen ;Lcom/groupbyinc/flux/common/apache/lucene/util/FixedBitSet; sumTotalTermFreq
sumDocFreq indexStartFP lastTerm ?Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRefBuilder; prefixStarts [I longs [J pending Ljava/util/List; oLjava/util/List; newBlocks oLjava/util/List; firstPendingTerm \Lcom/groupbyinc/flux/common/apache/lucene/codecs/blocktree/BlockTreeTermsWriter$PendingTerm; lastPendingTerm suffixWriter @Lcom/groupbyinc/flux/common/apache/lucene/store/RAMOutputStream; statsWriter
metaWriter bytesWriter $assertionsDisabled Z this$0 PLcom/groupbyinc/flux/common/apache/lucene/codecs/blocktree/BlockTreeTermsWriter; writeBlocks (II)V java/io/IOException > 8 9 @ java/lang/AssertionError B ()V D E
C F + , H java/util/List J size ()I L M K N get (I)Ljava/lang/Object; P Q K R isTerm T 9 U termBytes [B W X Y java/lang/StringBuilder [
\ F i= ^ append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ` a
\ b (I)Ljava/lang/StringBuilder; ` d
\ e lastSuffixLeadLabel= g toString ()Ljava/lang/String; i j
\ k (Ljava/lang/Object;)V D m
C n prefix 8Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef; p q r 6com/groupbyinc/flux/common/apache/lucene/util/BytesRef t length v u w bytes y X u z offset | u } : ; minItemsInBlock ? ? maxItemsInBlock ? ? . , ?
writeBlock g(IZIIIZZZ)Lcom/groupbyinc/flux/common/apache/lucene/codecs/blocktree/BlockTreeTermsWriter$PendingBlock; ? ?
? add (Ljava/lang/Object;)Z ? ? K ?
prefixTerm \Lcom/groupbyinc/flux/common/apache/lucene/codecs/blocktree/AutoPrefixTermsWriter$PrefixTerm; ? ? ? isEmpty ()Z ? ? K ? isFloor ? 9 ?
access$000 ?(Lcom/groupbyinc/flux/common/apache/lucene/codecs/blocktree/BlockTreeTermsWriter;)Lcom/groupbyinc/flux/common/apache/lucene/store/RAMOutputStream; ? ?
?
access$100 ?(Lcom/groupbyinc/flux/common/apache/lucene/codecs/blocktree/BlockTreeTermsWriter;)Lcom/groupbyinc/flux/common/apache/lucene/util/IntsRefBuilder; ? ?
? compileIndex ?(Ljava/util/List;Lcom/groupbyinc/flux/common/apache/lucene/store/RAMOutputStream;Lcom/groupbyinc/flux/common/apache/lucene/util/IntsRefBuilder;)V ? ?
? subList (II)Ljava/util/List; ? ? K ? clear ? E K ? suffixLeadLabel term block ]Lcom/groupbyinc/flux/common/apache/lucene/codecs/blocktree/BlockTreeTermsWriter$PendingBlock; itemsInBlock ent ]Lcom/groupbyinc/flux/common/apache/lucene/codecs/blocktree/BlockTreeTermsWriter$PendingEntry; i this \Lcom/groupbyinc/flux/common/apache/lucene/codecs/blocktree/BlockTreeTermsWriter$TermsWriter; prefixLength count lastSuffixLeadLabel hasTerms hasPrefixTerms hasSubBlocks start end nextBlockStart nextFloorLeadLabel
firstBlock
access$200 ?(Lcom/groupbyinc/flux/common/apache/lucene/codecs/blocktree/BlockTreeTermsWriter;)Lcom/groupbyinc/flux/common/apache/lucene/store/IndexOutput; ? ?
? :com/groupbyinc/flux/common/apache/lucene/store/IndexOutput ? getFilePointer ()J ? ?
? ? (I)V D ?
u ? % & ? =com/groupbyinc/flux/common/apache/lucene/util/BytesRefBuilder ? :()Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef; P ?
? ? java/lang/System ? arraycopy *(Ljava/lang/Object;ILjava/lang/Object;II)V ? ?
? ? writeVInt ? ?
? ? :com/groupbyinc/flux/common/apache/lucene/util/StringHelper ?
startsWith =([BLcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;)Z ? ?
? ?
term.term= ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ` ?
\ ? prefix= ? state @Lcom/groupbyinc/flux/common/apache/lucene/codecs/BlockTermState; ? ? ? 3 4 ? >com/groupbyinc/flux/common/apache/lucene/store/RAMOutputStream ?
? ?
writeBytes ([BII)V ? ?
? ? >com/groupbyinc/flux/common/apache/lucene/codecs/BlockTermState ? 5 4 ? docFreq ? ? 8com/groupbyinc/flux/common/apache/lucene/index/FieldInfo getIndexOptions ?()Lcom/groupbyinc/flux/common/apache/lucene/index/IndexOptions;
;com/groupbyinc/flux/common/apache/lucene/index/IndexOptions
DOCS =Lcom/groupbyinc/flux/common/apache/lucene/index/IndexOptions;
totalTermFreq ? (J)Ljava/lang/StringBuilder; `
\ vs
writeVLong (J)V
? postingsWriter DLcom/groupbyinc/flux/common/apache/lucene/codecs/PostingsWriterBase; ) * 7 4 " Bcom/groupbyinc/flux/common/apache/lucene/codecs/PostingsWriterBase$
encodeTerm ?([JLcom/groupbyinc/flux/common/apache/lucene/store/DataOutput;Lcom/groupbyinc/flux/common/apache/lucene/index/FieldInfo;Lcom/groupbyinc/flux/common/apache/lucene/codecs/BlockTermState;Z)V&'
%( * 6 4 , writeTo >(Lcom/groupbyinc/flux/common/apache/lucene/store/DataOutput;)V./
?0 reset2 E
?3 java/util/ArrayList5
6 F minItemsInAutoPrefix8 9 floorLeadEnd; < floorLeadStart> ? writeByte (B)VAB
?C s(Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;)Z ?E
?F floorLeadLabel=H suffixLead=J fpL M index 7Lcom/groupbyinc/flux/common/apache/lucene/util/fst/FST;OP Q
? ? O(Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;JZZILjava/util/List;)V DT
U pos suffix
subIndices ?Ljava/util/List;>; sawAutoPrefixTerm floorLeadLabel startFP hasFloorLeadLabel
numEntries code isLeafBlock absolute ?(Lcom/groupbyinc/flux/common/apache/lucene/codecs/blocktree/BlockTreeTermsWriter;Lcom/groupbyinc/flux/common/apache/lucene/index/FieldInfo;)V
F
? F ' ( f
? F NONEi
j 9com/groupbyinc/flux/common/apache/lucene/util/FixedBitSetl maxDocn o
m ? ! r setField =(Lcom/groupbyinc/flux/common/apache/lucene/index/FieldInfo;)Itu
%v write ?(Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;Lcom/groupbyinc/flux/common/apache/lucene/index/TermsEnum;Lcom/groupbyinc/flux/common/apache/lucene/codecs/blocktree/AutoPrefixTermsWriter$PrefixTerm;)V writeTerm ?(Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;Lcom/groupbyinc/flux/common/apache/lucene/index/TermsEnum;Lcom/groupbyinc/flux/common/apache/lucene/util/FixedBitSet;)Lcom/groupbyinc/flux/common/apache/lucene/codecs/BlockTermState;z{
%| postingsWriter=~ pushTerm ;(Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;)V??
? ?(Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;Lcom/groupbyinc/flux/common/apache/lucene/codecs/BlockTermState;Lcom/groupbyinc/flux/common/apache/lucene/codecs/blocktree/AutoPrefixTermsWriter$PrefixTerm;)V D?
? # ? " ? ? 0 1 ? 2 1 ? text termsEnum :Lcom/groupbyinc/flux/common/apache/lucene/index/TermsEnum; v M
?? java/lang/Math? min (II)I??
?? byteAt (I)B??
?? <