java.lang.Object
org.elasticsearch.script.Metadata
org.elasticsearch.script.ReindexMetadata
Metadata for the 
ReindexScript context.
 _index, _id, _version, _routing are all read-write.  _id, _version and _routing are also nullable.
 _now is millis since epoch and read-only
 op is read-write one of 'index', 'noop', 'delete'
 If _version is set to null in the ctx map, that is interpreted as using internal versioning.
 The setVersionToInternal(Metadata) and isVersionInternal(Metadata) augmentations
 are provided for users of this class.  These augmentations allow the class to appear as Metadata
 but handle the internal versioning scheme without scripts accessing the ctx map.- 
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.script.Metadata
Metadata.FieldProperty<T>, Metadata.MapOperation - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final Stringprotected final Stringprotected final LongFields inherited from class org.elasticsearch.script.Metadata
BAD_KEY, DYNAMIC_TEMPLATES, ID, IF_PRIMARY_TERM, IF_SEQ_NO, INDEX, LongField, map, NOW, ObjectField, OP, ROUTING, StringField, TYPE, VERSION, VERSION_TYPE - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionlongGet version, if it's null, return sentinel valueLong.MIN_VALUEbooleanbooleanbooleanstatic booleanisVersionInternal(Metadata receiver) Augmentation to allowReindexScripts to check if the version is set to "internal"Create the backing metadata map with the standard contents assuming default validators.booleanstatic voidsetVersionToInternal(Metadata receiver) Augmentation to allowReindexScripts to set the version to "internal".booleanMethods inherited from class org.elasticsearch.script.Metadata
clone, containsKey, containsValue, equals, get, getDynamicTemplates, getId, getIfPrimaryTerm, getIfSeqNo, getIndex, getMap, getNow, getNumber, getOp, getOrDefault, getRouting, getString, getVersionType, hashCode, isAvailable, keySet, put, remove, setId, setIndex, setOp, setRouting, setVersion, setVersionType, size, stringSetValidator, validateMetadata 
- 
Field Details
- 
index
 - 
id
 - 
version
 - 
routing
 
 - 
 - 
Constructor Details
- 
ReindexMetadata
 
 - 
 - 
Method Details
- 
metadataMap
protected static Map<String,Object> metadataMap(String index, String id, Long version, String routing, String op, long timestamp) Create the backing metadata map with the standard contents assuming default validators. - 
getVersion
public long getVersion()Get version, if it's null, return sentinel valueLong.MIN_VALUE- Overrides:
 getVersionin classMetadata
 - 
isVersionInternal
public boolean isVersionInternal() - 
isVersionInternal
Augmentation to allowReindexScripts to check if the version is set to "internal" - 
setVersionToInternal
Augmentation to allowReindexScripts to set the version to "internal". This is necessary becauseMetadata.setVersion(long)takes a primitive long. - 
versionChanged
public boolean versionChanged() - 
indexChanged
public boolean indexChanged() - 
idChanged
public boolean idChanged() - 
routingChanged
public boolean routingChanged() 
 -