Search in sources :

Example 6 with TableMappingNotFoundException

use of com.palantir.common.exception.TableMappingNotFoundException in project atlasdb by palantir.

the class OracleCellTsPageLoader method getTableDetailsUsingNewConnection.

private TableDetails getTableDetailsUsingNewConnection(TableReference tableRef) {
    try (ConnectionSupplier conns = new ConnectionSupplier(connectionPool)) {
        String shortName = tableNameGetter.getInternalShortTableName(conns, tableRef);
        TableValueStyle style = valueStyleCache.getTableType(conns, tableRef, config.metadataTable());
        boolean hasOverflow = style == TableValueStyle.OVERFLOW;
        return new TableDetails(shortName, hasOverflow);
    } catch (TableMappingNotFoundException e) {
        throw new RuntimeException(e);
    }
}
Also used : SqlConnectionSupplier(com.palantir.atlasdb.keyvalue.dbkvs.impl.SqlConnectionSupplier) ConnectionSupplier(com.palantir.atlasdb.keyvalue.dbkvs.impl.ConnectionSupplier) TableMappingNotFoundException(com.palantir.common.exception.TableMappingNotFoundException) TableValueStyle(com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyle)

Aggregations

TableMappingNotFoundException (com.palantir.common.exception.TableMappingNotFoundException)6 TableReference (com.palantir.atlasdb.keyvalue.api.TableReference)3 ImmutableMap (com.google.common.collect.ImmutableMap)1 Iterables (com.google.common.collect.Iterables)1 Lists (com.google.common.collect.Lists)1 MoreExecutors (com.google.common.util.concurrent.MoreExecutors)1 AtlasDbTestCase (com.palantir.atlasdb.AtlasDbTestCase)1 DefaultTimestampCache (com.palantir.atlasdb.cache.DefaultTimestampCache)1 PtBytes (com.palantir.atlasdb.encoding.PtBytes)1 Cell (com.palantir.atlasdb.keyvalue.api.Cell)1 CheckAndSetRequest (com.palantir.atlasdb.keyvalue.api.CheckAndSetRequest)1 Namespace (com.palantir.atlasdb.keyvalue.api.Namespace)1 RangeRequest (com.palantir.atlasdb.keyvalue.api.RangeRequest)1 RowResult (com.palantir.atlasdb.keyvalue.api.RowResult)1 ConnectionSupplier (com.palantir.atlasdb.keyvalue.dbkvs.impl.ConnectionSupplier)1 SqlConnectionSupplier (com.palantir.atlasdb.keyvalue.dbkvs.impl.SqlConnectionSupplier)1 TableValueStyle (com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyle)1 InMemoryKeyValueService (com.palantir.atlasdb.keyvalue.impl.InMemoryKeyValueService)1 MultiTableSweepQueueWriter (com.palantir.atlasdb.sweep.queue.MultiTableSweepQueueWriter)1 TableDefinition (com.palantir.atlasdb.table.description.TableDefinition)1