use of com.questdb.cairo.TableModel in project questdb by bluestreak01.
the class QueryFilterAnalyserTest method setUp2.
@BeforeClass
public static void setUp2() {
try (TableModel model = new TableModel(configuration, "x", PartitionBy.NONE)) {
model.col("sym", ColumnType.SYMBOL).indexed(true, 16).col("bid", ColumnType.DOUBLE).col("ask", ColumnType.DOUBLE).col("bidSize", ColumnType.INT).col("askSize", ColumnType.INT).col("mode", ColumnType.SYMBOL).indexed(true, 4).col("ex", ColumnType.SYMBOL).indexed(true, 4).timestamp();
CairoTestUtils.create(model);
}
try (TableModel model = new TableModel(configuration, "y", PartitionBy.NONE)) {
model.col("sym", ColumnType.SYMBOL).indexed(true, 16).col("bid", ColumnType.DOUBLE).col("ask", ColumnType.DOUBLE).col("bidSize", ColumnType.INT).col("askSize", ColumnType.INT).col("mode", ColumnType.SYMBOL).indexed(true, 4).col("ex", ColumnType.SYMBOL).indexed(true, 4);
CairoTestUtils.create(model);
}
reader = new TableReader(configuration, "x");
metadata = reader.getMetadata();
noTimestampReader = new TableReader(configuration, "y");
noTimestampmetadata = noTimestampReader.getMetadata();
}
Aggregations