Search in sources :

Example 1 with VirtualRecord

use of io.questdb.cairo.sql.VirtualRecord in project questdb by bluestreak01.

the class NullRecordFactory method getInstance.

public static Record getInstance(ColumnTypes types) {
    final ObjList<Function> functions = new ObjList<>(types.getColumnCount());
    for (int i = 0, n = types.getColumnCount(); i < n; i++) {
        Function function = Constants.getNullConstant(types.getColumnType(i));
        assert function != null;
        functions.add(function);
    }
    return new VirtualRecord(functions);
}
Also used : Function(io.questdb.cairo.sql.Function) ObjList(io.questdb.std.ObjList) VirtualRecord(io.questdb.cairo.sql.VirtualRecord)

Aggregations

Function (io.questdb.cairo.sql.Function)1 VirtualRecord (io.questdb.cairo.sql.VirtualRecord)1 ObjList (io.questdb.std.ObjList)1