public class IndexedObjectCache extends Object implements IndexedObjectFilter
IndexedObjects in the ontology backed by a
KeyEntryHashSet. It uses indexed KeyEntrys to compare object
with respect to structural equality. Supports (non-recursive) addition,
removal, and retrieval of single indexed objects. The recursion for indexing
subobjects is in the IndexObjectConverter. Not all
IndexedObjects are cached but only those whose uniqueness modulo
structural equivalence is important for index updating to work correctly.| Modifier and Type | Field and Description |
|---|---|
protected KeyEntryHashSet<IndexedAxiom> |
indexedAxiomLookup |
protected int |
indexedClassCount |
protected KeyEntryHashSet<IndexedClassExpression> |
indexedClassExpressionLookup |
protected int |
indexedIndividualCount |
protected int |
indexedObjectPropertyCount |
protected KeyEntryHashSet<IndexedPropertyChain> |
indexedPropertyChainLookup |
| Constructor and Description |
|---|
IndexedObjectCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
IndexObjectConverter |
getIndexObjectConverter() |
boolean |
isEmpty() |
long |
size() |
void |
subtract(IndexedObjectCache other)
Remove all object of the given
IndexedObjectCache from this
IndexedObjectCache |
IndexedBinaryPropertyChain |
visit(IndexedBinaryPropertyChain element) |
IndexedClass |
visit(IndexedClass element) |
IndexedDataHasValue |
visit(IndexedDataHasValue element) |
IndexedDisjointnessAxiom |
visit(IndexedDisjointnessAxiom axiom) |
IndexedIndividual |
visit(IndexedIndividual element) |
IndexedObjectComplementOf |
visit(IndexedObjectComplementOf element) |
IndexedObjectIntersectionOf |
visit(IndexedObjectIntersectionOf element) |
IndexedObjectProperty |
visit(IndexedObjectProperty element) |
IndexedObjectSomeValuesFrom |
visit(IndexedObjectSomeValuesFrom element) |
IndexedObjectUnionOf |
visit(IndexedObjectUnionOf element) |
IndexedSubClassOfAxiom |
visit(IndexedSubClassOfAxiom axiom) |
protected final KeyEntryHashSet<IndexedClassExpression> indexedClassExpressionLookup
protected final KeyEntryHashSet<IndexedPropertyChain> indexedPropertyChainLookup
protected final KeyEntryHashSet<IndexedAxiom> indexedAxiomLookup
protected int indexedClassCount
protected int indexedIndividualCount
protected int indexedObjectPropertyCount
public IndexObjectConverter getIndexObjectConverter()
public void clear()
public long size()
public boolean isEmpty()
public void subtract(IndexedObjectCache other)
IndexedObjectCache from this
IndexedObjectCacheother - the IndexedObjectCache whose stored object should be
removed from this IndexedObjectCachepublic IndexedClass visit(IndexedClass element)
visit in interface IndexedClassVisitor<IndexedClass>public IndexedIndividual visit(IndexedIndividual element)
visit in interface IndexedIndividualVisitor<IndexedIndividual>public IndexedObjectComplementOf visit(IndexedObjectComplementOf element)
visit in interface IndexedObjectComplementOfVisitor<IndexedObjectComplementOf>public IndexedObjectIntersectionOf visit(IndexedObjectIntersectionOf element)
visit in interface IndexedObjectIntersectionOfVisitor<IndexedObjectIntersectionOf>public IndexedObjectSomeValuesFrom visit(IndexedObjectSomeValuesFrom element)
visit in interface IndexedObjectSomeValuesFromVisitor<IndexedObjectSomeValuesFrom>public IndexedObjectUnionOf visit(IndexedObjectUnionOf element)
visit in interface IndexedObjectUnionOfVisitor<IndexedObjectUnionOf>public IndexedDataHasValue visit(IndexedDataHasValue element)
visit in interface IndexedDataHasValueVisitor<IndexedDataHasValue>public IndexedObjectProperty visit(IndexedObjectProperty element)
visit in interface IndexedObjectPropertyVisitor<IndexedObjectProperty>public IndexedBinaryPropertyChain visit(IndexedBinaryPropertyChain element)
visit in interface IndexedBinaryPropertyChainVisitor<IndexedBinaryPropertyChain>public IndexedSubClassOfAxiom visit(IndexedSubClassOfAxiom axiom)
visit in interface IndexedSubClassOfAxiomVisitor<IndexedSubClassOfAxiom>public IndexedDisjointnessAxiom visit(IndexedDisjointnessAxiom axiom)
visit in interface IndexedDisjointnessAxiomVisitor<IndexedDisjointnessAxiom>Copyright © 2011-2015 Department of Computer Science, University of Oxford. All Rights Reserved.