Package xbird.util.codec

Examples of xbird.util.codec.BitwiseCodec


        segment.nextException_ = prev;
        return j; // # of exceptions
    }

    private static void pack(final CompressedSegment segment, final int[] data, final int n) {
        final BitwiseCodec codes = segment.codesBuf;
        final int nbits = segment.bitwidth_;
        for(int i = 0; i < n; i++) {
            codes.putBits(data[i], nbits);
        }
    }
View Full Code Here


        transient int nextException_ = 0;

        public CompressedSegment(int bitwidth) {
            this.bitwidth_ = bitwidth;
            this.maxcode_ = 2 ^ bitwidth;
            this.codesBuf = new BitwiseCodec(4096);
            this.codes = null;
            this.exceptionList = new CharArrayList(64);
        }
View Full Code Here

        transient int nextException_ = 0;

        public CompressedSegment(int bitwidth) {
            this.bitwidth_ = bitwidth;
            this.maxcode_ = 2 ^ bitwidth;
            this.codesBuf = new BitwiseCodec(4096);
            this.codes = null;
            this.exceptionList = new CharArrayList(64);
        }
View Full Code Here

        segment.nextException_ = prev;
        return j; // # of exceptions
    }

    private static void pack(final CompressedSegment segment, final int[] data, final int n) {
        final BitwiseCodec codes = segment.codesBuf;
        final int nbits = segment.bitwidth_;
        for(int i = 0; i < n; i++) {
            codes.putBits(data[i], nbits);
        }
    }
View Full Code Here

TOP

Related Classes of xbird.util.codec.BitwiseCodec

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.