com.groupbyinc.flux.index.query.TermsQueryBuilder.class Maven / Gradle / Ivy
???? 4Y 1com/groupbyinc/flux/index/query/TermsQueryBuilder kLcom/groupbyinc/flux/index/query/AbstractQueryBuilder; 4com/groupbyinc/flux/index/query/AbstractQueryBuilder TermsQueryBuilder.java 3com/groupbyinc/flux/index/query/TermsQueryBuilder$4 3com/groupbyinc/flux/index/query/TermsQueryBuilder$3 3com/groupbyinc/flux/index/query/TermsQueryBuilder$2 3com/groupbyinc/flux/index/query/TermsQueryBuilder$1
5com/groupbyinc/flux/common/xcontent/ToXContent$Params .com/groupbyinc/flux/common/xcontent/ToXContent Params 8com/groupbyinc/flux/common/xcontent/XContentParser$Token 2com/groupbyinc/flux/common/xcontent/XContentParser Token 5com/groupbyinc/flux/common/io/stream/Writeable$Reader .com/groupbyinc/flux/common/io/stream/Writeable Reader %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup NAME Ljava/lang/String; terms % fieldName values Ljava/util/List; Ljava/util/List<*>; termsLookup )Lcom/groupbyinc/flux/indices/TermsLookup; supplier Ljava/util/function/Supplier; 2Ljava/util/function/Supplier;>;
INTEGER_TYPES Ljava/util/Set; 7Ljava/util/Set;>; STRING_TYPES %Ljava/util/Set;>; >(Ljava/lang/String;Lcom/groupbyinc/flux/indices/TermsLookup;)V N(Ljava/lang/String;Ljava/util/List;Lcom/groupbyinc/flux/indices/TermsLookup;)V 5 7
8 this 3Lcom/groupbyinc/flux/index/query/TermsQueryBuilder; ()V 5 <
= "com/groupbyinc/flux/common/Strings ? isEmpty (Ljava/lang/CharSequence;)Z A B
@ C "java/lang/IllegalArgumentException E field name cannot be null. G (Ljava/lang/String;)V 5 I
F J java/lang/String L java/util/List N 'com/groupbyinc/flux/indices/TermsLookup P 1No value or termsLookup specified for terms query R 5Both values and termsLookup specified for terms query T ' $ V convert "(Ljava/util/List;)Ljava/util/List; X Y
Z ( ) \ + , ^ - . ` $Ljava/util/List; ((Ljava/lang/String;[Ljava/lang/String;)V java/util/Arrays d asList %([Ljava/lang/Object;)Ljava/util/List; f g
e h [Ljava/lang/String; j java/lang/Iterable l )(Ljava/lang/String;Ljava/lang/Iterable;)V 5 n
o (Ljava/lang/String;[I)V stream ([I)Ljava/util/stream/IntStream; r s
e t "java/lang/invoke/LambdaMetafactory v metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; x y
w z { (I)Ljava/lang/Object; } lambda$new$0 (I)Ljava/lang/Integer; ?
? ? ? apply "()Ljava/util/function/IntFunction; ? ? ? java/util/stream/IntStream ? mapToObj ;(Ljava/util/function/IntFunction;)Ljava/util/stream/Stream; ? ? ? ? java/util/stream/Collectors ? toList ()Ljava/util/stream/Collector; ? ?
? ? java/util/stream/Stream ? collect 0(Ljava/util/stream/Collector;)Ljava/lang/Object; ? ? ? ? [I ? (Ljava/lang/String;[J)V !([J)Ljava/util/stream/LongStream; r ?
e ? (J)Ljava/lang/Object; ? lambda$new$1 (J)Ljava/lang/Long; ? ?
? ? ? #()Ljava/util/function/LongFunction; ? ? ? java/util/stream/LongStream ? <(Ljava/util/function/LongFunction;)Ljava/util/stream/Stream; ? ? ? ? [J ? (Ljava/lang/String;[F)V range (II)Ljava/util/stream/IntStream; ? ? ? ? lambda$new$2 ([FI)Ljava/lang/Float; ? ?
? ? (I)Ljava/lang/Float; ? $([F)Ljava/util/function/IntFunction; ? ? ? [F ? (Ljava/lang/String;[D)V #([D)Ljava/util/stream/DoubleStream; r ?
e ? (D)Ljava/lang/Object; ? lambda$new$3 (D)Ljava/lang/Double; ? ?
? ? ? %()Ljava/util/function/DoubleFunction; ? ? ? java/util/stream/DoubleStream ? >(Ljava/util/function/DoubleFunction;)Ljava/util/stream/Stream; ? ? ? ? [D ? ((Ljava/lang/String;[Ljava/lang/Object;)V [Ljava/lang/Object; ? "No value specified for terms query ? &(Ljava/lang/Iterable;)Ljava/util/List; X ?
? Ljava/lang/Iterable<*>; Ljava/lang/Iterable; 2(Ljava/lang/String;Ljava/util/function/Supplier;)V 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V java/io/IOException ? 5 ?
? 0com/groupbyinc/flux/common/io/stream/StreamInput ?
readString ()Ljava/lang/String; ? ?
? ? F(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Ljava/lang/Object; ?
Q ? ? ](Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/indices/TermsLookup; ? read 9()Lcom/groupbyinc/flux/common/io/stream/Writeable$Reader; ? ? ? readOptionalWriteable i(Lcom/groupbyinc/flux/common/io/stream/Writeable$Reader;)Lcom/groupbyinc/flux/common/io/stream/Writeable; ? ?
? ? readGenericValue ()Ljava/lang/Object; ? ?
? in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; doWriteTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V java/lang/IllegalStateException Lsupplier must be null, can't serialize suppliers, missing a rewriteAndFetch?
J 1com/groupbyinc/flux/common/io/stream/StreamOutput writeString
I
writeOptionalWriteable 3(Lcom/groupbyinc/flux/common/io/stream/Writeable;)V
writeGenericValue (Ljava/lang/Object;)V
out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; ()Ljava/util/List; convertBack Y
+()Lcom/groupbyinc/flux/indices/TermsLookup; java/util/ArrayList
= iterator ()Ljava/util/Iterator;"# m$ java/util/Iterator& hasNext ()Z()'* next, ?'- add (Ljava/lang/Object;)Z/0
1 list o Ljava/lang/Object; arrayList )Ljava/util/ArrayList; Ljava/util/ArrayList; java/lang/Throwable9 A) O; java/util/Collections= emptyList?
>@ ()Ljava/util/stream/Stream; rB OC0 lambda$convert$4F0
GH test ()Ljava/util/function/Predicate;JK L allMatch !(Ljava/util/function/Predicate;)ZNO ?P (Ljava/lang/Object;)JR lambda$convert$5TR
UV applyAsLong %()Ljava/util/function/ToLongFunction;XY Z mapToLong B(Ljava/util/function/ToLongFunction;)Ljava/util/stream/LongStream;\] ?^ toArray ()[J`a ?b ([J)V 5d
e lambda$convert$6g0
hi L =com/groupbyinc/flux/common/apache/lucene/util/BytesRefBuilderl
m = 6com/groupbyinc/flux/common/io/stream/BytesStreamOutputo
p = size ()Irs Ot O$ 6com/groupbyinc/flux/common/apache/lucene/util/BytesRefw java/lang/Objecty toString{ ?
z| copyChars (Ljava/lang/CharSequence;)V~
m? get :()Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;??
m? bytes [B?? x? offset I?? x? length?? x?
writeBytes ([BII)V??
p? java/lang/Math? addExact (II)I??
?? 3()Lcom/groupbyinc/flux/common/bytes/BytesReference;??
p? 6([ILcom/groupbyinc/flux/common/bytes/BytesReference;)V 5?
? close? <
p? /com/groupbyinc/flux/common/bytes/BytesReference?
addSuppressed (Ljava/lang/Throwable;)V??
:? &(Ljava/lang/Object;)Ljava/lang/Object;? lambda$convert$7??
?? ()Ljava/util/function/Function; ?? ? map 8(Ljava/util/function/Function;)Ljava/util/stream/Stream;?? ?? elements b 8Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;
endOffsets i 1Lcom/groupbyinc/flux/common/bytes/BytesReference; bytesOut 8Lcom/groupbyinc/flux/common/io/stream/BytesStreamOutput; builder ?Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRefBuilder;
allNumbers Z
allStrings (Ljava/util/List;)V 5?
?
doXContent o(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)V 3com/groupbyinc/flux/common/xcontent/XContentBuilder? startObject I(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
??
toXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
Q? endObject 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
?? field ](Ljava/lang/String;Ljava/lang/Iterable;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
?? printBoostAndQueryName 8(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)V??
? 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; fromXContent i(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/index/query/TermsQueryBuilder; nextToken <()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;?? ?
END_OBJECT :Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;?? ?
FIELD_NAME?? ? currentName? ? ? START_ARRAY?? ? +com/groupbyinc/flux/common/ParsingException? getTokenLocation 8()Lcom/groupbyinc/flux/common/xcontent/XContentLocation;?? ? .[terms] query does not support multiple fields? ^(Lcom/groupbyinc/flux/common/xcontent/XContentLocation;Ljava/lang/String;[Ljava/lang/Object;)V 5?
?? parseValues F(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Ljava/util/List;
START_OBJECT? java/lang/StringBuilder
= B[terms] query does not support more than one field. Already got: [
append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
] but also found [ ]
| parseTermsLookup _(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/indices/TermsLookup;
Q isValue)
BOOST_FIELD 'Lcom/groupbyinc/flux/common/ParseField; %com/groupbyinc/flux/common/ParseField match (Ljava/lang/String;)Z"#
!$
floatValue ()F&' (
NAME_FIELD* + text- ? . [terms] query does not support [0 [terms] unknown token [2 -(Ljava/lang/Object;)Ljava/lang/StringBuilder;4
5 ] after [7 b[terms] query requires a field name, followed by array of terms or a document lookup specification9 boost 9(F)Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder;;<
= queryName J(Ljava/lang/String;)Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder;?@
A parser 4Lcom/groupbyinc/flux/common/xcontent/XContentParser; F token currentFieldName END_ARRAYH? I objectBytesK ? L O1 value getWriteableName doToQuery l(Lcom/groupbyinc/flux/index/query/QueryShardContext;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query; 'java/lang/UnsupportedOperationExceptionS query must be rewritten firstU
T J No terms supplied for "X getNameZ ?
[ " query.] 0com/groupbyinc/flux/common/lucene/search/Queries_ newMatchNoDocsQuery K(Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query;ab
`c 1com/groupbyinc/flux/index/query/QueryShardContexte fieldMapper F(Ljava/lang/String;)Lcom/groupbyinc/flux/index/mapper/MappedFieldType;gh
fi 0com/groupbyinc/flux/index/mapper/MappedFieldTypek
termsQuery |(Ljava/util/List;Lcom/groupbyinc/flux/index/query/QueryShardContext;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query;mn
lo 9[Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;q? } Os +com/groupbyinc/flux/common/lucene/BytesRefsu
toBytesRef L(Ljava/lang/Object;)Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;wx
vy >com/groupbyinc/flux/common/apache/lucene/search/TermInSetQuery{ N(Ljava/lang/String;[Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;)V 5}
|~ filterValues context 3Lcom/groupbyinc/flux/index/query/QueryShardContext; fieldType 2Lcom/groupbyinc/flux/index/mapper/MappedFieldType; fetch z(Lcom/groupbyinc/flux/indices/TermsLookup;Lcom/groupbyinc/flux/client/Client;Lcom/groupbyinc/flux/action/ActionListener;)V )com/groupbyinc/flux/action/get/GetRequest? index? ?
Q? type? ?
Q? id? ?
Q? 9(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V 5?
?? _local?
preference ?(Ljava/lang/String;)Lcom/groupbyinc/flux/action/get/GetRequest;??
?? routing? ?
Q???
?? ?(Lcom/groupbyinc/flux/index/query/TermsQueryBuilder;Lcom/groupbyinc/flux/indices/TermsLookup;Lcom/groupbyinc/flux/action/ActionListener;)V 5?
? !com/groupbyinc/flux/client/Client? Y(Lcom/groupbyinc/flux/action/get/GetRequest;Lcom/groupbyinc/flux/action/ActionListener;)V???? client #Lcom/groupbyinc/flux/client/Client; actionListener QLcom/groupbyinc/flux/action/ActionListener;>; +Lcom/groupbyinc/flux/action/ActionListener;
getRequest +Lcom/groupbyinc/flux/action/get/GetRequest;
doHashCode java/util/Objects? hash ([Ljava/lang/Object;)I??
?? doEquals 6(Lcom/groupbyinc/flux/index/query/TermsQueryBuilder;)Z equals '(Ljava/lang/Object;Ljava/lang/Object;)Z??
?? other doRewrite e(Lcom/groupbyinc/flux/index/query/QueryRewriteContext;)Lcom/groupbyinc/flux/index/query/QueryBuilder; java/util/function/Supplier?? ??? ,com/groupbyinc/flux/index/query/QueryBuilder? 5com/groupbyinc/flux/common/apache/lucene/util/SetOnce?
? = '(Ljava/lang/Object;Ljava/lang/Object;)V? lambda$doRewrite$9 ?(Lcom/groupbyinc/flux/common/apache/lucene/util/SetOnce;Lcom/groupbyinc/flux/client/Client;Lcom/groupbyinc/flux/action/ActionListener;)V??
?? Q(Lcom/groupbyinc/flux/client/Client;Lcom/groupbyinc/flux/action/ActionListener;)V? accept ?(Lcom/groupbyinc/flux/index/query/TermsQueryBuilder;Lcom/groupbyinc/flux/common/apache/lucene/util/SetOnce;)Ljava/util/function/BiConsumer;?? ? 3com/groupbyinc/flux/index/query/QueryRewriteContext? registerAsyncAction "(Ljava/util/function/BiConsumer;)V??
?? getClass ()Ljava/lang/Class;??
z? ?
??? V(Lcom/groupbyinc/flux/common/apache/lucene/util/SetOnce;)Ljava/util/function/Supplier;??
? 5 ?
? LLcom/groupbyinc/flux/common/apache/lucene/util/SetOnce;>; 7Lcom/groupbyinc/flux/common/apache/lucene/util/SetOnce; queryRewriteContext 5Lcom/groupbyinc/flux/index/query/QueryRewriteContext; 9(Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder;)Z??
?
lambda$null$8 u(Lcom/groupbyinc/flux/common/apache/lucene/util/SetOnce;Lcom/groupbyinc/flux/action/ActionListener;Ljava/util/List;)V??
??? ?(Lcom/groupbyinc/flux/common/apache/lucene/util/SetOnce;Lcom/groupbyinc/flux/action/ActionListener;)Lcom/groupbyinc/flux/common/CheckedConsumer;?? ? )com/groupbyinc/flux/action/ActionListener? onFailure (Ljava/lang/Exception;)V???? ?? J(Lcom/groupbyinc/flux/action/ActionListener;)Ljava/util/function/Consumer;? wrap v(Lcom/groupbyinc/flux/common/CheckedConsumer;Ljava/util/function/Consumer;)Lcom/groupbyinc/flux/action/ActionListener;???
listener java/lang/Exception set
?
onResponse? 5
x 3 1
java/util/Set contains0 java/lang/Number longValue ()J
0 1 " java/lang/Double$ valueOf&