use of io.questdb.cairo.map.FastMap in project Mycat2 by MyCATApache.
the class MapFactory method createMap.
public static Map createMap(IntInnerType[] keys, InnerType[] values) {
ColumnTypes keyTypes = getKeyTypes(keys);
int[] valueTypes = Arrays.stream(values).mapToInt(i -> toQuestDbType(i)).toArray();
int MB = 1024 * 1024;
return new FastMap(16 * MB, keyTypes, new ColumnTypes() {
@Override
public int getColumnCount() {
return valueTypes.length;
}
@Override
public int getColumnType(int columnIndex) {
return valueTypes[columnIndex];
}
}, 128, 0.5, 64);
}
Aggregations