com.groupbyinc.flux.common.apache.lucene.search.TermAutomatonQuery.class Maven / Gradle / Ivy
???? 4? Bcom/groupbyinc/flux/common/apache/lucene/search/TermAutomatonQuery 5com/groupbyinc/flux/common/apache/lucene/search/Query TermAutomatonQuery.java Vcom/groupbyinc/flux/common/apache/lucene/search/TermAutomatonQuery$TermAutomatonWeight TermAutomatonWeight Pcom/groupbyinc/flux/common/apache/lucene/search/TermAutomatonQuery$EnumAndScorer
EnumAndScorer Icom/groupbyinc/flux/common/apache/lucene/util/automaton/Automaton$Builder Acom/groupbyinc/flux/common/apache/lucene/util/automaton/Automaton Builder java/util/Map$Entry
java/util/Map Entry Hcom/groupbyinc/flux/common/apache/lucene/search/MultiPhraseQuery$Builder @com/groupbyinc/flux/common/apache/lucene/search/MultiPhraseQuery Ccom/groupbyinc/flux/common/apache/lucene/search/PhraseQuery$Builder ;com/groupbyinc/flux/common/apache/lucene/search/PhraseQuery field Ljava/lang/String; builder KLcom/groupbyinc/flux/common/apache/lucene/util/automaton/Automaton$Builder; det CLcom/groupbyinc/flux/common/apache/lucene/util/automaton/Automaton; termToID Ljava/util/Map; \Ljava/util/Map; idToTerm \Ljava/util/Map; anyTermID I $assertionsDisabled Z (Ljava/lang/String;)V ()V - /
0 java/util/HashMap 2
3 0 $ % 5 ' % 7 ) * 9 ;
0 ! > this DLcom/groupbyinc/flux/common/apache/lucene/search/TermAutomatonQuery; createState ()I B C
D setAccept (IZ)V F G
H state accept
addTransition (IILjava/lang/String;)V 6com/groupbyinc/flux/common/apache/lucene/util/BytesRef N (Ljava/lang/CharSequence;)V - P
O Q =(IILcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;)V L S
T source dest term java/lang/NullPointerException Y term should not be null [ - .
Z ] getTermID ;(Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;)I _ `
a (III)V L c
d 8Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef; addAnyTransition (II)V finish (I)V i j
k E()Lcom/groupbyinc/flux/common/apache/lucene/util/automaton/Automaton; i m
n Bcom/groupbyinc/flux/common/apache/lucene/util/automaton/Transition p
q 0 initTransition H(ILcom/groupbyinc/flux/common/apache/lucene/util/automaton/Transition;)I s t
u getNextTransition G(Lcom/groupbyinc/flux/common/apache/lucene/util/automaton/Transition;)V w x
y min { * q | max ~ * q java/lang/IllegalStateException ? ,automaton cannot lead with an ANY transition ?
? ] getNumStates ? C
? W * q ? isAccept (I)Z ? ?
? +automaton cannot end with an ANY transition ? size ? C ?
0
D
H V * q ? (IIII)V L ?
? finishState ? /
? Bcom/groupbyinc/flux/common/apache/lucene/util/automaton/Operations ? determinize ?(Lcom/groupbyinc/flux/common/apache/lucene/util/automaton/Automaton;I)Lcom/groupbyinc/flux/common/apache/lucene/util/automaton/Automaton; ? ?
? ? removeDeadStates ?(Lcom/groupbyinc/flux/common/apache/lucene/util/automaton/Automaton;)Lcom/groupbyinc/flux/common/apache/lucene/util/automaton/Automaton; ? ?
? ? " # ? cannot accept the empty string ? i j count numStates termCount newAutomaton maxDeterminizedStates automaton t DLcom/groupbyinc/flux/common/apache/lucene/util/automaton/Transition; createWeight {(Lcom/groupbyinc/flux/common/apache/lucene/search/IndexSearcher;ZF)Lcom/groupbyinc/flux/common/apache/lucene/search/Weight; java/io/IOException ? =com/groupbyinc/flux/common/apache/lucene/search/IndexSearcher ? getTopReaderContext E()Lcom/groupbyinc/flux/common/apache/lucene/index/IndexReaderContext; ? ?
? ? entrySet ()Ljava/util/Set; ? ? ?
java/util/Set ? iterator ()Ljava/util/Iterator; ? ? ? ? Acom/groupbyinc/flux/common/apache/lucene/index/IndexReaderContext ? java/util/Iterator ? hasNext ()Z ? ? ? ? next ()Ljava/lang/Object; ? ? ? ? getKey ? ? ? getValue ? ? ? 3com/groupbyinc/flux/common/apache/lucene/index/Term ? M(Ljava/lang/String;Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;)V - ?
? ? :com/groupbyinc/flux/common/apache/lucene/index/TermContext ? build ?(Lcom/groupbyinc/flux/common/apache/lucene/index/IndexReaderContext;Lcom/groupbyinc/flux/common/apache/lucene/index/Term;)Lcom/groupbyinc/flux/common/apache/lucene/index/TermContext; ? ?
? ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? ?(Lcom/groupbyinc/flux/common/apache/lucene/search/TermAutomatonQuery;Lcom/groupbyinc/flux/common/apache/lucene/util/automaton/Automaton;Lcom/groupbyinc/flux/common/apache/lucene/search/IndexSearcher;Ljava/util/Map;F)V - ?
? ent bLjava/util/Map$Entry; Ljava/util/Map$Entry; searcher ?Lcom/groupbyinc/flux/common/apache/lucene/search/IndexSearcher; needsScores boost F context CLcom/groupbyinc/flux/common/apache/lucene/index/IndexReaderContext;
termStates `Ljava/util/Map; toString &(Ljava/lang/String;)Ljava/lang/String; java/lang/StringBuilder ?
? 0 TermAutomatonQuery(field= append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
? numStates= (I)Ljava/lang/StringBuilder;
? (C)Ljava/lang/StringBuilder;
? ()Ljava/lang/String; ?
? sb Ljava/lang/StringBuilder; get &(Ljava/lang/Object;)Ljava/lang/Object; java/lang/Integer valueOf (I)Ljava/lang/Integer;
deepCopyOf r(Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;)Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;
O intValue! C
" id Ljava/lang/Integer; equals (Ljava/lang/Object;)Z sameClassAs('
) java/lang/Object+ getClass ()Ljava/lang/Class;-.
,/ java/lang/Class1 cast3
24 equalsTo G(Lcom/groupbyinc/flux/common/apache/lucene/search/TermAutomatonQuery;)Z67
8 other Ljava/lang/Object;
checkFinished Call finish first on: = -(Ljava/lang/Object;)Ljava/lang/StringBuilder;?
?@ q<7
C hashCode java/lang/SystemF identityHashCode (Ljava/lang/Object;)IHI
GJ toDot digraph Automaton {
M rankdir = LR
O & initial [shape=plaintext,label="0"]
Q initial -> 0
S U [shape=doublecircle,label="W "]
Y [shape=circle,label="[ + , ] java/lang/AssertionError_
` 0 -> b [label="d utf8ToStringf
Og numTransitions b rewrite u(Lcom/groupbyinc/flux/common/apache/lucene/index/IndexReader;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query; isEmpty F(Lcom/groupbyinc/flux/common/apache/lucene/util/automaton/Automaton;)Zmn
?o @com/groupbyinc/flux/common/apache/lucene/search/MatchNoDocsQueryq
r 0 getSingleton |(Lcom/groupbyinc/flux/common/apache/lucene/util/automaton/Automaton;)Lcom/groupbyinc/flux/common/apache/lucene/util/IntsRef;tu
?v 5com/groupbyinc/flux/common/apache/lucene/util/IntsRefx lengthz * y{ 9com/groupbyinc/flux/common/apache/lucene/search/TermQuery} ints [I? y? offset? * y? 8(Lcom/groupbyinc/flux/common/apache/lucene/index/Term;)V -?
~?
0
0 :com/groupbyinc/flux/common/apache/lucene/index/IndexReader? java/util/ArrayList?
? 0 java/util/List? add?'??? ? toArray (([Ljava/lang/Object;)[Ljava/lang/Object;???? 6[Lcom/groupbyinc/flux/common/apache/lucene/index/Term;? ?([Lcom/groupbyinc/flux/common/apache/lucene/index/Term;I)Lcom/groupbyinc/flux/common/apache/lucene/search/MultiPhraseQuery$Builder;??
? (I)Ljava/lang/Object;??? }(Lcom/groupbyinc/flux/common/apache/lucene/index/Term;I)Lcom/groupbyinc/flux/common/apache/lucene/search/PhraseQuery$Builder;??
? ?()Lcom/groupbyinc/flux/common/apache/lucene/search/PhraseQuery; ??
? D()Lcom/groupbyinc/flux/common/apache/lucene/search/MultiPhraseQuery; ??
? termID terms GLjava/util/List; Ljava/util/List;
matchesAny reader