クラス CreateKeyspaceSpecification
java.lang.ObjectSE
org.springframework.data.cassandra.core.cql.keyspace.KeyspaceActionSpecification
org.springframework.data.cassandra.core.cql.keyspace.KeyspaceOptionsSpecification<CreateKeyspaceSpecification>
org.springframework.data.cassandra.core.cql.keyspace.CreateKeyspaceSpecification
- 実装されたすべてのインターフェース:
KeyspaceDescriptor
public class CreateKeyspaceSpecification
extends KeyspaceOptionsSpecification<CreateKeyspaceSpecification>
implements KeyspaceDescriptor
CREATE KEYSPACE
仕様を構成するオブジェクト。- 作成者:
- Mark Paluch
フィールドサマリー
クラス org.springframework.data.cassandra.core.cql.keyspace.KeyspaceOptionsSpecification から継承されたフィールド
options
メソッドのサマリー
修飾子と型メソッド説明static CreateKeyspaceSpecification
createKeyspace
(com.datastax.oss.driver.api.core.CqlIdentifier name) キースペースを作成するためにname
が指定されたCreateKeyspaceSpecification
の Fluent API へのエントリポイント。static CreateKeyspaceSpecification
createKeyspace
(StringSE name) キースペースを作成するためにname
が指定されたCreateKeyspaceSpecification
の Fluent API へのエントリポイント。static CreateKeyspaceSpecification
使用すべきではありません。boolean
boolean
int
hashCode()
IF NOT EXISTS
句が組み込まれます。ifNotExists
(boolean ifNotExists) IF NOT EXISTS
句の組み込みを切り替えます。指定されたオプションを名前でこのキースペースのオプションに追加します。with
(KeyspaceOption option) with(option, null)
を呼び出す便利なメソッド。with
(KeyspaceOption option, ObjectSE value) 指定されたテーブルオプションを設定します。DataCenterReplication
を指定してデータセンターのレプリケーションを構成します。レプリケーション係数1
を使用して単純なレプリケーションを構成します。withSimpleReplication
(long replicationFactor) replicationFactor
を使用して単純なレプリケーションを構成します。クラス org.springframework.data.cassandra.core.cql.keyspace.KeyspaceOptionsSpecification から継承されたメソッド
getOptions
クラス org.springframework.data.cassandra.core.cql.keyspace.KeyspaceActionSpecification から継承されたメソッド
canEqual, getName
クラス java.lang.ObjectSE から継承されたメソッド
clone, finalize, getClass, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.data.cassandra.core.cql.keyspace.KeyspaceDescriptor から継承されたメソッド
getName, getOptions
メソッドの詳細
createKeyspace
キースペースを作成するためにname
が指定されたCreateKeyspaceSpecification
の Fluent API へのエントリポイント。静的にインポートすると便利です。- パラメーター:
name
- null または空であってはなりません。- 戻り値:
- 新しい
CreateKeyspaceSpecification
。
createKeyspace
使用すべきではありません。3.0 以降、createKeyspace(CqlIdentifier)
を使用キースペースを作成するためにname
が指定されたCreateKeyspaceSpecification
の Fluent API へのエントリポイント。静的にインポートすると便利です。- パラメーター:
name
- null であってはなりません。- 戻り値:
- 新しい
CreateKeyspaceSpecification
。
createKeyspace
public static CreateKeyspaceSpecification createKeyspace(com.datastax.oss.driver.api.core.CqlIdentifier name) キースペースを作成するためにname
が指定されたCreateKeyspaceSpecification
の Fluent API へのエントリポイント。静的にインポートすると便利です。- パラメーター:
name
- null であってはなりません。- 戻り値:
- 新しい
CreateKeyspaceSpecification
。 - 導入:
- 3.0
ifNotExists
IF NOT EXISTS
句が組み込まれます。- 戻り値:
- this
ifNotExists
IF NOT EXISTS
句の組み込みを切り替えます。- 戻り値:
- this
getIfNotExists
public boolean getIfNotExists()withSimpleReplication
レプリケーション係数1
を使用して単純なレプリケーションを構成します。- 戻り値:
- this。
withSimpleReplication
replicationFactor
を使用して単純なレプリケーションを構成します。- 戻り値:
- this。
withNetworkReplication
DataCenterReplication
を指定してデータセンターのレプリケーションを構成します。- 戻り値:
- this。
with
クラスからコピーされた説明:KeyspaceOptionsSpecification
with(option, null)
を呼び出す便利なメソッド。- オーバーライド:
- クラス
KeyspaceOptionsSpecification<CreateKeyspaceSpecification>
のwith
- 戻り値:
- this
with
クラスからコピーされた説明:KeyspaceOptionsSpecification
指定されたテーブルオプションを設定します。これは、指定されたKeyspaceOption
とそのオプションの値からKeyspaceOptionsSpecification.with(String, Object, boolean, boolean)
を適切に呼び出す便利なメソッドです。- オーバーライド:
- クラス
KeyspaceOptionsSpecification<CreateKeyspaceSpecification>
のwith
- パラメーター:
option
- 設定するオプション。value
- オプションの値。KeyspaceOption
と型互換性がある必要があります。- 戻り値:
- this
- 関連事項:
with
public CreateKeyspaceSpecification with(StringSE name, @Nullable ObjectSE value, boolean escape, boolean quote) クラスからコピーされた説明:KeyspaceOptionsSpecification
指定されたオプションを名前でこのキースペースのオプションに追加します。NULL 値を持つオプションは、オプションの名前が使用される文字列である単一文字列オプションと見なされます。それ以外の場合、
Object.toString()
の結果は、指定された名前のオプションの値と見なされます。文字列に変換された後の値には、パラメーターescape
に従ってエスケープされた単一引用符が埋め込まれている場合があり、パラメーターquote
に従って単一引用符で囲まれる場合があります。- オーバーライド:
- クラス
KeyspaceOptionsSpecification<CreateKeyspaceSpecification>
のwith
- パラメーター:
name
- オプションの名前value
- オプションの値。null の場合、値は無視され、オプションは名前のみで構成されていると見なされます。それ以外の場合は、値のObject.toString()
値が使用されます。escape
-CqlStringUtils.escapeSingle(Object)
を介して値をエスケープするかどうか。指定された値がMap
SE のインスタンスである場合は無視されます。quote
-CqlStringUtils.singleQuote(Object)
を介して値を引用するかどうか。指定された値がMap
SE のインスタンスである場合は無視されます。- 戻り値:
- this
equals
- オーバーライド:
- クラス
KeyspaceOptionsSpecification<CreateKeyspaceSpecification>
のequals
hashCode
public int hashCode()- オーバーライド:
- クラス
KeyspaceOptionsSpecification<CreateKeyspaceSpecification>
のhashCode
createKeyspace(CqlIdentifier)
を使用