org.elasticsearch.common.compress.snappy.xerial
Class XerialSnappyCompressedStreamOutput
java.lang.Object
java.io.OutputStream
org.elasticsearch.common.io.stream.StreamOutput
org.elasticsearch.common.compress.CompressedStreamOutput<SnappyCompressorContext>
org.elasticsearch.common.compress.snappy.SnappyCompressedStreamOutput
org.elasticsearch.common.compress.snappy.xerial.XerialSnappyCompressedStreamOutput
- All Implemented Interfaces:
- Closeable, Flushable
public class XerialSnappyCompressedStreamOutput
- extends SnappyCompressedStreamOutput
Method Summary |
protected void |
compress(byte[] data,
int offset,
int len,
StreamOutput out)
Compresses the data into the output |
Methods inherited from class org.elasticsearch.common.io.stream.StreamOutput |
position, seek, seekPositionSupported, write, writeBoolean, writeBytes, writeBytes, writeBytesReference, writeDouble, writeFloat, writeGenericValue, writeInt, writeLong, writeMap, writeOptionalString, writeOptionalUTF, writeShort, writeString, writeStringArray, writeText, writeUTF, writeVInt, writeVLong |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XerialSnappyCompressedStreamOutput
public XerialSnappyCompressedStreamOutput(StreamOutput out,
SnappyCompressorContext context)
throws IOException
- Throws:
IOException
compress
protected void compress(byte[] data,
int offset,
int len,
StreamOutput out)
throws IOException
- Description copied from class:
CompressedStreamOutput
- Compresses the data into the output
- Specified by:
compress
in class CompressedStreamOutput<SnappyCompressorContext>
- Throws:
IOException
Copyright © 2009-2012. All Rights Reserved.