/** * Sets the incremental mode for this {@code DifferentialIndex}. * * @param incremental * if {@code true}, deletions and additions to this indexed are * stored separately; if {@code false} all changes are * immediately applied to the index. */ public void setIncrementalMode(boolean incremental) { if (this.incrementalMode == incremental) // already set return; LOGGER_.trace("set incremental mode: " + incremental); this.incrementalMode = incremental; if (!incremental) { clearDeletedRules(); commitAddedRules(); initClassChanges(); initIndividualChanges(); } }
/** * Sets the incremental mode for this {@code DifferentialIndex}. * * @param incremental * if {@code true}, deletions and additions to this indexed are * stored separately; if {@code false} all changes are * immediately applied to the index. */ public void setIncrementalMode(boolean incremental) { if (this.incrementalMode == incremental) // already set return; LOGGER_.trace("set incremental mode: " + incremental); this.incrementalMode = incremental; if (!incremental) { clearDeletedRules(); commitAddedRules(); initClassChanges(); initIndividualChanges(); } }
/** * Sets the incremental mode for this {@code DifferentialIndex}. * * @param incremental * if {@code true}, deletions and additions to this indexed are * stored separately; if {@code false} all changes are * immediately applied to the index. */ public void setIncrementalMode(boolean incremental) { if (this.incrementalMode == incremental) // already set return; LOGGER_.trace("set incremental mode: " + incremental); this.incrementalMode = incremental; if (!incremental) { clearDeletedRules(); commitAddedRules(); initClassChanges(); initIndividualChanges(); } }
@Override public boolean postExecute() { if (!super.postExecute()) return false; this.initialization = null; // initializing contexts which will be removed final SaturationStateWriter<?> satStateWriter = reasoner.saturationState .getContextCreatingWriter(); for (IndexedClassExpression ice : reasoner.ontologyIndex .getRemovedClassExpressions()) { if (reasoner.saturationState.getContext(ice) != null) { satStateWriter .produce(new ContextInitializationNoPremises(ice)); } } reasoner.ontologyIndex.clearDeletedRules(); return true; } }
@Override public boolean postExecute() { if (!super.postExecute()) return false; this.initialization = null; // initializing contexts which will be removed final SaturationStateWriter<?> satStateWriter = reasoner.saturationState .getContextCreatingWriter(); for (IndexedClassExpression ice : reasoner.ontologyIndex .getRemovedClassExpressions()) { if (reasoner.saturationState.getContext(ice) != null) { satStateWriter .produce(new ContextInitializationNoPremises(ice)); } } reasoner.ontologyIndex.clearDeletedRules(); return true; } }
@Override public boolean postExecute() { if (!super.postExecute()) return false; this.initialization = null; // initializing contexts which will be removed final SaturationStateWriter<?> satStateWriter = reasoner.saturationState .getContextCreatingWriter(); for (IndexedClassExpression ice : reasoner.ontologyIndex .getRemovedClassExpressions()) { if (reasoner.saturationState.getContext(ice) != null) { satStateWriter .produce(new ContextInitializationNoPremises(ice)); } } reasoner.ontologyIndex.clearDeletedRules(); return true; } }