use of org.apache.commons.lang.mutable.MutableLong in project knime-core by knime.
the class BigGroupByTable method initMissingValuesMap.
private void initMissingValuesMap() {
m_missingValuesMap = new HashMap<>();
ColumnAggregator[] colAggregators = getColAggregators();
for (ColumnAggregator ca : colAggregators) {
m_missingValuesMap.put(ca.getOriginalColName(), new MutableLong(0L));
}
}
use of org.apache.commons.lang.mutable.MutableLong in project apex-malhar by apache.
the class FSOutputOperatorBenchmark method populateDAG.
@Override
public void populateDAG(DAG dag, Configuration conf) {
String filePath = "HDFSOutputOperatorBenchmarkingApp/" + System.currentTimeMillis();
dag.setAttribute(DAG.STREAMING_WINDOW_SIZE_MILLIS, 1000);
RandomWordGenerator wordGenerator = dag.addOperator("wordGenerator", RandomWordGenerator.class);
dag.getOperatorMeta("wordGenerator").getMeta(wordGenerator.output).getAttributes().put(PortContext.QUEUE_CAPACITY, 10000);
dag.getOperatorMeta("wordGenerator").getAttributes().put(OperatorContext.APPLICATION_WINDOW_COUNT, 1);
FSByteOutputOperator hdfsOutputOperator = dag.addOperator("hdfsOutputOperator", new FSByteOutputOperator());
hdfsOutputOperator.setFilePath(filePath);
dag.getOperatorMeta("hdfsOutputOperator").getAttributes().put(OperatorContext.COUNTERS_AGGREGATOR, new BasicCounters.LongAggregator<MutableLong>());
dag.addStream("Generator2HDFSOutput", wordGenerator.output, hdfsOutputOperator.input);
}
Aggregations