try { domDb.addValue( new NodeRef(doc.getDocId(), gid), node.getInternalAddress()); } catch (BTreeException e) { LOG.warn(EXCEPTION_DURING_REINDEX, e); } catch (IOException e) { LOG.warn(EXCEPTION_DURING_REINDEX, e);
try { Value ref = new NodeRef(doc.getDocId()); IndexQuery query = new IndexQuery(IndexQuery.TRUNC_RIGHT, ref); final ArrayList nodes = domDb.findKeys(query); long gid; for (Iterator i = nodes.iterator(); i.hasNext();) { ref = (Value) i.next(); gid = ByteConversion.byteToLong(ref.data(), ref.start() + 4); if (oldDoc.getTreeLevel(gid) >= doc.reindexRequired()) { if (node != null) { if (XMLUtil.isDescendant(oldDoc, node.getGID(), gid)) { domDb.removeValue(ref); } } else domDb.removeValue(ref);
					public Object start() throws ReadOnlyException {						try {							domDb.addValue(								new NodeRef(doc.getDocId(), gid),								node.getInternalAddress());						} catch (BTreeException e) {							LOG.warn(EXCEPTION_DURING_REINDEX, e);						} catch (IOException e) {							LOG.warn(EXCEPTION_DURING_REINDEX, e);						}						return null;					}