Search in sources :

Example 1 with MemoryCARW

use of io.questdb.cairo.vm.api.MemoryCARW in project questdb by bluestreak01.

the class O3PartitionJob method processPartition.

public static void processPartition(long tmpBuf, O3PartitionTask task, long cursor, Sequence subSeq) {
    // find "current" partition boundary in the out of order data
    // once we know the boundary we can move on to calculating another one
    // srcOooHi is index inclusive of value
    final CharSequence pathToTable = task.getPathToTable();
    final int partitionBy = task.getPartitionBy();
    final ObjList<MemoryMAR> columns = task.getColumns();
    final ObjList<MemoryCARW> oooColumns = task.getO3Columns();
    final long srcOooLo = task.getSrcOooLo();
    final long srcOooHi = task.getSrcOooHi();
    final long srcOooMax = task.getSrcOooMax();
    final long oooTimestampMin = task.getOooTimestampMin();
    final long oooTimestampMax = task.getOooTimestampMax();
    final long partitionTimestamp = task.getPartitionTimestamp();
    final long maxTimestamp = task.getMaxTimestamp();
    final long srcDataMax = task.getSrcDataMax();
    final long srcDataTxn = task.getSrcNameTxn();
    final boolean last = task.isLast();
    final long txn = task.getTxn();
    final long sortedTimestampsAddr = task.getSortedTimestampsAddr();
    final TableWriter tableWriter = task.getTableWriter();
    final AtomicInteger columnCounter = task.getColumnCounter();
    final O3Basket o3Basket = task.getO3Basket();
    subSeq.done(cursor);
    processPartition(pathToTable, partitionBy, columns, oooColumns, srcOooLo, srcOooHi, srcOooMax, oooTimestampMin, oooTimestampMax, partitionTimestamp, maxTimestamp, srcDataMax, srcDataTxn, last, txn, sortedTimestampsAddr, tableWriter, columnCounter, o3Basket, tmpBuf);
}
Also used : TableWriter(io.questdb.cairo.TableWriter) AtomicInteger(java.util.concurrent.atomic.AtomicInteger) MemoryMAR(io.questdb.cairo.vm.api.MemoryMAR) MemoryCARW(io.questdb.cairo.vm.api.MemoryCARW)

Aggregations

TableWriter (io.questdb.cairo.TableWriter)1 MemoryCARW (io.questdb.cairo.vm.api.MemoryCARW)1 MemoryMAR (io.questdb.cairo.vm.api.MemoryMAR)1 AtomicInteger (java.util.concurrent.atomic.AtomicInteger)1