Package com.facebook.presto.spi.block

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


                        }
                        else if (javaType == long.class) {
                            output.appendLong(cursor.getLong(column));
                        }
                        else if (javaType == double.class) {
                            output.appendDouble(cursor.getDouble(column));
                        }
                        else if (javaType == Slice.class) {
                            output.appendSlice(cursor.getSlice(column));
                        }
                        else {
View Full Code Here


        for (Double value : values) {
            if (value == null) {
                builder.appendNull();
            }
            else {
                builder.appendDouble(value);
            }
        }

        return builder.build();
    }
View Full Code Here

    public static Block createDoubleSequenceBlock(int start, int end)
    {
        BlockBuilder builder = DOUBLE.createBlockBuilder(new BlockBuilderStatus());

        for (int i = start; i < end; i++) {
            builder.appendDouble((double) i);
        }

        return builder.build();
    }
View Full Code Here

                        }
                        else if (javaType == long.class) {
                            output.appendLong(cursor.getLong(column));
                        }
                        else if (javaType == double.class) {
                            output.appendDouble(cursor.getDouble(column));
                        }
                        else if (javaType == Slice.class) {
                            output.appendSlice(cursor.getSlice(column));
                        }
                        else {
View Full Code Here

        for (Double value : values) {
            if (value == null) {
                builder.appendNull();
            }
            else {
                builder.appendDouble(value);
            }
        }

        return builder.build();
    }
View Full Code Here

    public static Block createDoubleSequenceBlock(int start, int end)
    {
        BlockBuilder builder = DOUBLE.createBlockBuilder(new BlockBuilderStatus());

        for (int i = start; i < end; i++) {
            builder.appendDouble((double) i);
        }

        return builder.build();
    }
View Full Code Here

                }
                else if (javaType == long.class) {
                    blockBuilder.appendLong((Long) value);
                }
                else if (javaType == double.class) {
                    blockBuilder.appendDouble((Double) value);
                }
                else if (javaType == Slice.class) {
                    blockBuilder.appendSlice((Slice) value);
                }
                else {
View Full Code Here

        }
        else if (type.getJavaType() == long.class) {
            blockBuilder.appendLong((Long) value);
        }
        else if (type.getJavaType() == double.class) {
            blockBuilder.appendDouble((Double) value);
        }
        else if (type.getJavaType() == Slice.class) {
            blockBuilder.appendSlice(Slices.utf8Slice((String) value));
        }
        return blockBuilder.build();
View Full Code Here

        }
        else if (type.equals(BIGINT)) {
            blockBuilder.appendLong(((Long) value) + 1);
        }
        else if (type.equals(DOUBLE)) {
            blockBuilder.appendDouble(((Double) value) + 1);
        }
        else if (type.equals(VARCHAR)) {
            blockBuilder.appendSlice(Slices.utf8Slice(value + "_"));
        }
        return blockBuilder.build();
View Full Code Here

        }
        else if (type.getJavaType() == long.class) {
            blockBuilder.appendLong(1);
        }
        else if (type.getJavaType() == double.class) {
            blockBuilder.appendDouble(1);
        }
        else if (type.getJavaType() == Slice.class) {
            blockBuilder.appendSlice(Slices.utf8Slice("_"));
        }
        return blockBuilder.build();
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.