Class TsvImporterMapper

java.lang.Object
org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,ImmutableBytesWritable,Put>
org.apache.hadoop.hbase.mapreduce.TsvImporterMapper

@Public public class TsvImporterMapper extends org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,ImmutableBytesWritable,Put>
Write table content out to files in hdfs.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper

    org.apache.hadoop.mapreduce.Mapper.Context
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private org.apache.hadoop.mapreduce.Counter
     
    protected String
     
    protected org.apache.hadoop.conf.Configuration
     
    private String
     
    protected CellCreator
     
    private static final org.slf4j.Logger
     
    private boolean
     
     
    private String
    Column seperator
    private boolean
    Should skip bad lines
    private boolean
    Should skip empty columns
    private List<Tag>
    List of cell tags
    protected long
    Timestamp for all inserted rows
    protected long
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    doSetup(org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,ImmutableBytesWritable,Put>.org.apache.hadoop.mapreduce.Mapper.Context context)
    Handles common parameter initialization that a subclass might want to leverage.
    org.apache.hadoop.mapreduce.Counter
     
    boolean
     
    long
     
    void
     
    void
    map(org.apache.hadoop.io.LongWritable offset, org.apache.hadoop.io.Text value, org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,ImmutableBytesWritable,Put>.org.apache.hadoop.mapreduce.Mapper.Context context)
    Convert a line of TSV text into an HBase table row.
    protected void
    populatePut(byte[] lineBytes, ImportTsv.TsvParser.ParsedLine parsed, Put put, int i)
     
    protected void
    setup(org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,ImmutableBytesWritable,Put>.org.apache.hadoop.mapreduce.Mapper.Context context)
    Handles initializing this class with objects specific to it (i.e., the parser).

    Methods inherited from class org.apache.hadoop.mapreduce.Mapper

    cleanup, run

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait