kContext.checkLock(getBTreeName());
if (value == null || !(value instanceof NodeId)) {
throw new ChaiDBException(ErrorCode.BTREE_DEBUG, "the value is invalid , maybe null or not node id type.");
}
this.getBTreeSpec().setModified(true);
NodeId nodeid = (NodeId) value;
NodeId tmpId = null;
DuplicatedKeyIterator dki = lookup(key, kContext);
try {
while (dki.hasNext()) {
tmpId = (NodeId) dki.next();
if (tmpId.equals(nodeid)) {
dki.remove();
return true;
}
} //end while
} finally {