use of org.apache.ignite.yardstick.cache.model.SampleKey in project ignite by apache.
the class IgniteJdbcStoreGetTxBenchmark method test.
/**
* {@inheritDoc}
*/
@Override
public boolean test(Map<Object, Object> ctx) throws Exception {
int id = nextRandom(args.range());
cache().get(new SampleKey(id));
return true;
}
use of org.apache.ignite.yardstick.cache.model.SampleKey in project ignite by apache.
the class IgniteJdbcStorePutBenchmark method test.
/**
* {@inheritDoc}
*/
@Override
public boolean test(Map<Object, Object> ctx) throws Exception {
int id = nextRandom(args.range());
cache.put(new SampleKey(id), new SampleValue(id));
return true;
}
use of org.apache.ignite.yardstick.cache.model.SampleKey in project ignite by apache.
the class IgniteJdbcStorePutGetTxBenchmark method test.
/**
* {@inheritDoc}
*/
@Override
public boolean test(Map<Object, Object> ctx) throws Exception {
int id = nextRandom(args.range());
Object val = cache.get(new SampleKey(id));
if (val != null)
id = nextRandom(args.range());
cache.put(new SampleKey(id), new SampleValue(id));
return true;
}
use of org.apache.ignite.yardstick.cache.model.SampleKey in project ignite by apache.
the class IgniteJdbcStorePutTxBenchmark method test.
/**
* {@inheritDoc}
*/
@Override
public boolean test(Map<Object, Object> ctx) throws Exception {
int id = nextRandom(args.range());
cache.put(new SampleKey(id), new SampleValue(id));
return true;
}
use of org.apache.ignite.yardstick.cache.model.SampleKey in project ignite by apache.
the class IgniteJdbcStoreGetBenchmark method test.
/**
* {@inheritDoc}
*/
@Override
public boolean test(Map<Object, Object> ctx) throws Exception {
int id = nextRandom(args.range());
cache().get(new SampleKey(id));
return true;
}
Aggregations