Search in sources :

Example 11 with MapKey

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);
}
Also used : MapKey(io.questdb.cairo.map.MapKey) MapValue(io.questdb.cairo.map.MapValue)

Example 12 with MapKey

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);
}
Also used : MapKey(io.questdb.cairo.map.MapKey) MapValue(io.questdb.cairo.map.MapValue)

Example 13 with MapKey

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);
}
Also used : MapKey(io.questdb.cairo.map.MapKey) MapValue(io.questdb.cairo.map.MapValue)

Example 14 with MapKey

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);
}
Also used : MapKey(io.questdb.cairo.map.MapKey) MapValue(io.questdb.cairo.map.MapValue)

Example 15 with MapKey

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();
    }
}
Also used : MapKey(io.questdb.cairo.map.MapKey) Record(io.questdb.cairo.sql.Record)

Aggregations

MapKey (io.questdb.cairo.map.MapKey)34 MapValue (io.questdb.cairo.map.MapValue)17 DataFrame (io.questdb.cairo.sql.DataFrame)2 Record (io.questdb.cairo.sql.Record)2 SqlExecutionInterruptor (io.questdb.griffin.SqlExecutionInterruptor)2 EmptyTableRandomRecordCursor (io.questdb.griffin.engine.EmptyTableRandomRecordCursor)2 EmptyTableNoSizeRecordCursor (io.questdb.griffin.engine.EmptyTableNoSizeRecordCursor)1