org.apache.hadoop.hbase.mapreduce
Class Import.KeyValueSortImporter

java.lang.Object
  extended by org.apache.hadoop.mapreduce.Mapper<ImmutableBytesWritable,Result,KEYOUT,VALUEOUT>
      extended by org.apache.hadoop.hbase.mapreduce.TableMapper<Import.KeyValueWritableComparable,KeyValue>
          extended by org.apache.hadoop.hbase.mapreduce.Import.KeyValueSortImporter
Enclosing class:
Import

public static class Import.KeyValueSortImporter
extends TableMapper<Import.KeyValueWritableComparable,KeyValue>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper
org.apache.hadoop.mapreduce.Mapper.Context
 
Constructor Summary
Import.KeyValueSortImporter()
           
 
Method Summary
 void map(ImmutableBytesWritable row, Result value, org.apache.hadoop.mapreduce.Mapper.Context context)
           
 void setup(org.apache.hadoop.mapreduce.Mapper.Context context)
           
 
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
 

Constructor Detail

Import.KeyValueSortImporter

public Import.KeyValueSortImporter()
Method Detail

map

public void map(ImmutableBytesWritable row,
                Result value,
                org.apache.hadoop.mapreduce.Mapper.Context context)
         throws IOException
Overrides:
map in class org.apache.hadoop.mapreduce.Mapper<ImmutableBytesWritable,Result,Import.KeyValueWritableComparable,KeyValue>
Parameters:
row - The current table row key.
value - The columns.
context - The current context.
Throws:
IOException - When something is broken with the data.

setup

public void setup(org.apache.hadoop.mapreduce.Mapper.Context context)
           throws IOException
Overrides:
setup in class org.apache.hadoop.mapreduce.Mapper<ImmutableBytesWritable,Result,Import.KeyValueWritableComparable,KeyValue>
Throws:
IOException


Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.