Class TsvImporterCustomTestMapperForOprAttr
java.lang.Object
org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,org.apache.hadoop.hbase.io.ImmutableBytesWritable,org.apache.hadoop.hbase.client.Put>
org.apache.hadoop.hbase.mapreduce.TsvImporterMapper
org.apache.hadoop.hbase.mapreduce.TsvImporterCustomTestMapperForOprAttr
public class TsvImporterCustomTestMapperForOprAttr
extends org.apache.hadoop.hbase.mapreduce.TsvImporterMapper
Just shows a simple example of how the attributes can be extracted and added to the puts
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper
org.apache.hadoop.mapreduce.Mapper.Context
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.mapreduce.TsvImporterMapper
cellVisibilityExpr, conf, kvCreator, parser, ts, ttl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate String
protected void
populatePut
(byte[] lineBytes, org.apache.hadoop.hbase.mapreduce.ImportTsv.TsvParser.ParsedLine parsed, org.apache.hadoop.hbase.client.Put put, int i) Methods inherited from class org.apache.hadoop.hbase.mapreduce.TsvImporterMapper
doSetup, getBadLineCount, getSkipBadLines, getTs, incrementBadLineCount, map, setup
Methods inherited from class org.apache.hadoop.mapreduce.Mapper
cleanup, run
-
Constructor Details
-
TsvImporterCustomTestMapperForOprAttr
-
-
Method Details
-
populatePut
protected void populatePut(byte[] lineBytes, org.apache.hadoop.hbase.mapreduce.ImportTsv.TsvParser.ParsedLine parsed, org.apache.hadoop.hbase.client.Put put, int i) throws org.apache.hadoop.hbase.mapreduce.ImportTsv.TsvParser.BadTsvLineException, IOException - Overrides:
populatePut
in classorg.apache.hadoop.hbase.mapreduce.TsvImporterMapper
- Throws:
org.apache.hadoop.hbase.mapreduce.ImportTsv.TsvParser.BadTsvLineException
IOException
-
msg
-