Package org.apache.cassandra.io.compress.ICompressor

Examples of org.apache.cassandra.io.compress.ICompressor.WrappedArray


    }

    public void test(byte[] data, int off, int len) throws IOException
    {
        final int outOffset = 3;
        final WrappedArray out = new WrappedArray(new byte[outOffset + compressor.initialCompressedBufferLength(len)]);
        new Random().nextBytes(out.buffer);
        final int compressedLength = compressor.compress(data, off, len, out, outOffset);
        final int restoredOffset = 5;
        final byte[] restored = new byte[restoredOffset + len];
        new Random().nextBytes(restored);
View Full Code Here

TOP

Related Classes of org.apache.cassandra.io.compress.ICompressor.WrappedArray

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.