T- The subtype of the
public abstract class TableOptionsSpecification<T extends TableOptionsSpecification<T>> extends TableNameSpecification
WITH ... AND .... It is important to note that although this class depends on
TableOptionfor convenient and typesafe use, it ultimately stores its options in a
Mapfor flexibility. This means that
with(TableOption, Object)delegate to
with(String, Object, boolean, boolean). This design allows the API to support new Cassandra options as they are introduced without having to update the code immediately.
|Modifier||Constructor and Description|
|Modifier and Type||Method and Description|
Adds the given option by name to this table's options.
Convenience method that calls
Sets the given table option.
protected TableOptionsSpecification(CqlIdentifier name)
public T with(TableOption option)
public T with(TableOption option, Object value)
with(String, Object, boolean, boolean)appropriately from the given
TableOptionand value for that option.
Object.toString()is considered to be the value of the option with the given name. The value, after conversion to string, may have embedded single quotes escaped according to parameter
escapeand may be single-quoted according to parameter
name- The name of the option
value- The value of the option. If null, the value is ignored and the option is considered to be composed of only the name, otherwise the value's
Object.toString()value is used.
escape- Whether to escape the value via
CqlStringUtils.escapeSingle(Object). Ignored if given value is an instance of a
quote- Whether to quote the value via
CqlStringUtils.singleQuote(Object). Ignored if given value is an instance of a
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.