Package org.apache.druid.indexer
Class IndexGeneratorJob.IndexGeneratorReducer
- java.lang.Object
-
- org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.Text>
-
- org.apache.druid.indexer.IndexGeneratorJob.IndexGeneratorReducer
-
- Enclosing class:
- IndexGeneratorJob
public static class IndexGeneratorJob.IndexGeneratorReducer extends org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.Text>
-
-
Field Summary
Fields Modifier and Type Field Description protected HadoopDruidIndexerConfigconfig
-
Constructor Summary
Constructors Constructor Description IndexGeneratorReducer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.druid.segment.ProgressIndicatormakeProgressIndicator(org.apache.hadoop.mapreduce.Reducer.Context context)protected FilemergeQueryableIndex(List<org.apache.druid.segment.QueryableIndex> indexes, org.apache.druid.query.aggregation.AggregatorFactory[] aggs, File file, org.apache.druid.segment.ProgressIndicator progressIndicator)protected voidreduce(org.apache.hadoop.io.BytesWritable key, Iterable<org.apache.hadoop.io.BytesWritable> values, org.apache.hadoop.mapreduce.Reducer.Context context)protected voidsetup(org.apache.hadoop.mapreduce.Reducer.Context context)
-
-
-
Field Detail
-
config
protected HadoopDruidIndexerConfig config
-
-
Method Detail
-
makeProgressIndicator
protected org.apache.druid.segment.ProgressIndicator makeProgressIndicator(org.apache.hadoop.mapreduce.Reducer.Context context)
-
mergeQueryableIndex
protected File mergeQueryableIndex(List<org.apache.druid.segment.QueryableIndex> indexes, org.apache.druid.query.aggregation.AggregatorFactory[] aggs, File file, org.apache.druid.segment.ProgressIndicator progressIndicator) throws IOException
- Throws:
IOException
-
setup
protected void setup(org.apache.hadoop.mapreduce.Reducer.Context context)
- Overrides:
setupin classorg.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.Text>
-
reduce
protected void reduce(org.apache.hadoop.io.BytesWritable key, Iterable<org.apache.hadoop.io.BytesWritable> values, org.apache.hadoop.mapreduce.Reducer.Context context) throws IOException, InterruptedException- Overrides:
reducein classorg.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.Text>- Throws:
IOExceptionInterruptedException
-
-