public abstract class HadoopDruidIndexerMapper<KEYOUT,VALUEOUT> extends org.apache.hadoop.mapreduce.Mapper<Object,Object,KEYOUT,VALUEOUT>
Modifier and Type | Field and Description |
---|---|
protected HadoopDruidIndexerConfig |
config |
protected GranularitySpec |
granularitySpec |
Constructor and Description |
---|
HadoopDruidIndexerMapper() |
Modifier and Type | Method and Description |
---|---|
HadoopDruidIndexerConfig |
getConfig() |
io.druid.data.input.impl.InputRowParser |
getParser() |
protected abstract void |
innerMap(io.druid.data.input.InputRow inputRow,
Object value,
org.apache.hadoop.mapreduce.Mapper.Context context) |
protected void |
map(Object key,
Object value,
org.apache.hadoop.mapreduce.Mapper.Context context) |
static io.druid.data.input.InputRow |
parseInputRow(Object value,
io.druid.data.input.impl.InputRowParser parser) |
protected void |
setup(org.apache.hadoop.mapreduce.Mapper.Context context) |
protected HadoopDruidIndexerConfig config
protected GranularitySpec granularitySpec
protected void setup(org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException, InterruptedException
setup
in class org.apache.hadoop.mapreduce.Mapper<Object,Object,KEYOUT,VALUEOUT>
IOException
InterruptedException
public HadoopDruidIndexerConfig getConfig()
public io.druid.data.input.impl.InputRowParser getParser()
protected void map(Object key, Object value, org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException, InterruptedException
map
in class org.apache.hadoop.mapreduce.Mapper<Object,Object,KEYOUT,VALUEOUT>
IOException
InterruptedException
public static final io.druid.data.input.InputRow parseInputRow(Object value, io.druid.data.input.impl.InputRowParser parser)
protected abstract void innerMap(io.druid.data.input.InputRow inputRow, Object value, org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2011–2015. All rights reserved.