Search in sources :

Example 1 with OracleGetRange

use of com.palantir.atlasdb.keyvalue.dbkvs.impl.oracle.OracleGetRange 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));
}
Also used : DbKvsGetRange(com.palantir.atlasdb.keyvalue.dbkvs.impl.ranges.DbKvsGetRange) OracleTableNameGetter(com.palantir.atlasdb.keyvalue.dbkvs.OracleTableNameGetter) DbKvsGetCandidateCellsForSweeping(com.palantir.atlasdb.keyvalue.dbkvs.impl.sweep.DbKvsGetCandidateCellsForSweeping) OracleOverflowValueLoader(com.palantir.atlasdb.keyvalue.dbkvs.impl.oracle.OracleOverflowValueLoader) OracleOverflowValueLoader(com.palantir.atlasdb.keyvalue.dbkvs.impl.oracle.OracleOverflowValueLoader) OracleCellTsPageLoader(com.palantir.atlasdb.keyvalue.dbkvs.impl.oracle.OracleCellTsPageLoader) OracleGetRange(com.palantir.atlasdb.keyvalue.dbkvs.impl.oracle.OracleGetRange) CellTsPairLoader(com.palantir.atlasdb.keyvalue.dbkvs.impl.sweep.CellTsPairLoader) ImmediateSingleBatchTaskRunner(com.palantir.atlasdb.keyvalue.dbkvs.impl.batch.ImmediateSingleBatchTaskRunner)

Aggregations

OracleTableNameGetter (com.palantir.atlasdb.keyvalue.dbkvs.OracleTableNameGetter)1 ImmediateSingleBatchTaskRunner (com.palantir.atlasdb.keyvalue.dbkvs.impl.batch.ImmediateSingleBatchTaskRunner)1 OracleCellTsPageLoader (com.palantir.atlasdb.keyvalue.dbkvs.impl.oracle.OracleCellTsPageLoader)1 OracleGetRange (com.palantir.atlasdb.keyvalue.dbkvs.impl.oracle.OracleGetRange)1 OracleOverflowValueLoader (com.palantir.atlasdb.keyvalue.dbkvs.impl.oracle.OracleOverflowValueLoader)1 DbKvsGetRange (com.palantir.atlasdb.keyvalue.dbkvs.impl.ranges.DbKvsGetRange)1 CellTsPairLoader (com.palantir.atlasdb.keyvalue.dbkvs.impl.sweep.CellTsPairLoader)1 DbKvsGetCandidateCellsForSweeping (com.palantir.atlasdb.keyvalue.dbkvs.impl.sweep.DbKvsGetCandidateCellsForSweeping)1