public TestCostEstimator(AkibanInformationSchema ais, Schema schema,
File statsFile, boolean statsIgnoreMissingIndexes,
Properties properties)
throws IOException {
super(schema, properties, new TestKeyCreator(schema), new TestCostModelFactory());
this.ais = ais;
if (statsFile == null)
stats = Collections.<Index,IndexStatistics>emptyMap();
else
stats = new IndexStatisticsYamlLoader(ais, OptimizerTestBase.DEFAULT_SCHEMA, new TestKeyCreator(schema))
.load(statsFile, statsIgnoreMissingIndexes);
}