@Deprecated public interface PreparedStatementCache
PreparedStatementCache come with own synchronization and cache implementation
characteristics. A cache implementation should optimize for reduction of preparation calls and cache statements using
Cassandras cache key which is specific to the Cluster, keyspace, and CQL text.PreparedStatement| Modifier and Type | Method and Description |
|---|---|
static PreparedStatementCache |
create()
Deprecated.
Create a default cache backed by a
ConcurrentHashMap. |
default com.datastax.oss.driver.api.core.cql.PreparedStatement |
getPreparedStatement(com.datastax.oss.driver.api.core.CqlSession session,
com.datastax.oss.driver.api.core.cql.SimpleStatement statement)
Deprecated.
Obtain a
PreparedStatement by CqlSession and SimpleStatement. |
com.datastax.oss.driver.api.core.cql.PreparedStatement |
getPreparedStatement(com.datastax.oss.driver.api.core.CqlSession session,
com.datastax.oss.driver.api.core.cql.SimpleStatement statement,
Supplier<com.datastax.oss.driver.api.core.cql.PreparedStatement> preparer)
Deprecated.
Obtain a
PreparedStatement by CqlSession and SimpleStatement. |
static PreparedStatementCache create()
ConcurrentHashMap.MapPreparedStatementCache.default com.datastax.oss.driver.api.core.cql.PreparedStatement getPreparedStatement(com.datastax.oss.driver.api.core.CqlSession session,
com.datastax.oss.driver.api.core.cql.SimpleStatement statement)
PreparedStatement by CqlSession and SimpleStatement.session - must not be null.statement - must not be null.PreparedStatement.com.datastax.oss.driver.api.core.cql.PreparedStatement getPreparedStatement(com.datastax.oss.driver.api.core.CqlSession session,
com.datastax.oss.driver.api.core.cql.SimpleStatement statement,
Supplier<com.datastax.oss.driver.api.core.cql.PreparedStatement> preparer)
PreparedStatement by CqlSession and SimpleStatement.session - must not be null.statement - must not be null.preparer - must not be null.PreparedStatement.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.