use of com.palantir.atlasdb.keyvalue.dbkvs.impl.batch.ImmediateSingleBatchTaskRunner in project atlasdb by palantir.
the class DbKvs method createOracle.
private static DbKvs createOracle(ExecutorService executor, OracleDdlConfig oracleDdlConfig, SqlConnectionSupplier connections) {
OracleTableNameGetter tableNameGetter = new OracleTableNameGetter(oracleDdlConfig);
OraclePrefixedTableNames prefixedTableNames = new OraclePrefixedTableNames(tableNameGetter);
TableValueStyleCache valueStyleCache = new TableValueStyleCache();
OverflowValueLoader overflowValueLoader = new OracleOverflowValueLoader(oracleDdlConfig, tableNameGetter);
DbKvsGetRange getRange = new OracleGetRange(connections, overflowValueLoader, tableNameGetter, valueStyleCache, oracleDdlConfig);
CellTsPairLoader cellTsPageLoader = new OracleCellTsPageLoader(connections, tableNameGetter, valueStyleCache, oracleDdlConfig);
return new DbKvs(executor, oracleDdlConfig, new OracleDbTableFactory(oracleDdlConfig, tableNameGetter, prefixedTableNames, valueStyleCache, PTExecutors.newSingleThreadScheduledExecutor()), connections, new ImmediateSingleBatchTaskRunner(), overflowValueLoader, getRange, new DbKvsGetCandidateCellsForSweeping(cellTsPageLoader));
}
Aggregations