public interface GuardrailsConfig
Note that the settings here must only be used by the Guardrails
class and not directly by the code
checking each guarded constraint (which, again, should use the higher level abstractions defined in
Guardrails
).
We have 2 variants of guardrails, soft (warn) and hard (fail) limits, each guardrail having either one of the variants or both. Note in particular that hard limits only make sense for guardrails triggering during query execution. For other guardrails, say one triggering during compaction, aborting that compaction does not make sense.
Additionally, each individual setting should have a specific value (typically -1 for numeric settings), that allows to disable the corresponding guardrail.
This configuration is offered as an interface so different implementations of GuardrailsConfigProvider
can
provide different implementations of this config. However, this mechanism for guardrails config pluggability is not
officially supported and this interface may change in a minor release.
int getKeyspacesWarnThreshold()
int getKeyspacesFailThreshold()
int getTablesWarnThreshold()
int getTablesFailThreshold()
int getColumnsPerTableWarnThreshold()
int getColumnsPerTableFailThreshold()
int getSecondaryIndexesPerTableWarnThreshold()
int getSecondaryIndexesPerTableFailThreshold()
boolean getSecondaryIndexesEnabled()
int getMaterializedViewsPerTableWarnThreshold()
int getPartitionKeysInSelectWarnThreshold()
int getPartitionKeysInSelectFailThreshold()
int getMaterializedViewsPerTableFailThreshold()
java.util.Set<java.lang.String> getTablePropertiesWarned()
java.util.Set<java.lang.String> getTablePropertiesIgnored()
java.util.Set<java.lang.String> getTablePropertiesDisallowed()
boolean getUserTimestampsEnabled()
true
if user-provided timestamps are allowed, false
otherwise.boolean getUncompressedTablesEnabled()
true
if user's can disable compression, false
otherwise.boolean getCompactTablesEnabled()
true
if allowed, false
otherwise.boolean getGroupByEnabled()
true
if allowed, false
otherwise.boolean getDropTruncateTableEnabled()
true
if allowed, false
otherwise.int getPageSizeWarnThreshold()
int getPageSizeFailThreshold()
boolean getReadBeforeWriteListOperationsEnabled()
true
if list operations that require read before write are allowed, false
otherwise.boolean getAllowFilteringEnabled()
true
if ALLOW FILTERING is allowed, false
otherwise.int getInSelectCartesianProductWarnThreshold()
int getInSelectCartesianProductFailThreshold()
java.util.Set<ConsistencyLevel> getReadConsistencyLevelsWarned()
java.util.Set<ConsistencyLevel> getReadConsistencyLevelsDisallowed()
java.util.Set<ConsistencyLevel> getWriteConsistencyLevelsWarned()
java.util.Set<ConsistencyLevel> getWriteConsistencyLevelsDisallowed()
@Nullable DataStorageSpec.LongBytesBound getCollectionSizeWarnThreshold()
@Nullable DataStorageSpec.LongBytesBound getCollectionSizeFailThreshold()
int getItemsPerCollectionWarnThreshold()
int getItemsPerCollectionFailThreshold()
int getFieldsPerUDTWarnThreshold()
int getFieldsPerUDTFailThreshold()
int getDataDiskUsagePercentageWarnThreshold()
[1, 100]
, and -1 means disabled.int getDataDiskUsagePercentageFailThreshold()
[1, 100]
, and -1 means disabled.@Nullable DataStorageSpec.LongBytesBound getDataDiskUsageMaxDiskSize()
null
means
disabled.int getMinimumReplicationFactorWarnThreshold()
int getMinimumReplicationFactorFailThreshold()
Copyright © 2009-2022 The Apache Software Foundation