Package com.facebook.presto.tuple.TupleInfo

Examples of com.facebook.presto.tuple.TupleInfo.Builder


    }

    @Test
    public void testAppendWithNull()
    {
        Builder builder = TupleInfo.SINGLE_LONG.builder();
        assertTrue(builder.append(NULL_LONG_TUPLE).build().isNull(0));
    }
View Full Code Here


    }

    @Test
    public void testAppendWithNull()
    {
        Builder builder = TupleInfo.SINGLE_LONG.builder();
        assertTrue(builder.append(NULL_LONG_TUPLE).build().isNull());
    }
View Full Code Here

    public static final Tuple NULL_LONG_TUPLE = nullTuple(SINGLE_LONG);
    public static final Tuple NULL_DOUBLE_TUPLE = nullTuple(SINGLE_DOUBLE);

    public static Tuple nullTuple(TupleInfo tupleInfo)
    {
        Builder builder = tupleInfo.builder();
        for (int i = 0; i < tupleInfo.getFieldCount(); i++) {
            builder.appendNull();
        }
        return builder.build();
    }
View Full Code Here

TOP

Related Classes of com.facebook.presto.tuple.TupleInfo.Builder

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.