
com.groupbyinc.flux.index.query.IdsQueryParser.class Maven / Gradle / Ivy
???? 3 ? .com/groupbyinc/flux/index/query/IdsQueryParser java/lang/Object +com/groupbyinc/flux/index/query/QueryParser IdsQueryParser.java 8com/groupbyinc/flux/common/xcontent/XContentParser$Token 2com/groupbyinc/flux/common/xcontent/XContentParser
Token NAME Ljava/lang/String; ids ()V *Lcom/groupbyinc/flux/common/inject/Inject;
this 0Lcom/groupbyinc/flux/index/query/IdsQueryParser; names ()[Ljava/lang/String; java/lang/String parse l(Lcom/groupbyinc/flux/index/query/QueryParseContext;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query; java/io/IOException 5com/groupbyinc/flux/index/query/QueryParsingException 1com/groupbyinc/flux/index/query/QueryParseContext " parser 6()Lcom/groupbyinc/flux/common/xcontent/XContentParser; $ %
# & java/util/ArrayList (
) java/util/List + java/util/Collection - nextToken <()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; / 0 1
END_OBJECT :Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; 3 4 5
FIELD_NAME 7 4 8 currentName ()Ljava/lang/String; : ; < START_ARRAY > 4 ? values A equals (Ljava/lang/Object;)Z C D
E END_ARRAY G 4 H VALUE_STRING J 4 K VALUE_NUMBER M 4 N utf8BytesOrNull :()Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef; P Q R "No value specified for term filter T [(Lcom/groupbyinc/flux/index/query/QueryParseContext;Ljava/lang/String;[Ljava/lang/Object;)V V
! W 6com/groupbyinc/flux/common/apache/lucene/util/BytesRef Y add [ D , \ java/lang/StringBuilder ^
_ 9Illegal value for id, expecting a string or number, got: a append -(Ljava/lang/String;)Ljava/lang/StringBuilder; c d
_ e -(Ljava/lang/Object;)Ljava/lang/StringBuilder; c g
_ h toString j ;
_ k types m type o
textOrNull q ; r !No type specified for term filter t . \ [ids] query does not support [ w ] y isValue ()Z { |
} _type text ? ; ? java/util/Collections ?
singletonList $(Ljava/lang/Object;)Ljava/util/List; ? ?
? ? boost ?
floatValue ()F ? ? ? _name ? #[ids] query, no ids values provided ? isEmpty ? | , ? 0com/groupbyinc/flux/common/lucene/search/Queries ? newMatchNoDocsQuery 9()Lcom/groupbyinc/flux/common/apache/lucene/search/Query; ? ?
? ? . ?
queryTypes ()Ljava/util/Collection; ? ?
# ? size ()I ? ? . ? :com/groupbyinc/flux/common/google/common/collect/Iterables ? getFirst :(Ljava/lang/Iterable;Ljava/lang/Object;)Ljava/lang/Object; ? ?
? ? _all ?
mapperService 2()Lcom/groupbyinc/flux/index/mapper/MapperService; ? ?
# ? .com/groupbyinc/flux/index/mapper/MapperService ? m ?
? ? ;com/groupbyinc/flux/common/apache/lucene/queries/TermsQuery ? _uid ? $com/groupbyinc/flux/index/mapper/Uid ? createUidsForTypesAndIds g(Ljava/util/Collection;Ljava/util/Collection;)[Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef; ? ?
? ? N(Ljava/lang/String;[Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;)V ?
? ? setBoost (F)V ? ?
? ?
addNamedQuery L(Ljava/lang/String;Lcom/groupbyinc/flux/common/apache/lucene/search/Query;)V ? ?
# ? value 8Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef; parseContext 3Lcom/groupbyinc/flux/index/query/QueryParseContext; 4Lcom/groupbyinc/flux/common/xcontent/XContentParser; JLjava/util/List; Ljava/util/List; *Ljava/util/Collection; Ljava/util/Collection; currentFieldName F queryName token idsProvided Z query =Lcom/groupbyinc/flux/common/apache/lucene/queries/TermsQuery;
ConstantValue Code LocalVariableTable LineNumberTable RuntimeVisibleAnnotations LocalVariableTypeTable
StackMapTable
Exceptions
SourceFile InnerClasses !
? ? 3 *? ? ? ?
/ 0 ? ? 4
? YS? ?
? 4 ? 6+? 'M? )Y? *N::8:6,? 2 Y: ? 6?? ? 9? ,? = :??? ? @? ?B? F? n6,? 2 Y: ? I??? ? L? ? O? +,? S :
? ? !Y+U? ? X?-
? ] W???? !Y+? _Y? `b? f ? i? l? ? X?n? F?
p? F? D? )Y? *:,? 2 Y: ? I??8,? s :
? ? !Y+u? ? X?
? v W??˻ !Y+? _Y? `x? f? fz? f? l? ? X? ? ~???p? F?
?? F? ,? ? ? ?:????? F? ,? ? 8????? F? ,? ? :???? !Y+? _Y? `x? f? fz? f? l? ? X?? ? !Y+?? ? X?-? ? ? ? ???
? ? ? +? ?:? (? ? ? ? ?? ?? F? +? ?? ?:? ?Y?-? ?? ?:
? ?? +
? ?
? ? ?
z ? ?
? ?
6 6 ? ? 1 $ ?
) ? &