handler = new BasicIndexerEventHandler() {
public void onNameAdded(IndexPattern pattern, Key key, short elemID, short attrID) throws DBException {
try {
addValue(getCombinedValue(key, elemID, attrID), 0);
} catch (IOException e) {
throw new BTreeCorruptException("Corruption detected on add", e);
}
}
public void onNameDeleted(IndexPattern pattern, Key key, short elemID, short attrID) throws DBException {
try {
removeValue(getCombinedValue(key, elemID, attrID));
} catch (IOException e) {
throw new BTreeCorruptException("Corruption detected on remove", e);
}
}
};
}