Package com.facebook.presto.spi.block

Examples of com.facebook.presto.spi.block.RandomAccessBlock.equalTo()


    public boolean positionEqualsCursors(int blockIndex, int blockPosition, BlockCursor[] cursors)
    {
        for (int i = 0; i < hashChannels.size(); i++) {
            List<RandomAccessBlock> channel = hashChannels.get(i);
            RandomAccessBlock block = channel.get(blockIndex);
            if (!block.equalTo(blockPosition, cursors[i])) {
                return false;
            }
        }
        return true;
    }
View Full Code Here


            int channel = channels[i];
            BlockCursor cursor = cursors[i];

            RandomAccessBlock block = this.channels[channel].get(blockIndex);

            if (!block.equalTo(blockPosition, cursor)) {
                return false;
            }
        }
        return true;
    }
View Full Code Here

                // update run length stats
                RandomAccessBlock randomAccessBlock = cursor.getSingleValueBlock();
                if (lastValue == null) {
                    lastValue = randomAccessBlock;
                }
                else if (!randomAccessBlock.equalTo(0, lastValue, 0)) {
                    runsCount++;
                    lastValue = randomAccessBlock;
                }

                // update dictionary stats
View Full Code Here

            int channel = channels[i];
            BlockCursor cursor = cursors[i];

            RandomAccessBlock block = this.channels[channel].get(blockIndex);

            if (!block.equalTo(blockPosition, cursor)) {
                return false;
            }
        }
        return true;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.