Example usage for org.apache.hadoop.mapreduce.lib.join TupleWritable get

List of usage examples for org.apache.hadoop.mapreduce.lib.join TupleWritable get

Introduction

In this page you can find the example usage for org.apache.hadoop.mapreduce.lib.join TupleWritable get.

Prototype

public Writable get(int i) 

Source Link

Document

Get ith Writable from Tuple.

Usage

From source file:mapreduce.MapSideMapper.java

@Override
public void map(Text key, TupleWritable value, Context context) throws IOException, InterruptedException {
    LicenseNameWritable name = (LicenseNameWritable) value.get(0);
    LicenseTypeWritable type = (LicenseTypeWritable) value.get(1);
    _outValue.set(type.get_liecenseType());
    _keyOut.set(name.get_name());//w  ww  .j  a v a 2  s  .c o  m
    context.write(_keyOut, _outValue);

}