クラス QueryOptions
java.lang.ObjectSE
org.springframework.data.cassandra.core.cql.QueryOptions
- 既知の直属サブクラス
WriteOptions
クエリの Cassandra クエリオプション。
QueryOptions
を使用すると、リクエストごとにさまざまなクエリオプションを調整できます。設定されたオプションのみがクエリに適用されます。- 作成者:
- David Webb, Mark Paluch, Tomasz Lelek, Sam Lightfoot
ネストされたクラスのサマリー
ネストされたクラスコンストラクターのサマリー
コンストラクター修飾子コンストラクター説明protected
QueryOptions
(com.datastax.oss.driver.api.core.ConsistencyLevel consistencyLevel, ExecutionProfileResolver executionProfileResolver, BooleanSE idempotent, com.datastax.oss.driver.api.core.CqlIdentifier keyspace, IntegerSE pageSize, com.datastax.oss.driver.api.core.CqlIdentifier routingKeyspace, ByteBufferSE routingKey, com.datastax.oss.driver.api.core.ConsistencyLevel serialConsistencyLevel, DurationSE timeout, BooleanSE tracing) メソッドのサマリー
修飾子と型メソッド説明builder()
新しいQueryOptions.QueryOptionsBuilder
を作成します。static QueryOptions
empty()
デフォルトのQueryOptions
を作成します。boolean
protected com.datastax.oss.driver.api.core.ConsistencyLevel
protected ExecutionProfileResolver
com.datastax.oss.driver.api.core.CqlIdentifier
protected IntegerSE
protected DurationSE
使用すべきではありません。protected ByteBufferSE
protected com.datastax.oss.driver.api.core.CqlIdentifier
protected com.datastax.oss.driver.api.core.ConsistencyLevel
protected DurationSE
protected BooleanSE
int
hashCode()
protected BooleanSE
mutate()
このQueryOptions
のプロパティを変更するには、新しいQueryOptions.QueryOptionsBuilder
を作成します。
コンストラクターの詳細
QueryOptions
protected QueryOptions(@Nullable com.datastax.oss.driver.api.core.ConsistencyLevel consistencyLevel, ExecutionProfileResolver executionProfileResolver, @Nullable BooleanSE idempotent, @Nullable com.datastax.oss.driver.api.core.CqlIdentifier keyspace, @Nullable IntegerSE pageSize, @Nullable com.datastax.oss.driver.api.core.CqlIdentifier routingKeyspace, @Nullable ByteBufferSE routingKey, @Nullable com.datastax.oss.driver.api.core.ConsistencyLevel serialConsistencyLevel, DurationSE timeout, @Nullable BooleanSE tracing)
メソッドの詳細
builder
新しいQueryOptions.QueryOptionsBuilder
を作成します。- 戻り値:
- 新しい
QueryOptions.QueryOptionsBuilder
。 - 導入:
- 1.5
empty
デフォルトのQueryOptions
を作成します。- 戻り値:
- デフォルトの
QueryOptions
。 - 導入:
- 2.0
mutate
このQueryOptions
のプロパティを変更するには、新しいQueryOptions.QueryOptionsBuilder
を作成します。- 戻り値:
- この
QueryOptions
で初期化された新しいQueryOptions.QueryOptionsBuilder
。 - 導入:
- 2.0
getConsistencyLevel
- 戻り値:
- ドライバー
ConsistencyLevel
。 - 導入:
- 1.5
getExecutionProfileResolver
- 戻り値:
ExecutionProfileResolver
- 導入:
- 3.0
isIdempotent
- 戻り値:
- クエリがべき等であるかどうか。設定されていない場合は null になることがあります。
- 導入:
- 3.4
- 関連事項:
Statement.setIdempotent(Boolean)
getKeyspace
- 戻り値:
- クエリに関連付けられたキースペース。null の場合、ステートメントで構成されたキースペースまたは
CqlSession
からのキースペースのいずれかが使用されることを意味します。 - 導入:
- 3.1
getPageSize
- 戻り値:
- チャンクリクエストごとに取得する行数。設定されていない場合は null になる場合があります。
- 導入:
- 1.5
getReadTimeout
使用すべきではありません。3.0 以降、代わりにgetTimeout()
を使用してください。- 戻り値:
- コマンドのタイムアウト。設定されていない場合は
negative
になります。 - 導入:
- 1.5
- 関連事項:
Statement.setTimeout(Duration)
getRoutingKeyspace
- 戻り値:
- トークン対応ルーティングに使用されるキースペース。トークン対応ルーティングが無効になっている場合は null になることがあります。
- 導入:
- 3.4
- 関連事項:
Statement.setRoutingKeyspace(CqlIdentifier)
getRoutingKey
- 戻り値:
- トークン対応ルーティングに使用されるキー。トークン対応ルーティングが無効になっている場合は null になることがあります。
- 導入:
- 3.4
- 関連事項:
Statement.setRoutingKey(ByteBuffer)
getTimeout
- 戻り値:
- コマンドのタイムアウト。設定されていない場合は
negative
になります。 - 導入:
- 3.0
- 関連事項:
Statement.setTimeout(Duration)
getSerialConsistencyLevel
- 戻り値:
- シリアル番号
ConsistencyLevel
。 - 導入:
- 3.0
- 関連事項:
Statement.setSerialConsistencyLevel(ConsistencyLevel)
getTracing
- 戻り値:
- トレースを有効にするかどうか。設定されていない場合は null になります。
equals
hashCode
public int hashCode()
getTimeout()
を使用してください。