Class MetaDataEvolutionValidator.Builder
- java.lang.Object
-
- com.apple.foundationdb.record.metadata.MetaDataEvolutionValidator.Builder
-
- Enclosing class:
- MetaDataEvolutionValidator
public static class MetaDataEvolutionValidator.Builder extends Object
A builder class for theMetaDataEvolutionValidator
. The validator has several options about how strict it is when evaluating the changes that have been applied to the new meta-data. This builder allows the user to set those options.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
allowsIndexRebuilds()
Whether the validator will allow changes to indexes that require rebuilds.boolean
allowsMissingFormerIndexNames()
Whether the validator will allow former indexes to drop the name of the index they replace.boolean
allowsNoSinceVersion()
Whether the validator will allow new record types to not declare a "since version".boolean
allowsNoVersionChange()
Whether the validator will allow the evolved meta-data to have same version as the old meta-data.boolean
allowsOlderFormerIndexAddedVersions()
Whether the validator will allow former indexes to set their added version to something that is older than necessary.boolean
allowsUnsplitToSplit()
Get whether the validator will allow the meta-data to begin to split long records.MetaDataEvolutionValidator
build()
Create aMetaDataEvolutionValidator
using the options specified through this builder.boolean
disallowsTypeRenames()
Get whether this validator will disallow record types from being renamed.IndexMaintainerRegistry
getIndexMaintainerRegistry()
Get the registry of index maintainers used to validate indexes.MetaDataEvolutionValidator.Builder
setAllowIndexRebuilds(boolean allowIndexRebuilds)
Set whether the validator will allow changes to indexes that require rebuilds.MetaDataEvolutionValidator.Builder
setAllowMissingFormerIndexNames(boolean allowMissingFormerIndexNames)
Set whether the validator will allow former indexes to drop the name of the index they replace.MetaDataEvolutionValidator.Builder
setAllowNoSinceVersion(boolean allowNoSinceVersion)
Set whether the validator will allow new record types to not declare a "since version".MetaDataEvolutionValidator.Builder
setAllowNoVersionChange(boolean allowNoVersionChange)
Set whether the validator will allow the evolved meta-data to have the same version as the old meta-data.MetaDataEvolutionValidator.Builder
setAllowOlderFormerIndexAddedVerions(boolean allowOlderFormerIndexAddedVerions)
Set whether the validator will allow former indexes to set their added version to something that is older than necessary.MetaDataEvolutionValidator.Builder
setAllowUnsplitToSplit(boolean allowUnsplitToSplit)
Set whether the validator will allow the meta-data to begin to split long records.MetaDataEvolutionValidator.Builder
setDisallowTypeRenames(boolean disallowTypeRenames)
Set whether the validator will disallow record types from being renamed.MetaDataEvolutionValidator.Builder
setIndexMaintainerRegistry(IndexMaintainerRegistry indexMaintainerRegistry)
Set the registry of index maintainers used to validate indexes.
-
-
-
Method Detail
-
setIndexMaintainerRegistry
@Nonnull public MetaDataEvolutionValidator.Builder setIndexMaintainerRegistry(@Nonnull IndexMaintainerRegistry indexMaintainerRegistry)
Set the registry of index maintainers used to validate indexes.- Parameters:
indexMaintainerRegistry
- the index maintainer registry used to validate indexes- Returns:
- this builder
- See Also:
FDBRecordStoreBase.BaseBuilder.setIndexMaintainerRegistry(IndexMaintainerRegistry)
,MetaDataEvolutionValidator.getIndexMaintainerRegistry()
-
getIndexMaintainerRegistry
@Nonnull public IndexMaintainerRegistry getIndexMaintainerRegistry()
Get the registry of index maintainers used to validate indexes.- Returns:
- the index maintainer registry used to validate indexes
- See Also:
FDBRecordStoreBase.BaseBuilder.setIndexMaintainerRegistry(IndexMaintainerRegistry)
,MetaDataEvolutionValidator.getIndexMaintainerRegistry()
-
setAllowNoVersionChange
@Nonnull public MetaDataEvolutionValidator.Builder setAllowNoVersionChange(boolean allowNoVersionChange)
Set whether the validator will allow the evolved meta-data to have the same version as the old meta-data.- Parameters:
allowNoVersionChange
- whether the validator will allow the evolved meta-data to have the same version as the old meta-data- Returns:
- this builder
- See Also:
MetaDataEvolutionValidator.allowsNoVersionChange()
-
allowsNoVersionChange
public boolean allowsNoVersionChange()
Whether the validator will allow the evolved meta-data to have same version as the old meta-data.- Returns:
- whether the validator will allow the evolved meta-data to have the same version as the old meta-data
- See Also:
MetaDataEvolutionValidator.allowsNoVersionChange()
-
setAllowNoSinceVersion
@Nonnull public MetaDataEvolutionValidator.Builder setAllowNoSinceVersion(boolean allowNoSinceVersion)
Set whether the validator will allow new record types to not declare a "since version".- Parameters:
allowNoSinceVersion
- whether the validator will allow new record types to not declare a since version- Returns:
- this builder
- See Also:
MetaDataEvolutionValidator.allowsNoSinceVersion()
-
allowsNoSinceVersion
public boolean allowsNoSinceVersion()
Whether the validator will allow new record types to not declare a "since version".- Returns:
- whether the validator will allow new record types to not declare a since version
- See Also:
MetaDataEvolutionValidator.allowsNoSinceVersion()
-
setAllowIndexRebuilds
@Nonnull public MetaDataEvolutionValidator.Builder setAllowIndexRebuilds(boolean allowIndexRebuilds)
Set whether the validator will allow changes to indexes that require rebuilds.- Parameters:
allowIndexRebuilds
- whether the validator will allow changes to indexes that require rebuilds- Returns:
- this builder
- See Also:
MetaDataEvolutionValidator.allowsIndexRebuilds()
-
allowsIndexRebuilds
public boolean allowsIndexRebuilds()
Whether the validator will allow changes to indexes that require rebuilds.- Returns:
- whether the validator will allow changes to index that require rebuilds
- See Also:
MetaDataEvolutionValidator.allowsIndexRebuilds()
-
setAllowMissingFormerIndexNames
@Nonnull public MetaDataEvolutionValidator.Builder setAllowMissingFormerIndexNames(boolean allowMissingFormerIndexNames)
Set whether the validator will allow former indexes to drop the name of the index they replace.- Parameters:
allowMissingFormerIndexNames
- whether the validator will allow former indexes to drop the name of the index they replace- Returns:
- this builder
- See Also:
MetaDataEvolutionValidator.allowsMissingFormerIndexNames()
-
allowsMissingFormerIndexNames
public boolean allowsMissingFormerIndexNames()
Whether the validator will allow former indexes to drop the name of the index they replace.- Returns:
- whether the validator will allow former indexes to drop the name of the index they replace
- See Also:
MetaDataEvolutionValidator.allowsMissingFormerIndexNames()
-
setAllowOlderFormerIndexAddedVerions
@Nonnull public MetaDataEvolutionValidator.Builder setAllowOlderFormerIndexAddedVerions(boolean allowOlderFormerIndexAddedVerions)
Set whether the validator will allow former indexes to set their added version to something that is older than necessary.- Parameters:
allowOlderFormerIndexAddedVerions
- whether the validator will allow former indexes to have older added versions than necessary- Returns:
- this builder
- See Also:
MetaDataEvolutionValidator.allowsOlderFormerIndexAddedVersions()
-
allowsOlderFormerIndexAddedVersions
public boolean allowsOlderFormerIndexAddedVersions()
Whether the validator will allow former indexes to set their added version to something that is older than necessary.- Returns:
- whether the validator will allow former indexes to have older added versions than necessary
- See Also:
MetaDataEvolutionValidator.allowsOlderFormerIndexAddedVersions()
-
setAllowUnsplitToSplit
@Nonnull public MetaDataEvolutionValidator.Builder setAllowUnsplitToSplit(boolean allowUnsplitToSplit)
Set whether the validator will allow the meta-data to begin to split long records.- Parameters:
allowUnsplitToSplit
- whether the validator will allow the meta-data to begin to split long records.- Returns:
- this builder
- See Also:
MetaDataEvolutionValidator.allowsUnsplitToSplit()
-
allowsUnsplitToSplit
public boolean allowsUnsplitToSplit()
Get whether the validator will allow the meta-data to begin to split long records.- Returns:
- whether this validator will allow the meta-data to begin to split long records.
- See Also:
MetaDataEvolutionValidator.allowsUnsplitToSplit()
-
setDisallowTypeRenames
@Nonnull public MetaDataEvolutionValidator.Builder setDisallowTypeRenames(boolean disallowTypeRenames)
Set whether the validator will disallow record types from being renamed.- Parameters:
disallowTypeRenames
- whether the validator will disallow record types from being renamed- Returns:
- this builder
- See Also:
MetaDataEvolutionValidator.disallowsTypeRenames()
-
disallowsTypeRenames
public boolean disallowsTypeRenames()
Get whether this validator will disallow record types from being renamed.- Returns:
- whether this validator disallow record types from being renamed
- See Also:
MetaDataEvolutionValidator.disallowsTypeRenames()
-
build
@Nonnull public MetaDataEvolutionValidator build()
Create aMetaDataEvolutionValidator
using the options specified through this builder.- Returns:
- a new
MetaDataEvolutionValidator
-
-