primaryTerm
public long primaryTerm(int shardId)
returns the primary term for the given shard.
See
IndexMetadata.primaryTerm(int)
for more information.long
aliasesVersion(long aliasesVersion)
build()
creationDate(long creationDate)
static IndexMetadata
fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)
getInSyncAllocationIds(int shardId)
int
boolean
isSystem()
long
mappingVersion(long mappingVersion)
numberOfReplicas(int numberOfReplicas)
int
numberOfShards(int numberOfShards)
long
primaryTerm(int shardId)
primaryTerm(int shardId,
long primaryTerm)
putAlias(AliasMetadata aliasMetadata)
putAlias(AliasMetadata.Builder aliasMetadata)
putInSyncAllocationIds(int shardId,
Set<String> allocationIds)
putMapping(String type,
String source)
putMapping(MappingMetadata mappingMd)
putRolloverInfo(RolloverInfo rolloverInfo)
removeAlias(String alias)
removeCustom(String type)
routingPartitionSize(int routingPartitionSize)
setRoutingNumShards(int routingNumShards)
settings(Settings.Builder settings)
long
settingsVersion(long settingsVersion)
state(IndexMetadata.State state)
system(boolean system)
timestampRange(IndexLongFieldRange timestampRange)
static void
toXContent(IndexMetadata indexMetadata,
org.elasticsearch.common.xcontent.XContentBuilder builder,
org.elasticsearch.common.xcontent.ToXContent.Params params)
long
version()
version(long version)
setRoutingNumShards(int)
,
numberOfShards()
IOException
IndexMetadata.primaryTerm(int)
for more information.IndexMetadata.primaryTerm(int)
for more information.IOException
IOException