use of org.apache.apex.malhar.contrib.aerospike.AerospikeTransactionalStore in project apex-malhar by apache.
the class AerospikeOutputBenchmarkApplication method populateDAG.
@Override
public void populateDAG(DAG dag, Configuration conf) {
RandomEventGenerator rand = dag.addOperator("rand", new RandomEventGenerator());
rand.setMaxvalue(3000);
rand.setTuplesBlast(250);
AerospikeOutputOperator aero = dag.addOperator("aero", new AerospikeOutputOperator());
AerospikeTransactionalStore store = new AerospikeTransactionalStore();
store.setNode(NODE);
store.setPort(PORT);
store.setNamespace(NAMESPACE);
aero.setStore(store);
dag.addStream("rand_aero", rand.integer_data, aero.input).setLocality(locality);
}
Aggregations