com.groupbyinc.flux.index.query.TermsQueryBuilder.class Maven / Gradle / Ivy
???? 4? 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 DEPRECATION_LOGGER 6Lcom/groupbyinc/flux/common/logging/DeprecationLogger; 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 7 9
: this 3Lcom/groupbyinc/flux/index/query/TermsQueryBuilder; ()V 7 >
? "com/groupbyinc/flux/common/Strings A isEmpty (Ljava/lang/CharSequence;)Z C D
B E "java/lang/IllegalArgumentException G field name cannot be null. I (Ljava/lang/String;)V 7 K
H L java/lang/String N java/util/List P 'com/groupbyinc/flux/indices/TermsLookup R 1No value or termsLookup specified for terms query T 5Both values and termsLookup specified for terms query V ) & X convert "(Ljava/util/List;)Ljava/util/List; Z [
\ * + ^ - . ` / 0 b $Ljava/util/List; ((Ljava/lang/String;[Ljava/lang/String;)V java/util/Arrays f asList %([Ljava/lang/Object;)Ljava/util/List; h i
g j [Ljava/lang/String; l java/lang/Iterable n )(Ljava/lang/String;Ljava/lang/Iterable;)V 7 p
q (Ljava/lang/String;[I)V stream ([I)Ljava/util/stream/IntStream; t u
g v "java/lang/invoke/LambdaMetafactory x 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; z {
y | } (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; t ?
g ? (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; t ?
g ? (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; Z ?
? 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 ? 7 ?
? 0com/groupbyinc/flux/common/io/stream/StreamInput ?
readString ()Ljava/lang/String; ? ?
? ? F(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Ljava/lang/Object; ?
S ? ? ](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?
L 1com/groupbyinc/flux/common/io/stream/StreamOutput
writeString K
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 [
+()Lcom/groupbyinc/flux/indices/TermsLookup; java/util/ArrayList!
" ? iterator ()Ljava/util/Iterator;$% o& java/util/Iterator( hasNext ()Z*+), next.)/ add (Ljava/lang/Object;)Z12
"3 list o Ljava/lang/Object; arrayList )Ljava/util/ArrayList; Ljava/util/ArrayList; java/lang/Throwable; C+ Q= java/util/Collections? emptyListA
@B ()Ljava/util/stream/Stream; tD QE2 lambda$convert$4H2
IJ test ()Ljava/util/function/Predicate;LM N allMatch !(Ljava/util/function/Predicate;)ZPQ ?R (Ljava/lang/Object;)JT lambda$convert$5VT
WX applyAsLong %()Ljava/util/function/ToLongFunction;Z[ \ mapToLong B(Ljava/util/function/ToLongFunction;)Ljava/util/stream/LongStream;^_ ?` toArray ()[Jbc ?d ([J)V 7f
g lambda$convert$6i2
jk N =com/groupbyinc/flux/common/apache/lucene/util/BytesRefBuildern
o ? 6com/groupbyinc/flux/common/io/stream/BytesStreamOutputq
r ? size ()Itu Qv Q& 6com/groupbyinc/flux/common/apache/lucene/util/BytesRefy java/lang/Object{ java/nio/CharBuffer} (Ljava/lang/CharSequence;)V 7
z? toString? ?
|? copyChars?
o? get :()Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;??
o? bytes [B?? z? offset I?? z? length?? z?
writeBytes ([BII)V??
r? java/lang/Math? addExact (II)I??
?? 3()Lcom/groupbyinc/flux/common/bytes/BytesReference;??
r? 6([ILcom/groupbyinc/flux/common/bytes/BytesReference;)V 7?
? close? >
r? /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 7?
?
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;??
S? 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 7
? 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;
S isValue+
BOOST_FIELD 'Lcom/groupbyinc/flux/common/ParseField;"# $ getDeprecationHandler :()Lcom/groupbyinc/flux/common/xcontent/DeprecationHandler;&' ( %com/groupbyinc/flux/common/ParseField* match M(Ljava/lang/String;Lcom/groupbyinc/flux/common/xcontent/DeprecationHandler;)Z,-
+.
floatValue ()F01 2
NAME_FIELD4# 5 text7 ? 8 [terms] query does not support [: [terms] unknown token [< -(Ljava/lang/Object;)Ljava/lang/StringBuilder;>
? ] after [A b[terms] query requires a field name, followed by array of terms or a document lookup specificationC boost 9(F)Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder;EF
G queryName J(Ljava/lang/String;)Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder;IJ
K parser 4Lcom/groupbyinc/flux/common/xcontent/XContentParser; F token currentFieldName END_ARRAYR? S objectBytesU V maybeConvertToBytesRefX?
Y Q3 value getWriteableName doToQuery l(Lcom/groupbyinc/flux/index/query/QueryShardContext;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query; 'java/lang/UnsupportedOperationException` query must be rewritten firstb
a L No terms supplied for "e getNameg ?
h " query.j 0com/groupbyinc/flux/common/lucene/search/Queriesl newMatchNoDocsQuery K(Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query;no
mp 1com/groupbyinc/flux/index/query/QueryShardContextr getIndexSettings +()Lcom/groupbyinc/flux/index/IndexSettings;tu
sv 'com/groupbyinc/flux/index/IndexSettingsx getMaxTermsCountzu
y{ # $ } !Deprecated: the number of terms [ (I)Ljava/lang/StringBuilder;?
? G] used in the Terms Query request has exceeded the allowed maximum of [? ,]. This maximum can be set by changing the [? MAX_TERMS_COUNT_SETTING -Lcom/groupbyinc/flux/common/settings/Setting;?? y? +com/groupbyinc/flux/common/settings/Setting? getKey? ?
?? ] index level setting.? 4com/groupbyinc/flux/common/logging/DeprecationLogger?
deprecated? ?
?? fieldMapper F(Ljava/lang/String;)Lcom/groupbyinc/flux/index/mapper/MappedFieldType;??
s? 0com/groupbyinc/flux/index/mapper/MappedFieldType?
termsQuery |(Ljava/util/List;Lcom/groupbyinc/flux/index/query/QueryShardContext;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query;??
?? 9[Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;?? Q? +com/groupbyinc/flux/common/lucene/BytesRefs?
toBytesRef L(Ljava/lang/Object;)Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;??
?? >com/groupbyinc/flux/common/apache/lucene/search/TermInSetQuery? N(Ljava/lang/String;[Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;)V 7?
?? filterValues context 3Lcom/groupbyinc/flux/index/query/QueryShardContext;
maxTermsCount 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? ?
S? type? ?
S? id? ?
S? 9(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V 7?
?? _local?
preference ?(Ljava/lang/String;)Lcom/groupbyinc/flux/action/get/GetRequest;??
?? routing? ?
S???
?? ?(Lcom/groupbyinc/flux/index/query/TermsQueryBuilder;Lcom/groupbyinc/flux/indices/TermsLookup;Lcom/groupbyinc/flux/action/ActionListener;)V 7?
? !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
requireNonNull
?
?
?? V(Lcom/groupbyinc/flux/common/apache/lucene/util/SetOnce;)Ljava/util/function/Supplier;?
7 ?
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$doRewrite$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;2 3 wrap v(Lcom/groupbyinc/flux/common/CheckedConsumer;Ljava/util/function/Consumer;)Lcom/groupbyinc/flux/action/ActionListener;56+7??
9 listener java/lang/Exception< set>
??
onResponseA+B 5 3 D getClass ()Ljava/lang/Class;FG
|H
java/util/SetJ containsL2KM java/lang/NumberO longValue ()JQR
PS 2 3 U java/lang/DoubleW valueOfY ?
XZ s D java/lang/Float^ (F)Ljava/lang/Float;Y`
_a java/lang/LongcY ?
de J java/lang/IntegerhY ?
ij *com/groupbyinc/flux/common/logging/Loggersm getLogger 4(Ljava/lang/Class;)Lorg/apache/logging/log4j/Logger;op
nq $(Lorg/apache/logging/log4j/Logger;)V 7s
?t java/util/HashSetv java/lang/Classx java/lang/Bytez java/lang/Short| (Ljava/util/Collection;)V 7~
w
ConstantValue Signature Code LocalVariableTable LineNumberTable LocalVariableTypeTable
StackMapTable b(Ljava/lang/String;Ljava/util/List;Lcom/groupbyinc/flux/indices/TermsLookup;)V ,(Ljava/lang/String;Ljava/lang/Iterable<*>;)V G(Ljava/lang/String;Ljava/util/function/Supplier;>;)V
Exceptions &()Ljava/util/List; ,(Ljava/lang/Iterable<*>;)Ljava/util/List<*>; ((Ljava/util/List<*>;)Ljava/util/List<*>; 9(Ljava/util/List<*>;)Ljava/util/List; Z(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Ljava/util/List; ?(Lcom/groupbyinc/flux/indices/TermsLookup;Lcom/groupbyinc/flux/client/Client;Lcom/groupbyinc/flux/action/ActionListener;>;)V BootstrapMethods
SourceFile InnerClasses ! # $ % &