Examples of equalTo()


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

                // update run length stats
                Block value = block.getSingleValueBlock(position);
                if (lastValue == null) {
                    lastValue = value;
                }
                else if (!value.equalTo(0, lastValue, 0)) {
                    runsCount++;
                    lastValue = value;
                }

                // update dictionary stats
View Full Code Here

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

    public boolean positionEqualsRow(int leftBlockIndex, int leftBlockPosition, int rightPosition, Block[] rightBlocks)
    {
        for (int i = 0; i < hashChannels.size(); i++) {
            List<Block> channel = hashChannels.get(i);
            Block block = channel.get(leftBlockIndex);
            if (!block.equalTo(leftBlockPosition, rightBlocks[i], rightPosition)) {
                return false;
            }
        }
        return true;
    }
View Full Code Here

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

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

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

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

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

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

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

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

                // update dictionary stats
View Full Code Here

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

        assertEquals(block.hash(position), expectedHash);

        Block expectedBlock = createBlock(expectedType, expectedValue);
        assertTrue(block.equalTo(position, block, position));
        assertTrue(block.equalTo(position, expectedBlock, 0));
        assertTrue(expectedBlock.equalTo(0, block, position));

        assertEquals(block.isNull(position), expectedValue == null);

        assertTrue((block.compareTo(ASC_NULLS_FIRST, position, expectedBlock, 0) == 0));
        assertTrue((block.compareTo(ASC_NULLS_LAST, position, expectedBlock, 0) == 0));
View Full Code Here

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

        public boolean equals(int position, BlockCursor... row)
        {
            for (int i = 0; i < channels.size(); i++) {
                BlockBuilder thisBlock = this.channels.get(i);
                if (!thisBlock.equalTo(position, row[i])) {
                    return false;
                }
            }
            return true;
        }
View Full Code Here

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

        public boolean equals(int position, BlockCursor... row)
        {
            for (int i = 0; i < channels.size(); i++) {
                BlockBuilder thisBlock = this.channels.get(i);
                if (!thisBlock.equalTo(position, row[i])) {
                    return false;
                }
            }
            return true;
        }
View Full Code Here

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

        public boolean equals(int position, BlockCursor... row)
        {
            for (int i = 0; i < channels.size(); i++) {
                BlockBuilder thisBlock = this.channels.get(i);
                if (!thisBlock.equalTo(position, row[i])) {
                    return false;
                }
            }
            return true;
        }
View Full Code Here

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
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.