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

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

Introduction

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

Prototype

public abstract int getNumOfKeyFields();

Source Link

Document

Returns the number of key fields.

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