|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.semanticweb.elk.reasoner.indexing.hierarchy.DirectIndex
org.semanticweb.elk.reasoner.indexing.hierarchy.DifferentialIndex
public class DifferentialIndex
An object representing incremental changes in the index. The changes are
stored in two maps: additions and deletions. The map for additions assigns to
every IndexedClassExpression new rules to be added to the index;
likewise, the map of deletions assigns to every
IndexedClassExpression a new rules to be removed from the index.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.semanticweb.elk.reasoner.indexing.hierarchy.DirectIndex |
|---|
DirectIndex.ContextRootInitializationRule |
| Constructor Summary | |
|---|---|
DifferentialIndex(IndexedObjectCache objectCache)
|
|
| Methods inherited from class org.semanticweb.elk.reasoner.indexing.hierarchy.DirectIndex |
|---|
addReflexiveProperty, getContextInitRuleChain, getContextInitRuleHead, getIndexedClasses, getIndexedClassExpressions, getIndexedIndividuals, getIndexedObjectCache, getIndexedObjectProperties, getIndexedOwlNothing, getIndexedOwlThing, getIndexedPropertyChains, getReflexiveObjectProperties, removeReflexiveProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DifferentialIndex(IndexedObjectCache objectCache)
| Method Detail |
|---|
public void initClassSignatureChanges()
public void initIndividualSignatureChanges()
public void initAdditions()
public void initDeletions()
public void addClass(ElkClass newClass)
ModifiableOntologyIndexElkClass to the signature of this
OntologyIndex
addClass in interface ModifiableOntologyIndexaddClass in class DirectIndexnewClass - the ElkClass to be addedpublic void removeClass(ElkClass oldClass)
ModifiableOntologyIndexElkClass from the signature of this
OntologyIndex
removeClass in interface ModifiableOntologyIndexremoveClass in class DirectIndexoldClass - the ElkClass to be removedpublic void addNamedIndividual(ElkNamedIndividual newIndividual)
ModifiableOntologyIndexElkNamedIndividual to the signature of this
OntologyIndex
addNamedIndividual in interface ModifiableOntologyIndexaddNamedIndividual in class DirectIndexnewIndividual - the ElkNamedIndividual to be addedpublic void removeNamedIndividual(ElkNamedIndividual oldIndividual)
ModifiableOntologyIndexElkNamedIndividual from the signature of this
OntologyIndex
removeNamedIndividual in interface ModifiableOntologyIndexremoveNamedIndividual in class DirectIndexoldIndividual - the ElkNamedIndividual to be removed
public void add(IndexedClassExpression target,
ChainableRule<Context> newRule)
ModifiableOntologyIndexIndexedClassExpression
add in interface ModifiableOntologyIndexadd in class DirectIndextarget - the IndexedClassExpression for which to add the rulenewRule - the context rule to be added
public void remove(IndexedClassExpression target,
ChainableRule<Context> oldRule)
ModifiableOntologyIndexIndexedClassExpression
remove in interface ModifiableOntologyIndexremove in class DirectIndextarget - the IndexedClassExpression for which to remove the
ruleoldRule - the context rule to be removedpublic void addContextInitRule(ChainableRule<Context> newRule)
ModifiableOntologyIndexOntologyIndex.
addContextInitRule in interface ModifiableOntologyIndexaddContextInitRule in class DirectIndexnewRule - the context initialization rule to be addedOntologyIndex.getContextInitRuleHead()public void removeContextInitRule(ChainableRule<Context> oldRule)
ModifiableOntologyIndexOntologyIndex
removeContextInitRule in interface ModifiableOntologyIndexremoveContextInitRule in class DirectIndexoldRule - the context initialization rule to be removedOntologyIndex.getContextInitRuleHead()public void add(IndexedObject newObject)
ModifiableOntologyIndexIndexedObject to this OntologyIndex
add in interface ModifiableOntologyIndexadd in class DirectIndexnewObject - the object to be addedpublic void remove(IndexedObject oldObject)
ModifiableOntologyIndexIndexedObject from this OntologyIndex
remove in interface ModifiableOntologyIndexremove in class DirectIndexoldObject - the object to be removedpublic ChainableRule<Context> getAddedContextInitRules()
public ChainableRule<Context> getRemovedContextInitRules()
public Map<IndexedClassExpression,ChainableRule<Context>> getAddedContextRulesByClassExpressions()
public Map<IndexedClassExpression,ChainableRule<Context>> getRemovedContextRulesByClassExpressions()
public Collection<ElkClass> getAddedClasses()
ElkClass added during the last incremental sessionpublic Collection<ElkNamedIndividual> getAddedIndividuals()
public Collection<IndexedClassExpression> getRemovedClassExpressions()
IndexedClassExpressions removed during the last
incremental sessionpublic void clearDeletedRules()
DifferentialIndex; these
rules should be already applied in the main index during their
registration
public void commitAddedRules()
DifferentialIndex.
public boolean isEmpty()
true if there are no uncommitted changes in this
DifferentialIndexpublic void setIncrementalMode(boolean mode)
DifferentialIndex.
mode - if true, deletions and additions to this indexed are
stored separately; if false all changes are
immediately applied to the index.public boolean isIncrementalMode()
DifferentialIndexsetIncrementalMode(boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||