Package org.apache.druid.indexer
Class DetermineHashedPartitionsJob.DetermineCardinalityReducer
- java.lang.Object
-
- org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable>
-
- org.apache.druid.indexer.DetermineHashedPartitionsJob.DetermineCardinalityReducer
-
- Enclosing class:
- DetermineHashedPartitionsJob
public static class DetermineHashedPartitionsJob.DetermineCardinalityReducer extends org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable>
-
-
Field Summary
Fields Modifier and Type Field Description protected HadoopDruidIndexerConfigconfig
-
Constructor Summary
Constructors Constructor Description DetermineCardinalityReducer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidreduce(org.apache.hadoop.io.LongWritable key, Iterable<org.apache.hadoop.io.BytesWritable> values, org.apache.hadoop.mapreduce.Reducer.Context context)voidrun(org.apache.hadoop.mapreduce.Reducer.Context context)protected voidsetup(org.apache.hadoop.mapreduce.Reducer.Context context)
-
-
-
Field Detail
-
config
@Nullable protected HadoopDruidIndexerConfig config
-
-
Method Detail
-
setup
protected void setup(org.apache.hadoop.mapreduce.Reducer.Context context)
- Overrides:
setupin classorg.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable>
-
reduce
protected void reduce(org.apache.hadoop.io.LongWritable key, Iterable<org.apache.hadoop.io.BytesWritable> values, org.apache.hadoop.mapreduce.Reducer.Context context) throws IOException- Overrides:
reducein classorg.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable>- Throws:
IOException
-
run
public void run(org.apache.hadoop.mapreduce.Reducer.Context context) throws IOException, InterruptedException- Overrides:
runin classorg.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable>- Throws:
IOExceptionInterruptedException
-
-