com.groupbyinc.flux.common.compress.CompressedXContent.class Maven / Gradle / Ivy
???? 4 6com/groupbyinc/flux/common/compress/CompressedXContent java/lang/Object CompressedXContent.java 8com/groupbyinc/flux/common/compress/CompressedXContent$1 5com/groupbyinc/flux/common/xcontent/ToXContent$Params .com/groupbyinc/flux/common/xcontent/ToXContent
Params bytes [B crc32 I $assertionsDisabled Z 4(Lcom/groupbyinc/flux/common/bytes/BytesReference;)I java/io/IOException ()V
java/util/zip/CRC32
!java/util/zip/CheckedOutputStream 1(Ljava/io/OutputStream;Ljava/util/zip/Checksum;)V
/com/groupbyinc/flux/common/bytes/BytesReference " writeTo (Ljava/io/OutputStream;)V $ %
# & java/io/OutputStream ( java/lang/Error * (Ljava/lang/Throwable;)V ,
+ - getValue ()J / 0
1 bogus Ljava/io/IOException; data 1Lcom/groupbyinc/flux/common/bytes/BytesReference; dummy Ljava/io/OutputStream; Ljava/util/zip/CRC32; ([BI)V
< > assertConsistent @
A this 8Lcom/groupbyinc/flux/common/compress/CompressedXContent;
compressed ?(Lcom/groupbyinc/flux/common/xcontent/ToXContent;Lcom/groupbyinc/flux/common/xcontent/XContentType;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)V java/lang/Throwable G 6com/groupbyinc/flux/common/io/stream/BytesStreamOutput I
J 5com/groupbyinc/flux/common/compress/CompressorFactory L
COMPRESSOR 0Lcom/groupbyinc/flux/common/compress/Compressor; N O M P .com/groupbyinc/flux/common/compress/Compressor R streamOutput h(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)Lcom/groupbyinc/flux/common/io/stream/StreamOutput; T U S V 3com/groupbyinc/flux/common/xcontent/XContentFactory X contentBuilder (Lcom/groupbyinc/flux/common/xcontent/XContentType;Ljava/io/OutputStream;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; Z [
Y \ 3com/groupbyinc/flux/common/xcontent/XContentBuilder ^ startObject 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ` a
_ b
toXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; d e f endObject h a
_ i close k
_ l 0com/groupbyinc/flux/common/xcontent/XContentType n
addSuppressed p ,
H q 3()Lcom/groupbyinc/flux/common/bytes/BytesReference;
s
J t toBytes 5(Lcom/groupbyinc/flux/common/bytes/BytesReference;)[B v w
# x builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; xcontent 0Lcom/groupbyinc/flux/common/xcontent/ToXContent; type 2Lcom/groupbyinc/flux/common/xcontent/XContentType; params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; bStream 8Lcom/groupbyinc/flux/common/io/stream/BytesStreamOutput; compressedStream
checkedStream 4(Lcom/groupbyinc/flux/common/bytes/BytesReference;)V
compressor c(Lcom/groupbyinc/flux/common/bytes/BytesReference;)Lcom/groupbyinc/flux/common/compress/Compressor; ? ?
M ? +com/groupbyinc/flux/common/bytes/BytesArray ? uncompressed ()[B ? ?
? ([B)V ?
? ?
?
) l compressedOutput out ? java/lang/AssertionError ?
? ?
? (Ljava/lang/String;)V 6com/groupbyinc/flux/common/apache/lucene/util/BytesRef ? (Ljava/lang/CharSequence;)V ?
? ? ;(Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;)V ?
? ? str Ljava/lang/String; compressedReference
uncompress d(Lcom/groupbyinc/flux/common/bytes/BytesReference;)Lcom/groupbyinc/flux/common/bytes/BytesReference; ? ?
M ? java/lang/IllegalStateException ? #Cannot decompress compressed string ? *(Ljava/lang/String;Ljava/lang/Throwable;)V ?
? ? e string ()Ljava/lang/String;
? ? utf8ToString ? ?
? ? readCompressedString l(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/common/compress/CompressedXContent; 0com/groupbyinc/flux/common/io/stream/StreamInput ? readInt ()I ? ?
? ? readVInt ? ?
? ? readBytes ([BII)V ? ?
? ? :
? in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V 1com/groupbyinc/flux/common/io/stream/StreamOutput ? writeInt (I)V ? ?
? ? writeVInt ? ?
? ?
writeBytes ? ?
? ? 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; equals (Ljava/lang/Object;)Z getClass ()Ljava/lang/Class; ? ?
? E ?
? java/util/Arrays ? ([B[B)Z ? ?
? ? o Ljava/lang/Object; that hashCode toString ? ?
? _na_ ? java/lang/Class ? desiredAssertionStatus ()Z ? ?
? ? Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile InnerClasses 1
? ? 0? Y? L? Y? M*? Y+,? !? '?
N? +Y-? .?,? 2?? ? * ! 3 4 0 5 6 ( 7 8 9 ? 0 : <