java.lang.Object
org.apache.jena.mem.store.strategies.MinimalStoreStrategy
- All Implemented Interfaces:
StoreStrategy
StoreStrategy that never builds an index but still answers
pattern-match operations - by linearly filtering the triple set. Useful
when the dataset is small or when memory is more precious than match-time
performance.
Used to back IndexingStrategy.MINIMAL. The
user can switch to eager indexing at any time by calling
GraphMemIndexedSet.initializeIndex(); calling
clearIndex reverts to filtering again.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToIndex(Triple triple, int index) Notify the strategy that a triple was added to the underlying triple set at the given index.voidDiscard any auxiliary index data held by the strategy.booleanbooleanbooleancontainsAnyPreObj(Node p, Node o) booleanbooleancontainsSubAnyObj(Node s, Node o) booleancontainsSubPreAny(Node s, Node p) findAnyPreObj(Node p, Node o) findSubAnyObj(Node s, Node o) findSubPreAny(Node s, Node p) voidremoveFromIndex(Triple triple, int index) Notify the strategy that the triple at the given index has been removed from the underlying triple set.streamAnyPreObj(Node p, Node o) streamSubAnyObj(Node s, Node o) streamSubPreAny(Node s, Node p) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jena.mem.store.strategies.StoreStrategy
isIndexInitialized
-
Constructor Details
-
MinimalStoreStrategy
- Parameters:
triples- the canonical triple set to filter against
-
-
Method Details
-
addToIndex
Description copied from interface:StoreStrategyNotify the strategy that a triple was added to the underlying triple set at the given index. Implementations that maintain an index must update it; implementations without an index are free to no-op.- Specified by:
addToIndexin interfaceStoreStrategy- Parameters:
triple- the newly added tripleindex- the stable index it now occupies in the triple set
-
removeFromIndex
Description copied from interface:StoreStrategyNotify the strategy that the triple at the given index has been removed from the underlying triple set. Implementations that maintain an index must remove the triple from it; implementations without an index are free to no-op.- Specified by:
removeFromIndexin interfaceStoreStrategy- Parameters:
triple- the removed tripleindex- the index it occupied immediately before removal
-
clearIndex
public void clearIndex()Description copied from interface:StoreStrategyDiscard any auxiliary index data held by the strategy. Implementations without an index may no-op.- Specified by:
clearIndexin interfaceStoreStrategy
-
containsSubAnyAny
- Specified by:
containsSubAnyAnyin interfaceStoreStrategy
-
containsAnyPreAny
- Specified by:
containsAnyPreAnyin interfaceStoreStrategy
-
containsAnyAnyObj
- Specified by:
containsAnyAnyObjin interfaceStoreStrategy
-
containsSubPreAny
- Specified by:
containsSubPreAnyin interfaceStoreStrategy
-
containsSubAnyObj
- Specified by:
containsSubAnyObjin interfaceStoreStrategy
-
containsAnyPreObj
- Specified by:
containsAnyPreObjin interfaceStoreStrategy
-
streamSubAnyAny
- Specified by:
streamSubAnyAnyin interfaceStoreStrategy
-
streamAnyPreAny
- Specified by:
streamAnyPreAnyin interfaceStoreStrategy
-
streamAnyAnyObj
- Specified by:
streamAnyAnyObjin interfaceStoreStrategy
-
streamSubPreAny
- Specified by:
streamSubPreAnyin interfaceStoreStrategy
-
streamSubAnyObj
- Specified by:
streamSubAnyObjin interfaceStoreStrategy
-
streamAnyPreObj
- Specified by:
streamAnyPreObjin interfaceStoreStrategy
-
findSubAnyAny
- Specified by:
findSubAnyAnyin interfaceStoreStrategy
-
findAnyPreAny
- Specified by:
findAnyPreAnyin interfaceStoreStrategy
-
findAnyAnyObj
- Specified by:
findAnyAnyObjin interfaceStoreStrategy
-
findSubPreAny
- Specified by:
findSubPreAnyin interfaceStoreStrategy
-
findSubAnyObj
- Specified by:
findSubAnyObjin interfaceStoreStrategy
-
findAnyPreObj
- Specified by:
findAnyPreObjin interfaceStoreStrategy
-