Package org.apache.hadoop.vertica

Examples of org.apache.hadoop.vertica.VerticaRecordReader.initialize()


    VerticaInputSplit input = getVerticaSplit(false);
    VerticaRecordReader reader = new VerticaRecordReader(input, input
        .getConfiguration());
    TaskAttemptContext context = new TaskAttemptContextImpl(input
        .getConfiguration(), new TaskAttemptID());
    reader.initialize(input, context);

    boolean hasValue = reader.nextKeyValue();
    assertEquals("There should be a record in the database", hasValue, true);
   
    LongWritable key = reader.getCurrentKey();
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.