java.lang.Object
org.elasticsearch.script.Metadata
org.elasticsearch.script.UpdateMetadata
The update context has read-only metadata:
_index, _id, _version, _routing, _type (always '_doc'), _now (timestamp in millis)
and read-write op that may be one of 'noop' or 'none' (legacy), 'index', 'delete' or null
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.script.Metadata
Metadata.FieldProperty<T>, Metadata.MapOperation
-
Field Summary
FieldsFields inherited from class org.elasticsearch.script.Metadata
BAD_KEY, DYNAMIC_TEMPLATES, ID, IF_PRIMARY_TERM, IF_SEQ_NO, INDEX, LongField, map, NOW, ObjectField, OP, properties, ROUTING, StringField, TYPE, VERSION, VERSION_TYPE
-
Constructor Summary
ConstructorsModifierConstructorDescriptionUpdateMetadata
(String index, String id, long version, String routing, String type, String op, long now) protected
UpdateMetadata
(Map<String, Object> metadata, Set<String> validOps, Map<String, Metadata.FieldProperty<?>> properties) -
Method Summary
Methods inherited from class org.elasticsearch.script.Metadata
clone, containsKey, containsValue, equals, get, getDynamicTemplates, getId, getIfPrimaryTerm, getIfSeqNo, getIndex, getMap, getNow, getNumber, getRouting, getString, getVersion, getVersionType, hashCode, isAvailable, keySet, put, remove, setId, setIndex, setRouting, setVersion, setVersionType, size, stringSetValidator, validateMetadata
-
Field Details
-
LEGACY_NOOP_STRING
- See Also:
-
validOps
-
-
Constructor Details
-
UpdateMetadata
-
UpdateMetadata
-
-
Method Details