Files
data-access-benchmark/src/main/java/com/benchmark/fixtures/FixtureFactory.java
T

25 lines
1.1 KiB
Java
Raw Normal View History

2026-04-05 14:31:17 +00:00
package com.benchmark.fixtures;
public class FixtureFactory {
public static DataFixtures create(String type) {
return switch (type) {
case "in-memory" -> new InMemoryFixture();
case "memory-mapped-file" -> new MemoryMappedFileFixture();
case "datastore4j" -> new DataStore4jFixture();
case "leveldb" -> new LevelDbFixture();
case "lmdb" -> new LmdbFixture();
case "mapdb" -> new MapDbFixture();
case "duckdb-jdbc" -> new DuckDbJdbcFixture();
case "chronicle-map" -> new ChronicleMapFixture();
2026-04-05 14:31:17 +00:00
case "gson" -> new GsonFileFixture();
case "kryo" -> new KryoFileFixture();
case "sqlite-jdbc-memory" -> new SqliteInMemoryJdbcFixture();
case "sqlite-ormlite-memory" -> new SqliteInMemoryOrmLiteFixture();
2026-04-05 14:31:17 +00:00
case "sqlite-jdbc" -> new SqliteJdbcFixture();
case "sqlite-ormlite" -> new SqliteOrmLiteFixture();
default -> throw new IllegalArgumentException("Unknown fixture type: " + type);
};
}
}