Package org.apache.hadoop.vertica

Examples of org.apache.hadoop.vertica.VerticaOutputFormat


      return;
    }

    // TODO: test create schema
    // TODO: test writable variants of data types
    VerticaOutputFormat output = new VerticaOutputFormat();
    Job job = getVerticaJob();
    VerticaOutputFormat.setOutput(job, "mrtarget", true, "a int", "b boolean",
        "c char(1)", "d date", "f float", "t timestamp", "v varchar",
        "z varbinary");
    output.checkOutputSpecs(job, true);
    TaskAttemptContext context = new TaskAttemptContextImpl(job.getConfiguration(),
        new TaskAttemptID());
    VerticaRecordWriter writer = (VerticaRecordWriter) output
        .getRecordWriter(context);

    Text table = new Text();
    table.set("mrtarget");
View Full Code Here

TOP

Related Classes of org.apache.hadoop.vertica.VerticaOutputFormat

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.