public static class MetaDataEvolutionValidator.Builder extends Object
MetaDataEvolutionValidator
. 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.Modifier and Type | Method and 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 a
MetaDataEvolutionValidator 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.
|
@Nonnull public MetaDataEvolutionValidator.Builder setIndexMaintainerRegistry(@Nonnull IndexMaintainerRegistry indexMaintainerRegistry)
indexMaintainerRegistry
- the index maintainer registry used to validate indexesFDBRecordStoreBase.BaseBuilder.setIndexMaintainerRegistry(IndexMaintainerRegistry)
,
MetaDataEvolutionValidator.getIndexMaintainerRegistry()
@Nonnull public IndexMaintainerRegistry getIndexMaintainerRegistry()
FDBRecordStoreBase.BaseBuilder.setIndexMaintainerRegistry(IndexMaintainerRegistry)
,
MetaDataEvolutionValidator.getIndexMaintainerRegistry()
@Nonnull public MetaDataEvolutionValidator.Builder setAllowNoVersionChange(boolean allowNoVersionChange)
allowNoVersionChange
- whether the validator will allow the evolved meta-data to have the same version as the old meta-dataMetaDataEvolutionValidator.allowsNoVersionChange()
public boolean allowsNoVersionChange()
MetaDataEvolutionValidator.allowsNoVersionChange()
@Nonnull public MetaDataEvolutionValidator.Builder setAllowNoSinceVersion(boolean allowNoSinceVersion)
allowNoSinceVersion
- whether the validator will allow new record types to not declare a since versionMetaDataEvolutionValidator.allowsNoSinceVersion()
public boolean allowsNoSinceVersion()
MetaDataEvolutionValidator.allowsNoSinceVersion()
@Nonnull public MetaDataEvolutionValidator.Builder setAllowIndexRebuilds(boolean allowIndexRebuilds)
allowIndexRebuilds
- whether the validator will allow changes to indexes that require rebuildsMetaDataEvolutionValidator.allowsIndexRebuilds()
public boolean allowsIndexRebuilds()
MetaDataEvolutionValidator.allowsIndexRebuilds()
@Nonnull public MetaDataEvolutionValidator.Builder setAllowMissingFormerIndexNames(boolean allowMissingFormerIndexNames)
allowMissingFormerIndexNames
- whether the validator will allow former indexes to drop the name of the index they replaceMetaDataEvolutionValidator.allowsMissingFormerIndexNames()
public boolean allowsMissingFormerIndexNames()
MetaDataEvolutionValidator.allowsMissingFormerIndexNames()
@Nonnull public MetaDataEvolutionValidator.Builder setAllowOlderFormerIndexAddedVerions(boolean allowOlderFormerIndexAddedVerions)
allowOlderFormerIndexAddedVerions
- whether the validator will allow former indexes to have older added versions than necessaryMetaDataEvolutionValidator.allowsOlderFormerIndexAddedVersions()
public boolean allowsOlderFormerIndexAddedVersions()
MetaDataEvolutionValidator.allowsOlderFormerIndexAddedVersions()
@Nonnull public MetaDataEvolutionValidator.Builder setAllowUnsplitToSplit(boolean allowUnsplitToSplit)
allowUnsplitToSplit
- whether the validator will allow the meta-data to begin to split long records.MetaDataEvolutionValidator.allowsUnsplitToSplit()
public boolean allowsUnsplitToSplit()
MetaDataEvolutionValidator.allowsUnsplitToSplit()
@Nonnull public MetaDataEvolutionValidator.Builder setDisallowTypeRenames(boolean disallowTypeRenames)
disallowTypeRenames
- whether the validator will disallow record types from being renamedMetaDataEvolutionValidator.disallowsTypeRenames()
public boolean disallowsTypeRenames()
MetaDataEvolutionValidator.disallowsTypeRenames()
@Nonnull public MetaDataEvolutionValidator build()
MetaDataEvolutionValidator
using the options specified through this
builder.MetaDataEvolutionValidator