クラス QueryOptions

java.lang.ObjectSE
org.springframework.data.cassandra.core.cql.QueryOptions
既知の直属サブクラス
WriteOptions

public class QueryOptions extends ObjectSE
クエリの Cassandra クエリオプション。QueryOptions を使用すると、リクエストごとにさまざまなクエリオプションを調整できます。設定されたオプションのみがクエリに適用されます。
作成者:
David Webb, Mark Paluch, Tomasz Lelek, Sam Lightfoot
  • コンストラクターの詳細

  • メソッドの詳細

    • builder

      public static QueryOptions.QueryOptionsBuilder builder()
      新しい QueryOptions.QueryOptionsBuilder を作成します。
      戻り値:
      新しい QueryOptions.QueryOptionsBuilder
      導入:
      1.5
    • empty

      public static QueryOptions empty()
      デフォルトの QueryOptions を作成します。
      戻り値:
      デフォルトの QueryOptions
      導入:
      2.0
    • mutate

      この QueryOptions のプロパティを変更するには、新しい QueryOptions.QueryOptionsBuilder を作成します。
      戻り値:
      この QueryOptions で初期化された新しい QueryOptions.QueryOptionsBuilder
      導入:
      2.0
    • getConsistencyLevel

      @Nullable protected com.datastax.oss.driver.api.core.ConsistencyLevel getConsistencyLevel()
      戻り値:
      ドライバー ConsistencyLevel
      導入:
      1.5
    • getExecutionProfileResolver

      protected ExecutionProfileResolver getExecutionProfileResolver()
      戻り値:
      ExecutionProfileResolver
      導入:
      3.0
    • isIdempotent

      @Nullable protected BooleanSE isIdempotent()
      戻り値:
      クエリがべき等であるかどうか。設定されていない場合は null になることがあります。
      導入:
      3.4
      関連事項:
      • Statement.setIdempotent(Boolean)
    • getKeyspace

      @Nullable public com.datastax.oss.driver.api.core.CqlIdentifier getKeyspace()
      戻り値:
      クエリに関連付けられたキースペース。null の場合、ステートメントで構成されたキースペースまたは CqlSession からのキースペースのいずれかが使用されることを意味します。
      導入:
      3.1
    • getPageSize

      @Nullable protected IntegerSE getPageSize()
      戻り値:
      チャンクリクエストごとに取得する行数。設定されていない場合は null になる場合があります。
      導入:
      1.5
    • getReadTimeout

      @DeprecatedSE protected DurationSE getReadTimeout()
      使用すべきではありません。
      3.0 以降、代わりに getTimeout() を使用してください。
      戻り値:
      コマンドのタイムアウト。設定されていない場合は negative になります。
      導入:
      1.5
      関連事項:
      • Statement.setTimeout(Duration)
    • getRoutingKeyspace

      @Nullable protected com.datastax.oss.driver.api.core.CqlIdentifier getRoutingKeyspace()
      戻り値:
      トークン対応ルーティングに使用されるキースペース。トークン対応ルーティングが無効になっている場合は null になることがあります。
      導入:
      3.4
      関連事項:
      • Statement.setRoutingKeyspace(CqlIdentifier)
    • getRoutingKey

      @Nullable protected ByteBufferSE getRoutingKey()
      戻り値:
      トークン対応ルーティングに使用されるキー。トークン対応ルーティングが無効になっている場合は null になることがあります。
      導入:
      3.4
      関連事項:
      • Statement.setRoutingKey(ByteBuffer)
    • getTimeout

      protected DurationSE getTimeout()
      戻り値:
      コマンドのタイムアウト。設定されていない場合は negative になります。
      導入:
      3.0
      関連事項:
      • Statement.setTimeout(Duration)
    • getSerialConsistencyLevel

      @Nullable protected com.datastax.oss.driver.api.core.ConsistencyLevel getSerialConsistencyLevel()
      戻り値:
      シリアル番号 ConsistencyLevel
      導入:
      3.0
      関連事項:
      • Statement.setSerialConsistencyLevel(ConsistencyLevel)
    • getTracing

      @Nullable protected BooleanSE getTracing()
      戻り値:
      トレースを有効にするかどうか。設定されていない場合は null になります。
    • equals

      public boolean equals(@Nullable ObjectSE o)
      オーバーライド:
      クラス ObjectSEequalsSE 
    • hashCode

      public int hashCode()
      オーバーライド:
      クラス ObjectSEhashCode