Example usage for org.apache.hadoop.record CsvRecordOutput CsvRecordOutput

List of usage examples for org.apache.hadoop.record CsvRecordOutput CsvRecordOutput

Introduction

In this page you can find the example usage for org.apache.hadoop.record CsvRecordOutput CsvRecordOutput.

Prototype

public CsvRecordOutput(OutputStream out) 

Source Link

Document

Creates a new instance of CsvRecordOutput

Usage

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();
}