Package com.facebook.presto.block.snappy

Examples of com.facebook.presto.block.snappy.SnappyBlockEncoding


    {
        checkNotNull(block, "block is null");
        checkState(!finished, "already finished");

        if (encoding == null) {
            encoding = new SnappyBlockEncoding(block.getType(), block.getEncoding());
            blockBuilder = block.getType().createBlockBuilder(new BlockBuilderStatus());
        }
        for (int position = 0; position < block.getPositionCount(); position++) {
            block.appendTo(position, blockBuilder);
            if (blockBuilder.isFull()) {
View Full Code Here


    {
        checkNotNull(block, "block is null");
        checkState(!finished, "already finished");

        if (encoding == null) {
            encoding = new SnappyBlockEncoding(block.getType(), block.getEncoding());
            blockBuilder = block.getType().createBlockBuilder(new BlockBuilderStatus());
        }
        BlockCursor cursor = block.cursor();
        while (cursor.advanceNextPosition()) {
            cursor.appendTo(blockBuilder);
View Full Code Here

    {
        checkNotNull(block, "block is null");
        checkState(!finished, "already finished");

        if (encoding == null) {
            encoding = new SnappyBlockEncoding(block.getEncoding());
            blockBuilder = type.createBlockBuilder(new BlockBuilderStatus());
        }
        for (int position = 0; position < block.getPositionCount(); position++) {
            type.appendTo(block, position, blockBuilder);
            if (blockBuilder.isFull()) {
View Full Code Here

TOP

Related Classes of com.facebook.presto.block.snappy.SnappyBlockEncoding

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.