Package com.facebook.presto.spi.block

Examples of com.facebook.presto.spi.block.RandomAccessBlock


        int blockIndex = decodeSliceIndex(pageAddress);
        int blockPosition = decodePosition(pageAddress);

        int result = 0;
        for (int channel : channels) {
            RandomAccessBlock block = this.channels[channel].get(blockIndex);
            result = 31 * result + block.hash(blockPosition);
        }
        return result;
    }
View Full Code Here


            // output the group id for this row
            blockBuilder.appendLong(groupId);
        }

        RandomAccessBlock block = blockBuilder.build();
        return new GroupByIdBlock(nextGroupId, block);
    }
View Full Code Here

    }

    @Override
    protected BlockCursor createTestCursor()
    {
        RandomAccessBlock dictionary = VARCHAR.createBlockBuilder(new BlockBuilderStatus())
                .appendNull()
                .appendSlice(Slices.utf8Slice("apple"))
                .appendSlice(Slices.utf8Slice("banana"))
                .appendSlice(Slices.utf8Slice("cherry"))
                .appendSlice(Slices.utf8Slice("date"))
View Full Code Here

    }

    @Override
    protected BlockCursor createTestCursor()
    {
        RandomAccessBlock dictionary = VARCHAR.createBlockBuilder(new BlockBuilderStatus())
                .appendSlice(Slices.utf8Slice("apple"))
                .appendSlice(Slices.utf8Slice("banana"))
                .appendSlice(Slices.utf8Slice("cherry"))
                .appendSlice(Slices.utf8Slice("date"))
                .build()
View Full Code Here

TOP

Related Classes of com.facebook.presto.spi.block.RandomAccessBlock

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.