edu.yale.cs.hadoopdb.dataloader
Class GlobalHasher.Map

java.lang.Object
  extended by org.apache.hadoop.mapred.MapReduceBase
      extended by edu.yale.cs.hadoopdb.dataloader.GlobalHasher.Map
All Implemented Interfaces:
java.io.Closeable, org.apache.hadoop.mapred.JobConfigurable, org.apache.hadoop.mapred.Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,GlobalHasher.UnsortableInt,org.apache.hadoop.io.Text>
Enclosing class:
GlobalHasher

static class GlobalHasher.Map
extends org.apache.hadoop.mapred.MapReduceBase
implements org.apache.hadoop.mapred.Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,GlobalHasher.UnsortableInt,org.apache.hadoop.io.Text>


Field Summary
protected  java.lang.String delimiter
           
protected  java.util.regex.Pattern delimiterPattern
           
protected  int hashFieldPos
           
protected  GlobalHasher.UnsortableInt outputKey
           
 
Constructor Summary
GlobalHasher.Map()
           
 
Method Summary
 void configure(org.apache.hadoop.mapred.JobConf job)
           
 void map(org.apache.hadoop.io.LongWritable key, org.apache.hadoop.io.Text value, org.apache.hadoop.mapred.OutputCollector<GlobalHasher.UnsortableInt,org.apache.hadoop.io.Text> output, org.apache.hadoop.mapred.Reporter reporter)
           
 
Methods inherited from class org.apache.hadoop.mapred.MapReduceBase
close
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.io.Closeable
close
 

Field Detail

delimiter

protected java.lang.String delimiter

delimiterPattern

protected java.util.regex.Pattern delimiterPattern

hashFieldPos

protected int hashFieldPos

outputKey

protected GlobalHasher.UnsortableInt outputKey
Constructor Detail

GlobalHasher.Map

GlobalHasher.Map()
Method Detail

configure

public void configure(org.apache.hadoop.mapred.JobConf job)
Specified by:
configure in interface org.apache.hadoop.mapred.JobConfigurable
Overrides:
configure in class org.apache.hadoop.mapred.MapReduceBase

map

public void map(org.apache.hadoop.io.LongWritable key,
                org.apache.hadoop.io.Text value,
                org.apache.hadoop.mapred.OutputCollector<GlobalHasher.UnsortableInt,org.apache.hadoop.io.Text> output,
                org.apache.hadoop.mapred.Reporter reporter)
         throws java.io.IOException
Specified by:
map in interface org.apache.hadoop.mapred.Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,GlobalHasher.UnsortableInt,org.apache.hadoop.io.Text>
Throws:
java.io.IOException