Examples of DelimitedRowFormatInfo


Examples of com.asakusafw.directio.hive.common.DelimitedRowFormatInfo

     * w/ simple row format.
     * @throws Exception if exists
     */
    @Test
    public void w_simple_row_format() throws Exception {
        DelimitedRowFormatInfo format = new DelimitedRowFormatInfo();
        SimpleTableInfo table = new SimpleTableInfo("testing")
            .withField(new SimpleFieldInfo("col1", TypeInfoFactory.intTypeInfo))
            .withRowFormat(format)
            .withFormatName("TEXT");
        emit(new SimpleCreateTable(table));
View Full Code Here

Examples of com.asakusafw.directio.hive.common.DelimitedRowFormatInfo

     * w/ complex row format.
     * @throws Exception if exists
     */
    @Test
    public void w_complex_row_format() throws Exception {
        DelimitedRowFormatInfo format = new DelimitedRowFormatInfo();
        format.setFieldsTerminatedBy("\t");
        format.setEscapedBy("\\");
        format.setCollectionItemsTerminatedBy(":");
        format.setMapKeysTerminatedBy("=");
        format.setLinesTerminatedBy("\n");
        format.setNullDefinedAs("\0");

        SimpleTableInfo table = new SimpleTableInfo("testing")
            .withField(new SimpleFieldInfo("col1", TypeInfoFactory.intTypeInfo))
            .withRowFormat(format)
            .withFormatName("TEXT");
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.