Search in sources :

Example 1 with AerospikeTransactionalStore

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);
}
Also used : AerospikeTransactionalStore(org.apache.apex.malhar.contrib.aerospike.AerospikeTransactionalStore) RandomEventGenerator(org.apache.apex.malhar.lib.testbench.RandomEventGenerator)

Aggregations

AerospikeTransactionalStore (org.apache.apex.malhar.contrib.aerospike.AerospikeTransactionalStore)1 RandomEventGenerator (org.apache.apex.malhar.lib.testbench.RandomEventGenerator)1