クラス WriteOptions.WriteOptionsBuilder
java.lang.ObjectSE
org.springframework.data.cassandra.core.cql.QueryOptions.QueryOptionsBuilder
org.springframework.data.cassandra.core.cql.WriteOptions.WriteOptionsBuilder
- 既知の直属サブクラス
DeleteOptions.DeleteOptionsBuilder
、InsertOptions.InsertOptionsBuilder
、UpdateOptions.UpdateOptionsBuilder
- 含まれているクラス:
- WriteOptions
WriteOptions
のビルダー。- 導入:
- 1.5
- 作成者:
- Mark Paluch, Lukasz Antoniak, Thomas Strauß, Tudor Marc
フィールドサマリー
フィールドクラス org.springframework.data.cassandra.core.cql.QueryOptions.QueryOptionsBuilder から継承されたフィールド
consistencyLevel, executionProfileResolver, idempotent, keyspace, pageSize, routingKey, routingKeyspace, serialConsistencyLevel, timeout, tracing
コンストラクターのサマリー
コンストラクターメソッドのサマリー
修飾子と型メソッド説明build()
設定された値で新しいWriteOptions
を構築します。consistencyLevel
(com.datastax.oss.driver.api.core.ConsistencyLevel consistencyLevel) 使用するConsistencyLevel
を設定します。executionProfile
(StringSE profileName) 使用するexecution profile
を設定します。executionProfile
(ExecutionProfileResolver executionProfileResolver) 使用するExecutionProfileResolver
を設定します。fetchSize
(int pageSize) 使用すべきではありません。idempotent
(boolean idempotent) クエリ実行の冪等性を設定します。keyspace
(com.datastax.oss.driver.api.core.CqlIdentifier keyspace) 使用するkeyspace
を設定します。pageSize
(int pageSize) ResultSet
チャンクのクエリフェッチサイズを設定します。readTimeout
(long readTimeout) 使用すべきではありません。readTimeout
(long readTimeout, TimeUnitSE timeUnit) 使用すべきではありません。routingKey
(ByteBufferSE routingKey) クエリルーティングキーを設定します。routingKeyspace
(com.datastax.oss.driver.api.core.CqlIdentifier routingKeyspace) クエリルーティングキースペースを設定します。serialConsistencyLevel
(com.datastax.oss.driver.api.core.ConsistencyLevel consistencyLevel) 使用するシリアルConsistencyLevel
を設定します。timeout
(DurationSE timeout) リクエストのタイムアウトを設定します。timestamp
(long timestamp) 書き込み操作のタイムスタンプを設定します。書き込み操作のタイムスタンプを設定します。tracing
(boolean tracing) ステートメントのトレースを有効にします。ttl
(int ttl) 書き込み操作の有効期間を秒単位で設定します。ttl
(DurationSE ttl) 書き込み操作の有効期間を秒単位で設定します。ステートメントのトレースを有効にします。クラス org.springframework.data.cassandra.core.cql.QueryOptions.QueryOptionsBuilder から継承されたメソッド
readTimeout
フィールドの詳細
ttl
timestamp
コンストラクターの詳細
WriteOptionsBuilder
protected WriteOptionsBuilder()WriteOptionsBuilder
メソッドの詳細
consistencyLevel
public WriteOptions.WriteOptionsBuilder consistencyLevel(com.datastax.oss.driver.api.core.ConsistencyLevel consistencyLevel) クラスからコピーされた説明:QueryOptions.QueryOptionsBuilder
使用するConsistencyLevel
を設定します。- オーバーライド:
- クラス
QueryOptions.QueryOptionsBuilder
のconsistencyLevel
- パラメーター:
consistencyLevel
- null であってはなりません。- 戻り値:
this
QueryOptions.QueryOptionsBuilder
executionProfile
クラスからコピーされた説明:QueryOptions.QueryOptionsBuilder
使用するexecution profile
を設定します。- オーバーライド:
- クラス
QueryOptions.QueryOptionsBuilder
のexecutionProfile
- パラメーター:
profileName
- null または空であってはなりません。- 戻り値:
this
QueryOptions.QueryOptionsBuilder
- 関連事項:
Statement.setExecutionProfileName(String)
executionProfile
public WriteOptions.WriteOptionsBuilder executionProfile(ExecutionProfileResolver executionProfileResolver) クラスからコピーされた説明:QueryOptions.QueryOptionsBuilder
使用するExecutionProfileResolver
を設定します。- オーバーライド:
- クラス
QueryOptions.QueryOptionsBuilder
のexecutionProfile
- パラメーター:
executionProfileResolver
- null であってはなりません。- 戻り値:
this
QueryOptions.QueryOptionsBuilder
- 関連事項:
Statement.setExecutionProfile(DriverExecutionProfile)
fetchSize
使用すべきではありません。クラスからコピーされた説明:QueryOptions.QueryOptionsBuilder
ResultSet
チャンクのクエリフェッチサイズを設定します。フェッチサイズは、同時に取得される結果行の数を制御します (大きな結果を生成するクエリでメモリに過剰な結果をロードしないようにすることが目的です)。1 という低い値も使用できますが、実際にはパフォーマンスが非常に低下するため、このような低い値を使用することは * 強く * お勧めしません。
- オーバーライド:
- クラス
QueryOptions.QueryOptionsBuilder
のfetchSize
- パラメーター:
pageSize
- チャンクリクエストごとにフェッチする行数。結果セットのチャンクを無効にするには、fetchSize == Integer.MAX_VALUE
を使用します。負の値は許可されません。- 戻り値:
this
QueryOptions.QueryOptionsBuilder
idempotent
クラスからコピーされた説明:QueryOptions.QueryOptionsBuilder
クエリ実行の冪等性を設定します。- オーバーライド:
- クラス
QueryOptions.QueryOptionsBuilder
のidempotent
- パラメーター:
idempotent
- クエリをべき等としてマークするには true にします。- 戻り値:
this
QueryOptions.QueryOptionsBuilder
。
keyspace
public WriteOptions.WriteOptionsBuilder keyspace(com.datastax.oss.driver.api.core.CqlIdentifier keyspace) クラスからコピーされた説明:QueryOptions.QueryOptionsBuilder
使用するkeyspace
を設定します。未設定のままにすると、ステートメントに設定されたキースペースまたはCqlSession
が使用されます。- オーバーライド:
- クラス
QueryOptions.QueryOptionsBuilder
のkeyspace
- パラメーター:
keyspace
- ステートメントを実行するために使用する特定のキースペースは null であってはなりません。- 戻り値:
this
QueryOptions.QueryOptionsBuilder
。
pageSize
クラスからコピーされた説明:QueryOptions.QueryOptionsBuilder
ResultSet
チャンクのクエリフェッチサイズを設定します。フェッチサイズは、同時に取得される結果行の数を制御します (大きな結果を生成するクエリでメモリに多くの結果がロードされないようにすることが目的です)。1 という低い値も使用できますが、実際にはパフォーマンスが非常に低下するため、このような低い値を使用することは強くお勧めしません。
- オーバーライド:
- クラス
QueryOptions.QueryOptionsBuilder
のpageSize
- パラメーター:
pageSize
- チャンクリクエストごとにフェッチする行数。結果セットのチャンクを無効にするには、pageSize == Integer.MAX_VALUE
を使用します。負の値は許可されません。- 戻り値:
this
QueryOptions.QueryOptionsBuilder
readTimeout
使用すべきではありません。クラスからコピーされた説明:QueryOptions.QueryOptionsBuilder
読み取りタイムアウトをミリ秒単位で設定します。デフォルトのホストごとの読み取りタイムアウトを上書きします。- オーバーライド:
- クラス
QueryOptions.QueryOptionsBuilder
のreadTimeout
- パラメーター:
readTimeout
- 読み取りタイムアウト(ミリ秒単位)。負の値は許可されません。0
の場合、このステートメントの読み取りタイムアウトは無効になります。- 戻り値:
this
QueryOptions.QueryOptionsBuilder
- 関連事項:
Statement.setTimeout(Duration)
readTimeout
@DeprecatedSE public WriteOptions.WriteOptionsBuilder readTimeout(long readTimeout, TimeUnitSE timeUnit) 使用すべきではありません。クラスからコピーされた説明:QueryOptions.QueryOptionsBuilder
読み取りタイムアウトを設定します。デフォルトのホストごとの読み取りタイムアウトを上書きします。- オーバーライド:
- クラス
QueryOptions.QueryOptionsBuilder
のreadTimeout
- パラメーター:
readTimeout
- 読み取りタイムアウト値。負の値は許可されません。0
の場合、このステートメントの読み取りタイムアウトは無効になります。timeUnit
- 指定されたタイムアウトのTimeUnit
SE。null にすることはできません。- 戻り値:
this
QueryOptions.QueryOptionsBuilder
- 関連事項:
Statement.setTimeout(Duration)
routingKeyspace
public WriteOptions.WriteOptionsBuilder routingKeyspace(com.datastax.oss.driver.api.core.CqlIdentifier routingKeyspace) クラスからコピーされた説明:QueryOptions.QueryOptionsBuilder
クエリルーティングキースペースを設定します。- オーバーライド:
- クラス
QueryOptions.QueryOptionsBuilder
のroutingKeyspace
- パラメーター:
routingKeyspace
- トークン対応ルーティングに使用するルーティングキースペース。- 戻り値:
this
QueryOptions.QueryOptionsBuilder
。
routingKey
クラスからコピーされた説明:QueryOptions.QueryOptionsBuilder
クエリルーティングキーを設定します。- オーバーライド:
- クラス
QueryOptions.QueryOptionsBuilder
のroutingKey
- パラメーター:
routingKey
- トークン対応ルーティングに使用するルーティングキー。- 戻り値:
this
QueryOptions.QueryOptionsBuilder
serialConsistencyLevel
public WriteOptions.WriteOptionsBuilder serialConsistencyLevel(com.datastax.oss.driver.api.core.ConsistencyLevel consistencyLevel) クラスからコピーされた説明:QueryOptions.QueryOptionsBuilder
使用するシリアルConsistencyLevel
を設定します。- オーバーライド:
- クラス
QueryOptions.QueryOptionsBuilder
のserialConsistencyLevel
- パラメーター:
consistencyLevel
- null であってはなりません。- 戻り値:
this
QueryOptions.QueryOptionsBuilder
timeout
クラスからコピーされた説明:QueryOptions.QueryOptionsBuilder
リクエストのタイムアウトを設定します。デフォルトのタイムアウトを上書きします。- オーバーライド:
- クラス
QueryOptions.QueryOptionsBuilder
のtimeout
- パラメーター:
timeout
- 読み取りタイムアウト。負の値は許可されません。0
の場合、このステートメントの読み取りタイムアウトは無効になります。- 戻り値:
this
QueryOptions.QueryOptionsBuilder
- 関連事項:
Statement.setTimeout(Duration)
tracing
クラスからコピーされた説明:QueryOptions.QueryOptionsBuilder
ステートメントのトレースを有効にします。- オーバーライド:
- クラス
QueryOptions.QueryOptionsBuilder
のtracing
- パラメーター:
tracing
- 実行されたステートメントへのステートメントトレースを有効にするには true にします。- 戻り値:
this
QueryOptions.QueryOptionsBuilder
withTracing
クラスからコピーされた説明:QueryOptions.QueryOptionsBuilder
ステートメントのトレースを有効にします。- オーバーライド:
- クラス
QueryOptions.QueryOptionsBuilder
のwithTracing
- 戻り値:
this
QueryOptions.QueryOptionsBuilder
ttl
書き込み操作の有効期間を秒単位で設定します。- パラメーター:
ttl
- 生きる時間。- 戻り値:
this
WriteOptions.WriteOptionsBuilder
ttl
書き込み操作の有効期間を秒単位で設定します。- パラメーター:
ttl
- 生きる時間。- 戻り値:
this
WriteOptions.WriteOptionsBuilder
- 導入:
- 2.0
timestamp
書き込み操作のタイムスタンプを設定します。- パラメーター:
timestamp
- マイクロ秒単位の変異タイムスタンプ。- 戻り値:
this
WriteOptions.WriteOptionsBuilder
- 導入:
- 2.1
- 関連事項:
timestamp
書き込み操作のタイムスタンプを設定します。- パラメーター:
timestamp
- 変異日時。- 戻り値:
this
WriteOptions.WriteOptionsBuilder
- 導入:
- 2.1
build
設定された値で新しいWriteOptions
を構築します。- オーバーライド:
- クラス
QueryOptions.QueryOptionsBuilder
のbuild
- 戻り値:
- 設定された値を持つ新しい
WriteOptions