クラス MapPreparedStatementCache
java.lang.ObjectSE
org.springframework.data.cassandra.core.cql.support.MapPreparedStatementCache
- 実装されたすべてのインターフェース:
PreparedStatementCache
@DeprecatedSE
public class MapPreparedStatementCache
extends ObjectSE
implements PreparedStatementCache
使用すべきではありません。
3.2 以降、Cassandra ドライバーにはプリペアドステートメントキャッシュが組み込まれており、プリペアドステートメントの外部キャッシュが不要になります。
PreparedStatementCache
は Map
SE キャッシュによってサポートされます。デフォルトは単純な ConcurrentHashMap
SE キャッシュです。 ステートメントは、session name
、keyspace
、cql
テキストで構成されるキーを使用してキャッシュされます。ステートメントオプション (べき等性、タイムアウト) は、最初に準備されたステートメントから適用されます。
- 導入:
- 2.0
- 作成者:
- Mark Paluch, Aldo Bongio
ネストされたクラスのサマリー
ネストされたクラス修飾子と型クラス説明protected static class
使用すべきではありません。PreparedStatement
キャッシュ用のMapPreparedStatementCache.CacheKey
。メソッドのサマリー
修飾子と型メソッド説明static MapPreparedStatementCache
create()
使用すべきではありません。ConcurrentHashMap
SE を使用してMapPreparedStatementCache
を作成します。protected MapSE<MapPreparedStatementCache.CacheKey,
com.datastax.oss.driver.api.core.cql.PreparedStatement> getCache()
使用すべきではありません。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, SupplierSE<com.datastax.oss.driver.api.core.cql.PreparedStatement> preparer) 使用すべきではありません。CqlSession
とSimpleStatement
によってPreparedStatement
を取得します。static MapPreparedStatementCache
of
(MapSE<MapPreparedStatementCache.CacheKey, com.datastax.oss.driver.api.core.cql.PreparedStatement> cache) 使用すべきではありません。指定されたMap
SE を使用してMapPreparedStatementCache
を作成します。クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.data.cassandra.core.cql.support.PreparedStatementCache から継承されたメソッド
getPreparedStatement
メソッドの詳細
create
使用すべきではありません。ConcurrentHashMap
SE を使用してMapPreparedStatementCache
を作成します。- 戻り値:
ConcurrentHashMap
SE による新しいMapPreparedStatementCache
。
of
public static MapPreparedStatementCache of(MapSE<MapPreparedStatementCache.CacheKey, com.datastax.oss.driver.api.core.cql.PreparedStatement> cache) 使用すべきではありません。指定されたMap
SE を使用してMapPreparedStatementCache
を作成します。- 戻り値:
- 新しい
MapPreparedStatementCache
は指定されたMap
SE をバックアップしました。
getCache
protected MapSE<MapPreparedStatementCache.CacheKey,com.datastax.oss.driver.api.core.cql.PreparedStatement> getCache()使用すべきではありません。- 戻り値:
- 基礎となる
cache
SE。
getPreparedStatement
public 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, SupplierSE<com.datastax.oss.driver.api.core.cql.PreparedStatement> preparer) 使用すべきではありません。インターフェースからコピーされた説明:PreparedStatementCache
CqlSession
とSimpleStatement
によってPreparedStatement
を取得します。- 次で指定:
- インターフェース
PreparedStatementCache
のgetPreparedStatement
- パラメーター:
session
- null であってはなりません。statement
- null であってはなりません。preparer
- null であってはなりません。- 戻り値:
PreparedStatement