|
|
@@ -47,14 +47,14 @@ public class UpdateMetadata extends Metadata {
|
|
|
SET_ONCE_STRING,
|
|
|
OP,
|
|
|
new FieldProperty<>(String.class, true, true, null),
|
|
|
- TIMESTAMP,
|
|
|
+ NOW,
|
|
|
SET_ONCE_LONG
|
|
|
);
|
|
|
|
|
|
protected final Set<String> validOps;
|
|
|
|
|
|
- public UpdateMetadata(String index, String id, long version, String routing, String type, String op, long timestamp) {
|
|
|
- this(metadataMap(index, id, version, routing, type, op, timestamp), Set.of("noop", "index", "delete"), PROPERTIES);
|
|
|
+ public UpdateMetadata(String index, String id, long version, String routing, String type, String op, long now) {
|
|
|
+ this(metadataMap(index, id, version, routing, type, op, now), Set.of("noop", "index", "delete"), PROPERTIES);
|
|
|
}
|
|
|
|
|
|
protected UpdateMetadata(Map<String, Object> metadata, Set<String> validOps, Map<String, FieldProperty<?>> properties) {
|
|
|
@@ -69,7 +69,7 @@ public class UpdateMetadata extends Metadata {
|
|
|
String routing,
|
|
|
String type,
|
|
|
String op,
|
|
|
- long timestamp
|
|
|
+ long now
|
|
|
) {
|
|
|
Map<String, Object> metadata = Maps.newHashMapWithExpectedSize(PROPERTIES.size());
|
|
|
metadata.put(INDEX, index);
|
|
|
@@ -78,7 +78,7 @@ public class UpdateMetadata extends Metadata {
|
|
|
metadata.put(ROUTING, routing);
|
|
|
metadata.put(TYPE, type);
|
|
|
metadata.put(OP, op);
|
|
|
- metadata.put(TIMESTAMP, timestamp);
|
|
|
+ metadata.put(NOW, now);
|
|
|
return metadata;
|
|
|
}
|
|
|
|