@Override public void apply() { try { data.insert(data.meta.size, -1, new DataClip(newDocs.data)); } finally { newDocs.finish(); } }
@Override public void merge(final Update update) throws QueryException { final DBAdd add = (DBAdd) update; if (replace || add.replace) throw UPMULTDOC_X_X.get(info, data.meta.name, newDocs.inputs.get(0).path); newDocs.merge(add.newDocs); }
@Override public void prepare() throws QueryException { size = newDocs.inputs.size(); newDocs.prepare(data.meta.name); }