
com.groupbyinc.flux.common.xcontent.XContentHelper.class Maven / Gradle / Ivy
???? 4? 2com/groupbyinc/flux/common/xcontent/XContentHelper java/lang/Object XContentHelper.java java/util/Map$Entry
java/util/Map Entry 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 ()V
this 4Lcom/groupbyinc/flux/common/xcontent/XContentHelper; createParser ?(Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Lcom/groupbyinc/flux/common/xcontent/DeprecationHandler;Lcom/groupbyinc/flux/common/bytes/BytesReference;)Lcom/groupbyinc/flux/common/xcontent/XContentParser; java/io/IOException Ljava/lang/Deprecated; 5com/groupbyinc/flux/common/compress/CompressorFactory
compressor c(Lcom/groupbyinc/flux/common/bytes/BytesReference;)Lcom/groupbyinc/flux/common/compress/Compressor; " #
! $ /com/groupbyinc/flux/common/bytes/BytesReference & streamInput 4()Lcom/groupbyinc/flux/common/io/stream/StreamInput; ( )
' * .com/groupbyinc/flux/common/compress/Compressor , f(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/common/io/stream/StreamInput; ( . - / java/io/InputStream 1
markSupported ()Z 3 4
2 5 java/io/BufferedInputStream 7 (Ljava/io/InputStream;)V 9
8 : 3com/groupbyinc/flux/common/xcontent/XContentFactory < xContentType I(Ljava/io/InputStream;)Lcom/groupbyinc/flux/common/xcontent/XContentType; > ?
= @ xContent b(Lcom/groupbyinc/flux/common/xcontent/XContentType;)Lcom/groupbyinc/flux/common/xcontent/XContent; B C
= D ,com/groupbyinc/flux/common/xcontent/XContent F ?(Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Lcom/groupbyinc/flux/common/xcontent/DeprecationHandler;Ljava/io/InputStream;)Lcom/groupbyinc/flux/common/xcontent/XContentParser; H G I e(Lcom/groupbyinc/flux/common/bytes/BytesReference;)Lcom/groupbyinc/flux/common/xcontent/XContentType; > K
L compressedInput Ljava/io/InputStream; contentType 2Lcom/groupbyinc/flux/common/xcontent/XContentType; xContentRegistry ;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry; deprecationHandler 8Lcom/groupbyinc/flux/common/xcontent/DeprecationHandler; bytes 1Lcom/groupbyinc/flux/common/bytes/BytesReference; 0Lcom/groupbyinc/flux/common/compress/Compressor;(Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Lcom/groupbyinc/flux/common/xcontent/DeprecationHandler;Lcom/groupbyinc/flux/common/bytes/BytesReference;Lcom/groupbyinc/flux/common/xcontent/XContentType;)Lcom/groupbyinc/flux/common/xcontent/XContentParser; java/util/Objects Z requireNonNull &(Ljava/lang/Object;)Ljava/lang/Object; \ ]
[ ^ 0com/groupbyinc/flux/common/xcontent/XContentType ` 0()Lcom/groupbyinc/flux/common/xcontent/XContent; B b
a c convertToMap ^(Lcom/groupbyinc/flux/common/bytes/BytesReference;Z)Lcom/groupbyinc/flux/common/collect/Tuple; /com/groupbyinc/flux/ElasticsearchParseException g ?(Lcom/groupbyinc/flux/common/bytes/BytesReference;ZLcom/groupbyinc/flux/common/xcontent/XContentType;)Lcom/groupbyinc/flux/common/collect/Tuple; e i
j ordered Z java/lang/Throwable n (com/groupbyinc/flux/common/collect/Tuple p U(Lcom/groupbyinc/flux/common/xcontent/XContent;Ljava/io/InputStream;Z)Ljava/util/Map; e r
s '(Ljava/lang/Object;Ljava/lang/Object;)V u
q v $closeResource 1(Ljava/lang/Throwable;Ljava/lang/AutoCloseable;)V x y
z Failed to parse content to map | =(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V ~
h compressedStreamInput input stream e Ljava/io/IOException; R(Lcom/groupbyinc/flux/common/xcontent/XContent;Ljava/lang/String;Z)Ljava/util/Map; 9com/groupbyinc/flux/common/xcontent/NamedXContentRegistry ? EMPTY ? S ? ? 6com/groupbyinc/flux/common/xcontent/DeprecationHandler ? THROW_UNSUPPORTED_OPERATION ? U ? ? ?(Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Lcom/groupbyinc/flux/common/xcontent/DeprecationHandler;Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentParser; ? G ?
mapOrdered ()Ljava/util/Map; ? ? ? map ? ? ? java/lang/String ? parser 4Lcom/groupbyinc/flux/common/xcontent/XContentParser; .Lcom/groupbyinc/flux/common/xcontent/XContent; string Ljava/lang/String;
convertToJson F(Lcom/groupbyinc/flux/common/bytes/BytesReference;Z)Ljava/lang/String; G(Lcom/groupbyinc/flux/common/bytes/BytesReference;ZZ)Ljava/lang/String; ? ?
? reformatJson
toBytesRef :()Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef; ? ?
' ? 6com/groupbyinc/flux/common/apache/lucene/util/BytesRef ? [B V ? ? ? 6([B)Lcom/groupbyinc/flux/common/xcontent/XContentType; > ?
= ? y(Lcom/groupbyinc/flux/common/bytes/BytesReference;ZZLcom/groupbyinc/flux/common/xcontent/XContentType;)Ljava/lang/String; ? ?
? prettyPrint x(Lcom/groupbyinc/flux/common/bytes/BytesReference;ZLcom/groupbyinc/flux/common/xcontent/XContentType;)Ljava/lang/String; JSON ? Q a ? utf8ToString ()Ljava/lang/String; ? ?
' ? nextToken <()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; ? ? ? jsonBuilder 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
= ? 3com/groupbyinc/flux/common/xcontent/XContentBuilder ? ? ?
? ? copyCurrentStructure k(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? "com/groupbyinc/flux/common/Strings ? toString I(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)Ljava/lang/String; ? ?
? ? builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; update "(Ljava/util/Map;Ljava/util/Map;Z)Z entrySet ()Ljava/util/Set; ? ? ?
java/util/Set ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ? 4 ? ? next ()Ljava/lang/Object; ? ? ? ? getKey ? ? ? containsKey (Ljava/lang/Object;)Z ? ? ? getValue ? ? ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? get ? ] ? ? ?
? equals '(Ljava/lang/Object;Ljava/lang/Object;)Z
[ old Ljava/lang/Object; changesEntry ;Ljava/util/Map$Entry; Ljava/util/Map$Entry; source 5Ljava/util/Map; Ljava/util/Map; changes checkUpdatesAreUnequal modified
mergeDefaults !(Ljava/util/Map;Ljava/util/Map;)V
java/util/List java/util/ArrayList
allListValuesAreMapsOfOne (Ljava/util/List;)Z
java/util/LinkedHashMap
? values ()Ljava/util/Collection; ! " java/util/Collection$% ? add' ?( addAll (Ljava/util/Collection;)Z*+, contains. ?/ entry o processed XLjava/util/Map;>; defaultList Ljava/util/List; contentList
mergedList defaultEntry content defaults size ()I<= > list
writeRawField ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/bytes/BytesReference;Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)V rawField ^(Ljava/lang/String;Ljava/io/InputStream;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;CD
?E field params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/bytes/BytesReference;Lcom/groupbyinc/flux/common/xcontent/XContentType;Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)V ?(Ljava/lang/String;Ljava/io/InputStream;Lcom/groupbyinc/flux/common/xcontent/XContentType;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;CK
?L
toXContent ?(Lcom/groupbyinc/flux/common/xcontent/ToXContent;Lcom/groupbyinc/flux/common/xcontent/XContentType;Z)Lcom/groupbyinc/flux/common/bytes/BytesReference; EMPTY_PARAMSPI Q ?(Lcom/groupbyinc/flux/common/xcontent/ToXContent;Lcom/groupbyinc/flux/common/xcontent/XContentType;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;Z)Lcom/groupbyinc/flux/common/bytes/BytesReference;NS
T 0Lcom/groupbyinc/flux/common/xcontent/ToXContent;
humanReadable e(Lcom/groupbyinc/flux/common/xcontent/XContent;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ?X
?Y 8(Z)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;W[
?\
isFragment^ 4 _ startObjecta ?
?b ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Nd e endObjectg ?
?h h(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)Lcom/groupbyinc/flux/common/bytes/BytesReference; Vj
'k offset Imn ?o lengthqn ?r 8([BII)Lcom/groupbyinc/flux/common/xcontent/XContentType; >t
=u br 8Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef; java/lang/AutoCloseabley close{ z|
addSuppressed (Ljava/lang/Throwable;)V~
o? x0 Ljava/lang/Throwable; x1 Ljava/lang/AutoCloseable; Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
Deprecated RuntimeVisibleAnnotations Signature ?(Lcom/groupbyinc/flux/common/bytes/BytesReference;Z)Lcom/groupbyinc/flux/common/collect/Tuple;>; ?(Lcom/groupbyinc/flux/common/bytes/BytesReference;ZLcom/groupbyinc/flux/common/xcontent/XContentType;)Lcom/groupbyinc/flux/common/collect/Tuple;>; x(Lcom/groupbyinc/flux/common/xcontent/XContent;Ljava/lang/String;Z)Ljava/util/Map; {(Lcom/groupbyinc/flux/common/xcontent/XContent;Ljava/io/InputStream;Z)Ljava/util/Map; LocalVariableTypeTable n(Ljava/util/Map;Ljava/util/Map;Z)Z m(Ljava/util/Map;Ljava/util/Map;)V
SourceFile InnerClasses ! ? / *? ? ? ? ) ? ? Q,? %N-? 8-,? +? 0 :? 6? ? 8Y? ;:? A:? E*+? J ?,? M? E*+,? +? J ? ? > ) N O / P Q Q R S Q T U Q V W L " X ? " 2 3 4 5 6 ( 8 / 9 > ;? ? ( - 2? ? ? ? Y ? ? N-? _W,? %:? 1,? +? 0 :? 6? ? 8Y? ;:-? E*+? J ?-? d*+,? +? J ? ? > ! N O N R S N T U N V W N > Q C " X ? " D E F G H % I 0 K > M? ? 0 - 2?
? e f ? ; *? k? ? V W l m ? Y? h? ? ?? e i ? #
?*? %:? **? +? 0 :? 6? ? 8Y? ;::? *? +:,? ,? ? AN::? qY-? _? a-? E? t? w:?
? {?::?: ?
? { ?N? hY}-? ? ?? M g v o M g v ? s ? v ? ? ? f
? O / ? O J F ? O F J P Q 8 X ? O ? " X ? ? ? ? V W ? l m ? > Q ? F d e f g h + j / k 2 l 8 n F o M p g q s p v o q ? r ? s? ?
? + ' a - 2 ? ? ' a 2 - D a? - ' a a 2 - 2 o q ? ' a a 2 - 2 o oH o?
o? ' a ? h? ? e ? ? ; [*? ?? ?+? ? N:? -? ? ? -? ? :-? -? {?::?:-? -? {?N? hY}-? ? ?? &