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>
Modifier and Type | Field and Description |
---|---|
protected HadoopDruidIndexerConfig |
config |
Constructor and Description |
---|
IndexGeneratorJob.IndexGeneratorReducer() |
Modifier and Type | Method and Description |
---|---|
protected ProgressIndicator |
makeProgressIndicator(org.apache.hadoop.mapreduce.Reducer.Context context) |
protected File |
mergeQueryableIndex(List<QueryableIndex> indexes,
AggregatorFactory[] aggs,
File file,
ProgressIndicator progressIndicator) |
protected File |
persist(IncrementalIndex index,
org.joda.time.Interval interval,
File file,
ProgressIndicator progressIndicator) |
protected void |
reduce(org.apache.hadoop.io.BytesWritable key,
Iterable<org.apache.hadoop.io.BytesWritable> values,
org.apache.hadoop.mapreduce.Reducer.Context context) |
protected void |
setup(org.apache.hadoop.mapreduce.Reducer.Context context) |
protected HadoopDruidIndexerConfig config
public IndexGeneratorJob.IndexGeneratorReducer()
protected ProgressIndicator makeProgressIndicator(org.apache.hadoop.mapreduce.Reducer.Context context)
protected File persist(IncrementalIndex index, org.joda.time.Interval interval, File file, ProgressIndicator progressIndicator) throws IOException
IOException
protected File mergeQueryableIndex(List<QueryableIndex> indexes, AggregatorFactory[] aggs, File file, ProgressIndicator progressIndicator) throws IOException
IOException
protected void setup(org.apache.hadoop.mapreduce.Reducer.Context context) throws IOException, InterruptedException
setup
in class 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>
IOException
InterruptedException
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
reduce
in class 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>
IOException
InterruptedException
Copyright © 2011–2015. All rights reserved.