Class ZoneDefinition
java.lang.Object
org.apache.ignite.catalog.definitions.ZoneDefinition
Definition of the
CREATE ZONE statement.
The zone name is an SQL identifier expression, read exactly the way CREATE ZONE reads it: an unquoted name is folded to
upper case, so builder("myZone") and builder("MYZONE") name the same zone; a double-quoted name is taken literally,
so builder("\"myZone\"") names a case-sensitive zone. A name that is not a valid SQL identifier is rejected.
The built-in default zone is stored mixed-case, as Default, so naming it takes quotes as well:
"\"Default\"", the value of Table.DEFAULT_ZONE. An unquoted Default
names the zone DEFAULT instead.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for the zone definition. -
Method Summary
Modifier and TypeMethodDescriptionstatic ZoneDefinition.BuilderCreates a builder for the zone with the specified name.Returns consistency mode.Deprecated.Returns timeout in seconds between node left topology event itself and data nodes switch.Returns timeout in seconds between node added topology event itself and data nodes switch.Returns distribution algorithm.filter()Returns nodes filter.booleanReturns not exists flag.Returns number of partitions.Returns quorum size.replicas()Returns number of replicas.Returns storage profiles.Returns new builder using this definition.toString()zoneName()Returns zone name as an SQL identifier expression, quoted if the normalized name needs quoting to be spelled that way.
-
Method Details
-
builder
Creates a builder for the zone with the specified name.- Parameters:
zoneName- Zone name as an SQL identifier expression.- Returns:
- Builder.
- Throws:
NullPointerException- If the name isnull.IllegalArgumentException- If the name is blank or is not a valid SQL identifier.
-
zoneName
Returns zone name as an SQL identifier expression, quoted if the normalized name needs quoting to be spelled that way. E.g.MYZONEfor a zone built from"myZone", and"myZone"for one built from"\"myZone\"".- Returns:
- Zone name.
-
ifNotExists
public boolean ifNotExists()Returns not exists flag.- Returns:
trueifIF NOT EXISTSclause should be added to the statement.
-
partitions
Returns number of partitions.- Returns:
- Number of partitions.
-
replicas
Returns number of replicas.- Returns:
- Number of replicas.
-
quorumSize
Returns quorum size.- Returns:
- Quorum size.
-
distributionAlgorithm
Returns distribution algorithm.- Returns:
- Distribution algorithm.
-
dataNodesAutoAdjust
Deprecated.Deprecated, should not be used anymore. Returns timeout in seconds between node added or node left topology event itself and data nodes switch.- Returns:
- Timeout.
-
dataNodesAutoAdjustScaleUp
Returns timeout in seconds between node added topology event itself and data nodes switch.- Returns:
- Timeout.
-
dataNodesAutoAdjustScaleDown
Returns timeout in seconds between node left topology event itself and data nodes switch.- Returns:
- Timeout.
-
filter
Returns nodes filter.- Returns:
- Nodes filter.
-
storageProfiles
Returns storage profiles.- Returns:
- Storage profiles.
-
consistencyMode
Returns consistency mode.- Returns:
- Consistency mode.
-
toBuilder
Returns new builder using this definition.- Returns:
- New builder.
-
toString
-