Package com.twitter.elephantbird.mapreduce.output

Examples of com.twitter.elephantbird.mapreduce.output.RCFileThriftOutputFormat


  private static RecordWriter<Writable, Writable>
  createThriftWriter(Class<?> thriftClass, final File file)
                    throws IOException, InterruptedException {

    OutputFormat outputFormat = (
      new RCFileThriftOutputFormat(ThriftUtils.getTypeRef(thriftClass.getName())) {
        @Override
        public Path getDefaultWorkFile(TaskAttemptContext context,
            String extension) throws IOException {
          return new Path(file.toURI().toString());
        }
View Full Code Here


    writable = new ThriftWritable(typeRef);
  }

  @Override @SuppressWarnings("unchecked")
  public OutputFormat getOutputFormat() throws IOException {
    return new RCFileThriftOutputFormat(typeRef);
  }
View Full Code Here

TOP

Related Classes of com.twitter.elephantbird.mapreduce.output.RCFileThriftOutputFormat

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.