Package com.alexholmes.hadooputils.combine.common

Examples of com.alexholmes.hadooputils.combine.common.MetricsSink


    protected void writeSplitsToSink(Configuration conf, Map<String, List<CombineFileSplitAdapter>> splits) {

        Class<? extends MetricsSink> theClass = conf.getClass("hadooputils.combine.sink.class", LoggerSink.class, MetricsSink.class);

        MetricsSink sink = ReflectionUtils.newInstance(theClass, conf);

        for (Map.Entry<String, List<CombineFileSplitAdapter>> entry : splits.entrySet()) {
            sink.pushLocation(entry.getKey(), entry.getValue());
        }
    }
View Full Code Here


    protected void writeSplitsToSink(Configuration conf, Map<String, List<CombineFileSplitAdapter>> splits) {

        Class<? extends MetricsSink> theClass = conf.getClass("hadooputils.combine.sink.class", LoggerSink.class, MetricsSink.class);

        MetricsSink sink = ReflectionUtils.newInstance(theClass, conf);

        for (Map.Entry<String, List<CombineFileSplitAdapter>> entry : splits.entrySet()) {
            sink.pushLocation(entry.getKey(), entry.getValue());
        }
    }
View Full Code Here

TOP

Related Classes of com.alexholmes.hadooputils.combine.common.MetricsSink

Copyright © 2018 www.massapicom. 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.