Search in sources :

Example 1 with TableValueStyle

use of com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyle 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.atlasdb.keyvalue.impl.TableMappingNotFoundException) TableValueStyle(com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyle)

Aggregations

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 TableMappingNotFoundException (com.palantir.atlasdb.keyvalue.impl.TableMappingNotFoundException)1