@Test public void testInputAsDataInAndCSVOut() { String csvExpected = "10,34,'54','random data'," + getByteFieldString(new byte[] { (byte) -112, (byte) 54 }) + ",'" + String.valueOf(0x0A) + "','ENUM'," + csvArray + "," + map + ",true," + dateTime + "," + time + "," + date + ",13.44," + csvSet; dataFormat.setData(createJSONObject()); assertEquals(csvExpected, dataFormat.getCSVTextData()); }
@Override public String getCSVTextData() { super.validateSchema(schema); return toCSV(data); }
JSONIntermediateDataFormat extends IntermediateDataFormat<JSONObject> { @Override public String getCSVTextData() { super.validateSchema(schema); return toCSV(data); } }
JSONIntermediateDataFormat extends IntermediateDataFormat<JSONObject> { @Override public String getCSVTextData() { super.validateSchema(schema); return toCSV(data); } JSONIntermediateDataFormat();  JSONIntermediateDataFormat(Schema schema); }
JSONIntermediateDataFormat extends IntermediateDataFormat<JSONObject> { @Override public String getCSVTextData() { super.validateSchema(schema); return toCSV(data); } JSONIntermediateDataFormat();  JSONIntermediateDataFormat(Schema schema); @Override void setCSVTextData(String text); @Override String getCSVTextData(); @Override void setObjectData(Object[] data); @Override Object[] getObjectData(); @Override void write(DataOutput out); @Override void read(DataInput in); @Override Set<String> getJars(); @Override String toString(); }
JSONIntermediateDataFormat extends IntermediateDataFormat<JSONObject> { @Override public String getCSVTextData() { super.validateSchema(schema); return toCSV(data); } JSONIntermediateDataFormat();  JSONIntermediateDataFormat(Schema schema); @Override void setCSVTextData(String text); @Override String getCSVTextData(); @Override void setObjectData(Object[] data); @Override Object[] getObjectData(); @Override void write(DataOutput out); @Override void read(DataInput in); @Override Set<String> getJars(); @Override String toString();  }