Class JSONOutputRecordWriter

java.lang.Object
org.apache.drill.exec.store.AbstractRecordWriter
org.apache.drill.exec.store.JSONOutputRecordWriter
All Implemented Interfaces:
RecordWriter
Direct Known Subclasses:
JsonRecordWriter

public abstract class JSONOutputRecordWriter extends AbstractRecordWriter implements RecordWriter
Abstract implementation of RecordWriter interface which exposes interface: #writeHeader(List) #addField(int,String) to output the data in string format instead of implementing addField for each type holder. This is useful for text format writers such as CSV, TSV etc. NB: Source code generated using FreeMarker template JsonOutputRecordWriter.java