com.groupbyinc.flux.search.SearchHits.class Maven / Gradle / Ivy
???? 4u %com/groupbyinc/flux/search/SearchHits ?Ljava/lang/Object;Lcom/groupbyinc/flux/common/io/stream/Streamable;Lcom/groupbyinc/flux/common/xcontent/ToXContentFragment;Ljava/lang/Iterable; java/lang/Object /com/groupbyinc/flux/common/io/stream/Streamable 6com/groupbyinc/flux/common/xcontent/ToXContentFragment java/lang/Iterable
SearchHits.java ,com/groupbyinc/flux/search/SearchHits$Fields
Fields 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 %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup EMPTY '[Lcom/groupbyinc/flux/search/SearchHit; hits totalHits J maxScore F $assertionsDisabled Z empty )()Lcom/groupbyinc/flux/search/SearchHits; * ,([Lcom/groupbyinc/flux/search/SearchHit;JF)V , -
. ()V , 0
1 this 'Lcom/groupbyinc/flux/search/SearchHits; ! 5 " # 7 $ % 9 getTotalHits ()J getMaxScore ()F getHits )()[Lcom/groupbyinc/flux/search/SearchHit; getAt )(I)Lcom/groupbyinc/flux/search/SearchHit; position I iterator ()Ljava/util/Iterator; ? @
G java/util/Arrays I stream .([Ljava/lang/Object;)Ljava/util/stream/Stream; K L
J M java/util/stream/Stream O E F P Q
toXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; java/io/IOException U ! 3com/groupbyinc/flux/common/xcontent/XContentBuilder X startObject I(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; Z [
Y \ total ^ field J(Ljava/lang/String;J)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ` a
Y b java/lang/Float d isNaN (F)Z f g
e h max_score j nullField l [
Y m J(Ljava/lang/String;F)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ` o
Y p ` [
Y r
startArray 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; t u
Y v $com/groupbyinc/flux/search/SearchHit y S T
z { endArray } u
Y ~ endObject ? u
Y ? hit &Lcom/groupbyinc/flux/search/SearchHit; builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; fromXContent ](Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/search/SearchHits; currentToken <()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; ? ? ? START_OBJECT :Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; ? ? ? nextToken ? ? ? java/util/Objects ? requireNonNull &(Ljava/lang/Object;)Ljava/lang/Object; ? ?
? ? "java/lang/invoke/LambdaMetafactory ? 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; ? ?
? ? ? ()Ljava/lang/Object; ? getTokenLocation 8()Lcom/groupbyinc/flux/common/xcontent/XContentLocation; ? ? ? ? ? get S(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Ljava/util/function/Supplier; ? ? ? 7com/groupbyinc/flux/common/xcontent/XContentParserUtils ? ensureExpectedToken ?(Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;Ljava/util/function/Supplier;)V ? ?
? ? java/util/ArrayList ?
? 1 java/lang/String ? java/util/List ?
END_OBJECT ? ? ?
FIELD_NAME ? ? ? currentName ()Ljava/lang/String; ? ? ? isValue ()Z ? ?
? equals (Ljava/lang/Object;)Z ? ?
? ? longValue ? < ?
floatValue ? > ?
VALUE_NULL ? ? ?? START_ARRAY ? ? ? END_ARRAY ? ? ? \(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/search/SearchHit; ? ?
z ? add ? ? ? ? skipChildren ? 0 ? size ()I ? ? ? ? toArray (([Ljava/lang/Object;)[Ljava/lang/Object; ? ? ? ? parser 4Lcom/groupbyinc/flux/common/xcontent/XContentParser; token currentFieldName Ljava/lang/String; 8Ljava/util/List; Ljava/util/List;
searchHits readSearchHits [(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/search/SearchHits;
1 readFrom 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V ? ?
? in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; 0com/groupbyinc/flux/common/io/stream/StreamInput
getVersion ()Lcom/groupbyinc/flux/Version;
com/groupbyinc/flux/Version
V_6_0_0_beta1 Lcom/groupbyinc/flux/Version;
onOrAfter (Lcom/groupbyinc/flux/Version;)Z
readBoolean ?
readVLong <
???????? readFloat >
readVInt ?
readSearchHit Z(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/search/SearchHit;
z hasTotalHits i writeTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V 1com/groupbyinc/flux/common/io/stream/StreamOutput&
' writeBoolean (Z)V)*
'+ &