use of com.datastax.oss.driver.shaded.guava.common.annotations.VisibleForTesting in project janusgraph by JanusGraph.
the class CQLStoreManager method getSpeculativeRetry.
@VisibleForTesting
String getSpeculativeRetry(final String name) throws BackendException {
TableMetadata tableMetadata = getTableMetadata(name);
Object res = tableMetadata.getOptions().get(CqlIdentifier.fromCql("speculative_retry"));
return (String) res;
}
use of com.datastax.oss.driver.shaded.guava.common.annotations.VisibleForTesting in project janusgraph by JanusGraph.
the class CQLStoreManager method getGcGraceSeconds.
@VisibleForTesting
Integer getGcGraceSeconds(final String name) throws BackendException {
TableMetadata tableMetadata = getTableMetadata(name);
Object gcGraceSeconds = tableMetadata.getOptions().get(CqlIdentifier.fromCql("gc_grace_seconds"));
return (Integer) gcGraceSeconds;
}
use of com.datastax.oss.driver.shaded.guava.common.annotations.VisibleForTesting in project janusgraph by JanusGraph.
the class CQLStoreManager method getCompressionOptions.
@VisibleForTesting
Map<String, String> getCompressionOptions(final String name) throws BackendException {
TableMetadata tableMetadata = getTableMetadata(name);
Object compressionOptions = tableMetadata.getOptions().get(CqlIdentifier.fromCql("compression"));
return (Map<String, String>) compressionOptions;
}
Aggregations