
com.groupbyinc.flux.index.get.GetResult.class Maven / Gradle / Ivy
???? 3l 'com/groupbyinc/flux/index/get/GetResult ?Ljava/lang/Object;Lcom/groupbyinc/flux/common/io/stream/Streamable;Ljava/lang/Iterable;Lcom/groupbyinc/flux/common/xcontent/ToXContent; java/lang/Object /com/groupbyinc/flux/common/io/stream/Streamable java/lang/Iterable .com/groupbyinc/flux/common/xcontent/ToXContent
GetResult.java .com/groupbyinc/flux/index/get/GetResult$Fields
Fields 5com/groupbyinc/flux/common/xcontent/ToXContent$Params Params index Ljava/lang/String; type id version J exists Z fields Ljava/util/Map; KLjava/util/Map; sourceAsMap 5Ljava/util/Map; source 1Lcom/groupbyinc/flux/common/bytes/BytesReference;
sourceAsBytes [B ()V $ %
& this )Lcom/groupbyinc/flux/index/get/GetResult; {(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;JZLcom/groupbyinc/flux/common/bytes/BytesReference;Ljava/util/Map;)V + - / 1 3 ! 5 7 =com/groupbyinc/flux/common/google/common/collect/ImmutableMap 9 of A()Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap; ; <
: = java/lang/String ? /com/groupbyinc/flux/common/bytes/BytesReference A
java/util/Map C isExists ()Z getIndex ()Ljava/lang/String; getType getId
getVersion ()J ()[B " # N sourceRef 3()Lcom/groupbyinc/flux/common/bytes/BytesReference; P Q
R toBytes T M B U java/io/IOException W 5com/groupbyinc/flux/common/compress/CompressorFactory Y uncompressIfNeeded d(Lcom/groupbyinc/flux/common/bytes/BytesReference;)Lcom/groupbyinc/flux/common/bytes/BytesReference; [ \
Z ] /com/groupbyinc/flux/ElasticsearchParseException _ failed to decompress source a =(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V $ c
` d e Ljava/io/IOException; internalSourceRef
isSourceEmpty sourceAsString 2com/groupbyinc/flux/common/xcontent/XContentHelper k
convertToJson F(Lcom/groupbyinc/flux/common/bytes/BytesReference;Z)Ljava/lang/String; m n
l o )failed to convert source to a json string q ((Ljava/lang/String;[Ljava/lang/Object;)V $ s
` t ()Ljava/util/Map; w .com/groupbyinc/flux/search/lookup/SourceLookup y B(Lcom/groupbyinc/flux/common/bytes/BytesReference;)Ljava/util/Map; {
z | getSource v
getFields field <(Ljava/lang/String;)Lcom/groupbyinc/flux/index/get/GetField; get &(Ljava/lang/Object;)Ljava/lang/Object; ? ? D ? &com/groupbyinc/flux/index/get/GetField ? name iterator ()Ljava/util/Iterator; java/util/Collections ?
emptyIterator ? ?
? ? values ()Ljava/util/Collection; ? ? D ? java/util/Collection ? ? ? ? ? toXContentEmbedded ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; java/util/ArrayList ?
? & isEmpty ? F D ? java/util/List ? java/util/Iterator ? hasNext ? F ? ? next ()Ljava/lang/Object; ? ? ? ? getValues ()Ljava/util/List; ? ?
? ? ? ? isMetadataField ? F
? ? add (Ljava/lang/Object;)Z ? ? ? ? ? ? getName ? H
? ? getValue ? ?
? ? 3com/groupbyinc/flux/common/xcontent/XContentBuilder ? [(Ljava/lang/String;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? FOUND ;Lcom/groupbyinc/flux/common/xcontent/XContentBuilderString; ? ? ? s(Lcom/groupbyinc/flux/common/xcontent/XContentBuilderString;Z)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? _source ?
writeRawField ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/bytes/BytesReference;Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)V ? ?
l ? FIELDS ? ? ? startObject r(Lcom/groupbyinc/flux/common/xcontent/XContentBuilderString;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ?
startArray I(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? value I(Ljava/lang/Object;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? endArray 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? endObject ? ?
? ? (Lcom/groupbyinc/flux/index/get/GetField; Ljava/lang/Object; builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;
metaFields :Ljava/util/List; Ljava/util/List; otherFields
toXContent E F
? _INDEX ? ? ? ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilderString;Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? _TYPE ? ? ? _ID ? ? ????????? _VERSION ? s(Lcom/groupbyinc/flux/common/xcontent/XContentBuilderString;J)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ?
? ? ?
readGetResult ](Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/index/get/GetResult;
& readFrom 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V
in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; result 0com/groupbyinc/flux/common/io/stream/StreamInput
readString H
readOptionalString H
readLong L
readBoolean F
! readBytesReference# Q
$ length ()I&' B( readVInt*'
+ 5com/groupbyinc/flux/common/google/common/collect/Maps- newHashMapWithExpectedSize (I)Ljava/util/HashMap;/0
.1 readGetField \(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/index/get/GetField;34
?5 put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;78 D9 i I size writeTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V 1com/groupbyinc/flux/common/io/stream/StreamOutput@ writeString (Ljava/lang/String;)VBC
AD writeOptionalStringFC
AG writeLong (J)VIJ
AK writeBoolean (Z)VMN
AO writeBytesReference 4(Lcom/groupbyinc/flux/common/bytes/BytesReference;)VQR
AS writeVInt (I)VUV
AW=' DY>?
?[ out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; Signature Code LocalVariableTable LineNumberTable LocalVariableTypeTable
StackMapTable ?(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;JZLcom/groupbyinc/flux/common/bytes/BytesReference;Ljava/util/Map;)V
Exceptions 7()Ljava/util/Map; M()Ljava/util/Map; @()Ljava/util/Iterator;
SourceFile InnerClasses ! _ _ ! " # $ % ` 3 *? '? a ( ) b
; <