Examples of ReduceContext


Examples of org.apache.hadoop.mapreduce.ReduceContext

      String fileName = context.getConfiguration().get(
          SimpleCombiner.CONF_COMBINER_HANDLER);
      handler = InstancesDistributor.loadInstance(context.getConfiguration(),
          TupleReducer.class, fileName, true);

      @SuppressWarnings("rawtypes")
      ReduceContext castedContext = context;
      this.context = new TupleMRContext(castedContext, tupleMRConfig);
      collector = handler.new CombinerCollector(castedContext);
      handler.setup(this.context, collector);
    } catch(TupleMRException e) {
View Full Code Here

Examples of org.apache.hadoop.mapreduce.ReduceContext

      String fileName = context.getConfiguration().get(
          SimpleCombiner.CONF_COMBINER_HANDLER);
      handler = DCUtils.loadSerializedObjectInDC(context.getConfiguration(),
          TupleReducer.class, fileName, true);

      @SuppressWarnings("rawtypes")
      ReduceContext castedContext = context;
      this.context = new TupleMRContext(castedContext, tupleMRConfig);
      collector = handler.new CombinerCollector(castedContext);
      handler.setup(this.context, collector);
    } catch(TupleMRException e) {
View Full Code Here

Examples of org.apache.hadoop.mapreduce.ReduceContext

      String fileName = context.getConfiguration().get(
          SimpleCombiner.CONF_COMBINER_HANDLER);
      handler = DCUtils.loadSerializedObjectInDC(context.getConfiguration(),
          TupleReducer.class, fileName, true);

      @SuppressWarnings("rawtypes")
      ReduceContext castedContext = context;
      this.context = new TupleMRContext(castedContext, tupleMRConfig);
      collector = handler.new CombinerCollector(castedContext);
      handler.setup(this.context, collector);
    } catch(TupleMRException e) {
View Full Code Here

Examples of org.elasticsearch.search.aggregations.InternalAggregation.ReduceContext

        List<InternalAggregations> aggregationsList = new ArrayList<>(shardResults.size());
        for (PercolateShardResponse shardResult : shardResults) {
            aggregationsList.add(shardResult.aggregations());
        }
        return InternalAggregations.reduce(aggregationsList, new ReduceContext(null, bigArrays, scriptService));
    }
View Full Code Here

Examples of org.elasticsearch.search.aggregations.InternalAggregation.ReduceContext

            if (firstResult.aggregations() != null && firstResult.aggregations().asList() != null) {
                List<InternalAggregations> aggregationsList = new ArrayList<>(queryResults.size());
                for (AtomicArray.Entry<? extends QuerySearchResultProvider> entry : queryResults) {
                    aggregationsList.add((InternalAggregations) entry.value.queryResult().aggregations());
                }
                aggregations = InternalAggregations.reduce(aggregationsList, new ReduceContext(null, bigArrays, scriptService));
            }
        }

        InternalSearchHits searchHits = new InternalSearchHits(hits.toArray(new InternalSearchHit[hits.size()]), totalHits, maxScore);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.