com.datasalt.pangool.tuplemr.mapred.lib.output
Class TupleTextOutputFormat.CustomCSVWriter

java.lang.Object
  extended by com.datasalt.pangool.tuplemr.mapred.lib.output.TupleTextOutputFormat.CustomCSVWriter
Enclosing class:
TupleTextOutputFormat

public static class TupleTextOutputFormat.CustomCSVWriter
extends Object

We had to almost re-implement CSVWriter for properly supporting null strings. We can't reuse a lot of code due to inheritance / visibility problems.


Constructor Summary
TupleTextOutputFormat.CustomCSVWriter(Writer writer, char separator, char quotechar, char escapechar, String nullString)
           
 
Method Summary
 void close()
           
protected  StringBuilder processLine(String nextElement)
           
 void writeNext(String[] toWrite)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TupleTextOutputFormat.CustomCSVWriter

public TupleTextOutputFormat.CustomCSVWriter(Writer writer,
                                             char separator,
                                             char quotechar,
                                             char escapechar,
                                             String nullString)
Method Detail

writeNext

public void writeNext(String[] toWrite)
               throws IOException
Throws:
IOException

processLine

protected StringBuilder processLine(String nextElement)

close

public void close()
           throws IOException
Throws:
IOException


Copyright © –2014 Datasalt Systems S.L.. All rights reserved.