com.groupbyinc.flux.search.searchafter.SearchAfterBuilder.class Maven / Gradle / Ivy
???? 4? 9com/groupbyinc/flux/search/searchafter/SearchAfterBuilder java/lang/Object 4com/groupbyinc/flux/common/xcontent/ToXContentObject .com/groupbyinc/flux/common/io/stream/Writeable SearchAfterBuilder.java ;com/groupbyinc/flux/search/searchafter/SearchAfterBuilder$1
>com/groupbyinc/flux/common/apache/lucene/search/SortField$Type 9com/groupbyinc/flux/common/apache/lucene/search/SortField Type Icom/groupbyinc/flux/index/fielddata/IndexFieldData$XFieldComparatorSource 2com/groupbyinc/flux/index/fielddata/IndexFieldData XFieldComparatorSource 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 =com/groupbyinc/flux/common/xcontent/XContentParser$NumberType
NumberType SEARCH_AFTER 'Lcom/groupbyinc/flux/common/ParseField; EMPTY_SORT_VALUES [Ljava/lang/Object;
sortValues ()V ( )
* % & , ' & . this ;Lcom/groupbyinc/flux/search/searchafter/SearchAfterBuilder; 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V java/io/IOException 3 0com/groupbyinc/flux/common/io/stream/StreamInput 5 readVInt ()I 7 8
6 9 readGenericValue ()Ljava/lang/Object; ; <
6 = i I in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; size writeTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V 1com/groupbyinc/flux/common/io/stream/StreamOutput F writeVInt (I)V H I
G J & writeGenericValue (Ljava/lang/Object;)V M N
G O
fieldValue Ljava/lang/Object; out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput;
setSortValues P([Ljava/lang/Object;)Lcom/groupbyinc/flux/search/searchafter/SearchAfterBuilder; java/lang/NullPointerException W Values cannot be null. Y (Ljava/lang/String;)V ( [
X \ "java/lang/IllegalArgumentException ^ (Values must contains at least one value. `
_ \ java/lang/String c $com/groupbyinc/flux/common/text/Text e java/lang/Long g java/lang/Integer i java/lang/Short k java/lang/Byte m java/lang/Double o java/lang/Float q java/lang/Boolean s java/lang/StringBuilder u
v *
Can't handle x append -(Ljava/lang/String;)Ljava/lang/StringBuilder; z {
v | # $ ~ -(Ljava/lang/Object;)Ljava/lang/StringBuilder; z ?
v ? field value of type [ ? getClass ()Ljava/lang/Class; ? ?
? ] ? toString ()Ljava/lang/String; ? ?
v ? java/lang/System ? arraycopy *(Ljava/lang/Object;ILjava/lang/Object;II)V ? ?
? ? values
getSortValues ()[Ljava/lang/Object; java/util/Arrays ? copyOf )([Ljava/lang/Object;I)[Ljava/lang/Object; ? ?
? ?
buildFieldDoc (Lcom/groupbyinc/flux/search/sort/SortAndFormats;[Ljava/lang/Object;)Lcom/groupbyinc/flux/common/apache/lucene/search/FieldDoc; .com/groupbyinc/flux/search/sort/SortAndFormats ? sort 6Lcom/groupbyinc/flux/common/apache/lucene/search/Sort; ? ? ? ? 4com/groupbyinc/flux/common/apache/lucene/search/Sort ? getSort >()[Lcom/groupbyinc/flux/common/apache/lucene/search/SortField; ? ?
? ? %Sort must contain at least one field. ? %com/groupbyinc/flux/common/ParseField ? getPreferredName ? ?
? ? has ? (I)Ljava/lang/StringBuilder; z ?
v ? value(s) but sort has ? . ? <[Lcom/groupbyinc/flux/common/apache/lucene/search/SortField; ? formats ,[Lcom/groupbyinc/flux/search/DocValueFormat; ? ? ? ? convertValueFromSortField ?(Ljava/lang/Object;Lcom/groupbyinc/flux/common/apache/lucene/search/SortField;Lcom/groupbyinc/flux/search/DocValueFormat;)Ljava/lang/Object; ? ?
? )com/groupbyinc/flux/search/DocValueFormat ? 8com/groupbyinc/flux/common/apache/lucene/search/FieldDoc ???? (IF[Ljava/lang/Object;)V ( ?
? ? sortField ;Lcom/groupbyinc/flux/common/apache/lucene/search/SortField; format +Lcom/groupbyinc/flux/search/DocValueFormat; 0Lcom/groupbyinc/flux/search/sort/SortAndFormats;
sortFields fieldValues extractSortType }(Lcom/groupbyinc/flux/common/apache/lucene/search/SortField;)Lcom/groupbyinc/flux/common/apache/lucene/search/SortField$Type; Bcom/groupbyinc/flux/common/apache/lucene/search/SortedSetSortField ? STRING @Lcom/groupbyinc/flux/common/apache/lucene/search/SortField$Type; ? ?
? Fcom/groupbyinc/flux/common/apache/lucene/search/SortedNumericSortField ? getNumericType B()Lcom/groupbyinc/flux/common/apache/lucene/search/SortField$Type; ? ?
? ? getType ? ?
? getComparatorSource I()Lcom/groupbyinc/flux/common/apache/lucene/search/FieldComparatorSource; ? ?
? getField ? ?
? reducedType ? ?
? convertValueFromSortType ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/apache/lucene/search/SortField$Type;Ljava/lang/Object;Lcom/groupbyinc/flux/search/DocValueFormat;)Ljava/lang/Object; ? ?
? ? ?
? cmpSource KLcom/groupbyinc/flux/index/fielddata/IndexFieldData$XFieldComparatorSource; value sortType java/lang/NumberFormatException ? 2$SwitchMap$org$apache$lucene$search$SortField$Type [I ? ? ? ordinal 8
java/lang/Number intValue 8
valueOf (I)Ljava/lang/Integer;
j
? parseInt (Ljava/lang/String;)I
j
floatValue ()F
(F)Ljava/lang/Float;
r
parseFloat (Ljava/lang/String;)F
r doubleValue ()D
(D)Ljava/lang/Double;
p! parseDouble (Ljava/lang/String;)D#$
p% longValue ()J'(
) (J)Ljava/lang/Long;+
h, parseLong (Ljava/lang/String;)J./
h0
parseBytesRef L(Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;23 ?4 Comparator type [6 name8 ?
9
] for field [; ] is not supported.= Failed to parse ? value for field [A ].C *(Ljava/lang/String;Ljava/lang/Throwable;)V (E
_F e !Ljava/lang/NumberFormatException; fieldName Ljava/lang/String;
toXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; 3com/groupbyinc/flux/common/xcontent/XContentBuilderN startObject 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;PQ
OR innerToXContent 8(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)VTU
V endObjectXQ
OY builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; array \(Ljava/lang/String;[Ljava/lang/Object;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;_`
Oa fromXContent q(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/search/searchafter/SearchAfterBuilder;
* currentToken <()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;fg h java/util/ArrayListj
k * START_ARRAY :Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;mn o java/util/Listq nextTokensg t END_ARRAYvn w VALUE_NUMBERyn z F$SwitchMap$org$elasticsearch$common$xcontent$XContentParser$NumberType| ? }
numberType A()Lcom/groupbyinc/flux/common/xcontent/XContentParser$NumberType;? ?
! add (Ljava/lang/Object;)Z??r? ) java/lang/AssertionError? Unknown number type []? ( N
?? VALUE_STRING?n ? text? ? ?
VALUE_BOOLEAN?n ? booleanValue ()Z?? ? (Z)Ljava/lang/Boolean;?
t?
VALUE_NULL?n ? +com/groupbyinc/flux/common/ParsingException? getTokenLocation 8()Lcom/groupbyinc/flux/common/xcontent/XContentLocation;?? ?
Expected [? ] or [?
] but found [? ] inside search_after.? ^(Lcom/groupbyinc/flux/common/xcontent/XContentLocation;Ljava/lang/String;[Ljava/lang/Object;)V (?
?? ] in [? ] inside search_after? toArray? ?r? U V
? parser 4Lcom/groupbyinc/flux/common/xcontent/XContentParser; token $Ljava/util/List; Ljava/util/List; equals )([Ljava/lang/Object;[Ljava/lang/Object;)Z??
?? other hashCode java/util/Objects? hash ([Ljava/lang/Object;)I??
?? java/lang/Exception? 3com/groupbyinc/flux/common/xcontent/XContentFactory? jsonBuilder?Q
?? prettyPrint?Q
O? EMPTY_PARAMS?^ ?LM
? string? ?
O? *com/groupbyinc/flux/ElasticsearchException? Failed to build xcontent.? =(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V (?
?? Ljava/lang/Exception; search_after? ((Ljava/lang/String;[Ljava/lang/String;)V (?
?? Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions LocalVariableTypeTable
SourceFile InnerClasses ! # $ % &