com.groupbyinc.flux.common.xcontent.XContentBuilder.class Maven / Gradle / Ivy
???? 4? 3com/groupbyinc/flux/common/xcontent/XContentBuilder java/lang/Object +com/groupbyinc/flux/common/lease/Releasable java/io/Flushable XContentBuilder.java :com/groupbyinc/flux/common/xcontent/XContentBuilder$Writer
Writer 5com/groupbyinc/flux/common/xcontent/ToXContent$Params
.com/groupbyinc/flux/common/xcontent/ToXContent Params java/util/Map$Entry
java/util/Map Entry %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup DEFAULT_DATE_PRINTER ?Lcom/groupbyinc/flux/common/joda/time/format/DateTimeFormatter; WRITERS Ljava/util/Map; aLjava/util/Map;Lcom/groupbyinc/flux/common/xcontent/XContentBuilder$Writer;>; generator 7Lcom/groupbyinc/flux/common/xcontent/XContentGenerator; bos Ljava/io/OutputStream;
humanReadable Z builder e(Lcom/groupbyinc/flux/common/xcontent/XContent;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; java/io/IOException ) 6com/groupbyinc/flux/common/io/stream/BytesStreamOutput + ()V - .
, / G(Lcom/groupbyinc/flux/common/xcontent/XContent;Ljava/io/OutputStream;)V - 1
2 xContent .Lcom/groupbyinc/flux/common/xcontent/XContent; ?(Lcom/groupbyinc/flux/common/xcontent/XContent;Ljava/util/Set;Ljava/util/Set;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; e(Lcom/groupbyinc/flux/common/xcontent/XContent;Ljava/io/OutputStream;Ljava/util/Set;Ljava/util/Set;)V - 7
8 includes #Ljava/util/Set; Ljava/util/Set; excludes java/util/Collections > emptySet ()Ljava/util/Set; @ A
? B this 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; V(Lcom/groupbyinc/flux/common/xcontent/XContent;Ljava/io/OutputStream;Ljava/util/Set;)V
/ % & H # $ J ,com/groupbyinc/flux/common/xcontent/XContent L createGenerator m(Ljava/io/OutputStream;Ljava/util/Set;Ljava/util/Set;)Lcom/groupbyinc/flux/common/xcontent/XContentGenerator; N O M P ! " R os contentType 4()Lcom/groupbyinc/flux/common/xcontent/XContentType; 5com/groupbyinc/flux/common/xcontent/XContentGenerator W U V X Y prettyPrint 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; usePrettyPrint ] . X ^
isPrettyPrint ()Z ` a X b lfAtEnd usePrintLineFeedAtEnd e . X f 8(Z)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; startObject writeStartObject j . X k I(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; field n m
o i \
q name Ljava/lang/String; endObject writeEndObject v . X w
startArray writeStartArray z . X { y \
} endArray
writeEndArray ? . X ? ensureNameNotNull (Ljava/lang/String;)V ? ?
? writeFieldName ? ? X ? nullField writeNullField ? ? X ? nullValue writeNull ? . X ? \(Ljava/lang/String;Ljava/lang/Boolean;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? m
? java/lang/Boolean ? booleanValue ? a
? ? J(Ljava/lang/String;Z)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; n ?
? value Ljava/lang/Boolean; writeBooleanField (Ljava/lang/String;Z)V ? ? X ? array K(Ljava/lang/String;[Z)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; values 9([Z)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? [Z ? \
? ? ? h
? \
? b J(Ljava/lang/Boolean;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; writeBoolean (Z)V ? ? X ? Y(Ljava/lang/String;Ljava/lang/Byte;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; java/lang/Byte ? byteValue ()B ? ?
? ? J(Ljava/lang/String;B)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; n ?
? Ljava/lang/Byte; 8(B)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? B G(Ljava/lang/Byte;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; writeNumber (S)V ? ? X ? [(Ljava/lang/String;Ljava/lang/Double;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; java/lang/Double ? doubleValue ()D ? ?
? ? J(Ljava/lang/String;D)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; n ?
? Ljava/lang/Double; writeNumberField (Ljava/lang/String;D)V ? ? X ? D K(Ljava/lang/String;[D)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; 9([D)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? [D ? 8(D)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? I(Ljava/lang/Double;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; (D)V ? ? X ? Z(Ljava/lang/String;Ljava/lang/Float;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; java/lang/Float ?
floatValue ()F ? ?
? ? J(Ljava/lang/String;F)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; n ?
? Ljava/lang/Float; (Ljava/lang/String;F)V ? ? X ? F K(Ljava/lang/String;[F)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; 9([F)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? [F ? 8(F)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? f H(Ljava/lang/Float;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; (F)V ? X \(Ljava/lang/String;Ljava/lang/Integer;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; java/lang/Integer intValue ()I
J(Ljava/lang/String;I)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; n
Ljava/lang/Integer; (Ljava/lang/String;I)V ? X I K(Ljava/lang/String;[I)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; 9([I)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ?
[I 8(I)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ?
i J(Ljava/lang/Integer;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; (I)V ? X Y(Ljava/lang/String;Ljava/lang/Long;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; java/lang/Long# longValue ()J%&
$' J(Ljava/lang/String;J)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; n)
* Ljava/lang/Long; (Ljava/lang/String;J)V ?- X. J K(Ljava/lang/String;[J)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; 9([J)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ?2
3 [J5 8(J)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ?7
8 l G(Ljava/lang/Long;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; (J)V ?< X= Z(Ljava/lang/String;Ljava/lang/Short;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; java/lang/Short@
shortValue ()SBC
AD J(Ljava/lang/String;S)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; nF
G Ljava/lang/Short; 8(S)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ?J
K S K(Ljava/lang/String;[S)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; 9([S)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ?O
P [SR s H(Ljava/lang/Short;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; [(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; writeStringField '(Ljava/lang/String;Ljava/lang/String;)VWX XY \(Ljava/lang/String;[Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; J([Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ?\
] [Ljava/lang/String;_ ? m
a writeStringc ? Xd K(Ljava/lang/String;[B)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; writeBinaryField (Ljava/lang/String;[B)Vgh Xi [B 9([B)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; writeBinary ([B)Vmn Xo M(Ljava/lang/String;[BII)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ;([BII)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ?r
s offset length ([BII)Vmw Xx ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; binaryValue o(Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;{|
} 8Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef; utf8Field utf8Value?|
? 6com/groupbyinc/flux/common/apache/lucene/util/BytesRef? bytes?k ??u ??v ?? writeUTF8String?w X? z(Ljava/lang/String;Lcom/groupbyinc/flux/common/bytes/BytesReference;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; h(Lcom/groupbyinc/flux/common/bytes/BytesReference;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ??
? 1Lcom/groupbyinc/flux/common/bytes/BytesReference; /com/groupbyinc/flux/common/bytes/BytesReference?
toBytesRef :()Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;??
?? o(Ljava/lang/String;Lcom/groupbyinc/flux/common/text/Text;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ](Lcom/groupbyinc/flux/common/text/Text;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ??
? &Lcom/groupbyinc/flux/common/text/Text; $com/groupbyinc/flux/common/text/Text? hasString? a
?? string ()Ljava/lang/String;??
?? 3()Lcom/groupbyinc/flux/common/bytes/BytesReference;??
?? (Ljava/lang/String;Lcom/groupbyinc/flux/common/joda/time/ReadableInstant;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; m(Lcom/groupbyinc/flux/common/joda/time/ReadableInstant;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ??
? 6Lcom/groupbyinc/flux/common/joda/time/ReadableInstant; ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/joda/time/ReadableInstant;Lcom/groupbyinc/flux/common/joda/time/format/DateTimeFormatter;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ?(Lcom/groupbyinc/flux/common/joda/time/ReadableInstant;Lcom/groupbyinc/flux/common/joda/time/format/DateTimeFormatter;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ??
? formatter ? ensureFormatterNotNull B(Lcom/groupbyinc/flux/common/joda/time/format/DateTimeFormatter;)V??
? =com/groupbyinc/flux/common/joda/time/format/DateTimeFormatter? print J(Lcom/groupbyinc/flux/common/joda/time/ReadableInstant;)Ljava/lang/String;??
?? Y(Ljava/lang/String;Ljava/util/Date;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; G(Ljava/util/Date;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ??
? Ljava/util/Date; ?(Ljava/lang/String;Ljava/util/Date;Lcom/groupbyinc/flux/common/joda/time/format/DateTimeFormatter;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ?(Ljava/util/Date;Lcom/groupbyinc/flux/common/joda/time/format/DateTimeFormatter;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ??
? java/util/Date? getTime?&
?? w(Lcom/groupbyinc/flux/common/joda/time/format/DateTimeFormatter;J)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ??
? dateField \(Ljava/lang/String;Ljava/lang/String;J)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; readableName K(Ljava/util/Calendar;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; java/util/Calendar? getTimeInMillis?&
?? Ljava/util/Calendar; (J)Ljava/lang/String;??
?? r(Ljava/lang/String;Lcom/groupbyinc/flux/common/geo/GeoPoint;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; `(Lcom/groupbyinc/flux/common/geo/GeoPoint;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ??
? )Lcom/groupbyinc/flux/common/geo/GeoPoint; 'com/groupbyinc/flux/common/geo/GeoPoint? getLat? ?
?? getLon? ?
?? latlon 9(DD)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
? K(Ljava/lang/String;DD)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; lat lon?? u \
? K(Ljava/nio/file/Path;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; java/nio/file/Path? toString???? Ljava/nio/file/Path; [(Ljava/lang/String;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; I(Ljava/lang/Object;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ?
Ljava/lang/Object; \(Ljava/lang/String;[Ljava/lang/Object;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; J([Ljava/lang/Object;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ?
[Ljava/lang/Object; ensureNoSelfReferences (Ljava/lang/Object;)V
o unknownValue
getClass ()Ljava/lang/Class;
get &(Ljava/lang/Object;)Ljava/lang/Object; write J(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Ljava/lang/Object;)V ??
map F(Ljava/util/Map;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;"#
$ java/lang/Iterable& K(Ljava/lang/Iterable;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ?(
) ??
+ 4com/groupbyinc/flux/common/joda/time/ReadableInstant- g(Lcom/groupbyinc/flux/common/xcontent/ToXContent;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ?/
0 java/util/Objects2 &(Ljava/lang/Object;)Ljava/lang/String;?4
35 writer