Class 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>
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer

        org.apache.hadoop.mapreduce.Reducer.Context
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.apache.druid.segment.ProgressIndicator makeProgressIndicator​(org.apache.hadoop.mapreduce.Reducer.Context context)  
      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)  
      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)  
      • Methods inherited from class org.apache.hadoop.mapreduce.Reducer

        cleanup, run
    • Constructor Detail

      • IndexGeneratorReducer

        public IndexGeneratorReducer()
    • 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:
        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>
      • 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:
        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>
        Throws:
        IOException
        InterruptedException