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)
setIndexType(String indexType)
Deprecated.Index types are going away over the next two major releases.setMappings(String mappings)
setMappings(org.elasticsearch.common.xcontent.XContentBuilder mappingsBuilder)
setMinimumNodeVersion(Version version)
setPrimaryIndex(String primaryIndex)
setPriorSystemIndexDescriptors(List<SystemIndexDescriptor> priorSystemIndexDescriptors)
setSettings(Settings settings)
setThreadPools(ExecutorNames executorNames)
setVersionMetaKey(String versionMetaKey)
-
Method Details
-
setIndexPattern
-
setPrimaryIndex
-
setDescription
-
setMappings
public SystemIndexDescriptor.Builder setMappings(org.elasticsearch.common.xcontent.XContentBuilder mappingsBuilder) -
setMappings
-
setSettings
-
setAliasName
-
setIndexFormat
-
setVersionMetaKey
-
setOrigin
-
setIndexType
Deprecated.Index types are going away over the next two major releases. New system indices should accept the default, which isMapperService.SINGLE_MAPPING_NAME
. -
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.
-