Example usage for org.apache.hadoop.streaming PipeMapRed getFieldSeparator

List of usage examples for org.apache.hadoop.streaming PipeMapRed getFieldSeparator

Introduction

In this page you can find the example usage for org.apache.hadoop.streaming PipeMapRed getFieldSeparator.

Prototype

public abstract byte[] getFieldSeparator();

Source Link

Document

Returns the field separator to be used.

Usage

From source file:fm.last.darling.hbase.HBaseJSONOutputReader.java

License:Apache License

@Override
public void initialize(PipeMapRed pipeMapRed) throws IOException {
    super.initialize(pipeMapRed);

    rowkey = new ImmutableBytesWritable();
    line = new Text();

    datainput = pipeMapRed.getClientInput();
    conf = pipeMapRed.getConfiguration();
    numKeyFields = pipeMapRed.getNumOfKeyFields();
    separator = pipeMapRed.getFieldSeparator();

    lineReader = new LineReader((InputStream) datainput, conf);
}