List of usage examples for org.apache.hadoop.record CsvRecordOutput CsvRecordOutput
public CsvRecordOutput(OutputStream out)
From source file:net.thecubic.mockbi.MockBISummaryKey.java
License:Apache License
public byte[] getBytes() throws IOException { ByteArrayOutputStream baos = new ByteArrayOutputStream(); CsvRecordOutput cro = new CsvRecordOutput(baos); this.serialize(cro); return baos.toByteArray(); }