@Override public boolean update(JsonDoc doc, FieldTreeNode contextMd, Path contextPath) { boolean ret = false; for (Updater x : updaters) { if (x.update(doc, contextMd, contextPath)) { ret = true; } } return ret; } }
@Override public boolean update(JsonDoc doc, FieldTreeNode contextMd, Path contextPath) { boolean ret = false; for (Updater x : updaters) { if (x.update(doc, contextMd, contextPath)) { ret = true; } } return ret; } }
@Override public boolean update(JsonDoc doc, FieldTreeNode contextMd, Path contextPath) { boolean ret = false; for (Updater x : updaters) { if (x.update(doc, contextMd, contextPath)) { ret = true; } } return ret; } }
private boolean updateDoc(EntityMetadata md, JsonDoc doc, Measure measure) { if (updater.update(doc, md.getFieldTreeRoot(), Path.EMPTY)) { // Remove any nulls from the document JsonDoc.filterNulls(doc.getRoot()); measure.begin("updateArraySizes"); PredefinedFields.updateArraySizes(md, nodeFactory, doc); measure.end("updateArraySizes"); return true; } else { return false; } }
LOGGER.debug("query matches {}", elementPath); LOGGER.debug("Calling updater {}", updateInfo.updater); if (updateInfo.updater.update(doc, elementMd, elementPath)) { LOGGER.debug("Updater {} returns {}", updateInfo.updater, true); ret = true;
LOGGER.debug("query matches {}", elementPath); LOGGER.debug("Calling updater {}", updater); if (updater.update(doc, elementMd, elementPath)) { LOGGER.debug("Updater {} returns {}", updater, true); ret = true;
LOGGER.debug("query matches {}", elementPath); LOGGER.debug("Calling updater {}", updateInfo.updater); if (updateInfo.updater.update(doc, elementMd, elementPath)) { LOGGER.debug("Updater {} returns {}", updateInfo.updater, true); ret = true;
doc.startModifications(); if (updater.update(doc, md.getFieldTreeRoot(), Path.EMPTY)) { LOGGER.debug("Document {} modified, updating", docIndex); PredefinedFields.updateArraySizes(md, nodeFactory, doc);