Enum Class TableOption.CompactionOption
java.lang.Object
java.lang.Enum<TableOption.CompactionOption>
org.springframework.data.cassandra.core.cql.keyspace.TableOption.CompactionOption
- All Implemented Interfaces:
Serializable
,Comparable<TableOption.CompactionOption>
,Constable
,Option
- Enclosing class:
- TableOption
public static enum TableOption.CompactionOption
extends Enum<TableOption.CompactionOption>
implements Option
Known compaction options.
- Author:
- Matthew T. Adams
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionbucket_high
bucket_low
class
max_threshold
min_sstable_size
min_threshold
sstable_size_in_mb
tombstone_compaction_interval
tombstone_threshold
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkValue
(Object value) Checks that the given value can be coerced into the type given byOption.getType()
.boolean
Whether this option should escape single quotes in its value.getName()
The (usually lower-cased, underscore-separated) name of this table option.Class<?>
getType()
The type that values must be able to be coerced into for this option.boolean
isCoerceable
(Object value) Tests whether the given value can be coerced into the type given byOption.getType()
.boolean
Whether this option's value should be single-quoted.boolean
Whether this option requires a value.boolean
Whether this option takes a value.toString()
First ensures that the given value is coerceable into the type expected by this option, then returns the result ofObject.toString()
called on the given value.static TableOption.CompactionOption
Returns the enum constant of this class with the specified name.static TableOption.CompactionOption[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLASS
class
-
TOMBSTONE_THRESHOLD
tombstone_threshold
-
TOMBSTONE_COMPACTION_INTERVAL
tombstone_compaction_interval
-
MIN_SSTABLE_SIZE
min_sstable_size
-
MIN_THRESHOLD
min_threshold
-
MAX_THRESHOLD
max_threshold
-
BUCKET_LOW
bucket_low
-
BUCKET_HIGH
bucket_high
-
SSTABLE_SIZE_IN_MB
sstable_size_in_mb
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getType
Description copied from interface:Option
The type that values must be able to be coerced into for this option. -
takesValue
public boolean takesValue()Description copied from interface:Option
Whether this option takes a value.- Specified by:
takesValue
in interfaceOption
-
getName
Description copied from interface:Option
The (usually lower-cased, underscore-separated) name of this table option. -
escapesValue
public boolean escapesValue()Description copied from interface:Option
Whether this option should escape single quotes in its value.- Specified by:
escapesValue
in interfaceOption
-
quotesValue
public boolean quotesValue()Description copied from interface:Option
Whether this option's value should be single-quoted.- Specified by:
quotesValue
in interfaceOption
-
requiresValue
public boolean requiresValue()Description copied from interface:Option
Whether this option requires a value.- Specified by:
requiresValue
in interfaceOption
-
checkValue
Description copied from interface:Option
Checks that the given value can be coerced into the type given byOption.getType()
.- Specified by:
checkValue
in interfaceOption
-
isCoerceable
Description copied from interface:Option
Tests whether the given value can be coerced into the type given byOption.getType()
.- Specified by:
isCoerceable
in interfaceOption
-
toString
- Overrides:
toString
in classEnum<TableOption.CompactionOption>
-
toString
Description copied from interface:Option
First ensures that the given value is coerceable into the type expected by this option, then returns the result ofObject.toString()
called on the given value. If this option is escaping quotes (Option.escapesValue()
istrue
), then single quotes will be escaped, and if this option is quoting values (Option.quotesValue()
istrue
), then the value will be surrounded by single quotes. Given null, returns an empty string.
-