use of io.questdb.cairo.map.MapKey in project questdb by bluestreak01.
the class QMapWriteBenchmark method testDirectMap.
@Benchmark
public void testDirectMap() {
MapKey key = map.withKey();
key.putStr(rnd.nextChars(M));
MapValue values = key.createValue();
values.putLong(0, 20);
}
use of io.questdb.cairo.map.MapKey in project questdb by bluestreak01.
the class QMapWriteBenchmark method testQMap.
@Benchmark
public void testQMap() {
MapKey key = qmap.withKey();
key.putStr(rnd.nextChars(M));
MapValue value = key.createValue();
value.putLong(0, 20);
}
use of io.questdb.cairo.map.MapKey in project questdb by bluestreak01.
the class QMapWriteLongBenchmark method testDirectMap.
@Benchmark
public void testDirectMap() {
MapKey key = map.withKey();
key.putLong(rnd.nextLong());
MapValue values = key.createValue();
values.putLong(0, 20);
}
use of io.questdb.cairo.map.MapKey in project questdb by bluestreak01.
the class QMapWriteLongBenchmark method testQMap.
@Benchmark
public void testQMap() {
MapKey key = qmap.withKey();
key.putLong(rnd.nextLong());
MapValue value = key.createValue();
value.putLong(0, 20);
}
use of io.questdb.cairo.map.MapKey in project questdb by bluestreak01.
the class IntersectRecordCursor method populateSlaveMap.
private void populateSlaveMap(RecordCursor cursor) {
final Record record = cursor.getRecord();
while (cursor.hasNext()) {
MapKey key = map.withKey();
key.put(record, recordSink);
key.createValue();
interruptor.checkInterrupted();
}
}
Aggregations