Package org.elasticsearch.indices
Class SystemIndexDescriptor.Builder
java.lang.Object
org.elasticsearch.indices.SystemIndexDescriptor.Builder
- Enclosing class:
- SystemIndexDescriptor
Provides a fluent API for building a
SystemIndexDescriptor
. Validation still happens in that class.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aSystemIndexDescriptor
using the fields supplied to this builder.setAliasName
(String aliasName) setAllowedElasticProductOrigins
(List<String> allowedElasticProductOrigins) setDescription
(String description) setIndexFormat
(int indexFormat) setIndexPattern
(String indexPattern) setMappings
(String mappings) setMappings
(org.elasticsearch.xcontent.XContentBuilder mappingsBuilder) setMinimumNodeVersion
(Version version) setPrimaryIndex
(String primaryIndex) setPriorSystemIndexDescriptors
(List<SystemIndexDescriptor> priorSystemIndexDescriptors) setSettings
(Settings settings) setThreadPools
(ExecutorNames threadPoolExecutorNames) setVersionMetaKey
(String versionMetaKey)
-
Method Details
-
setIndexPattern
-
setPrimaryIndex
-
setDescription
-
setMappings
public SystemIndexDescriptor.Builder setMappings(org.elasticsearch.xcontent.XContentBuilder mappingsBuilder) -
setMappings
-
setSettings
-
setAliasName
-
setIndexFormat
-
setVersionMetaKey
-
setOrigin
-
setMinimumNodeVersion
-
setType
-
setAllowedElasticProductOrigins
public SystemIndexDescriptor.Builder setAllowedElasticProductOrigins(List<String> allowedElasticProductOrigins) -
setPriorSystemIndexDescriptors
public SystemIndexDescriptor.Builder setPriorSystemIndexDescriptors(List<SystemIndexDescriptor> priorSystemIndexDescriptors) -
setThreadPools
-
setNetNew
-
build
Builds aSystemIndexDescriptor
using the fields supplied to this builder.- Returns:
- a populated descriptor.
-