java.lang.Object
org.apache.jena.mem.store.roaring.EagerStoreStrategy
- All Implemented Interfaces:
StoreStrategy
Eager store strategy that indexes all triples immediately.
This strategy is used when the indexing strategy is set to EAGER.
It builds the index by adding all triples to the index at once.
-
Constructor Summary
ConstructorsConstructorDescriptionEagerStoreStrategy(TripleSet triples) Default constructor for EagerStoreStrategy.EagerStoreStrategy(TripleSet triples, boolean parallel) Create a new EagerStoreStrategy and initialize the index.EagerStoreStrategy(TripleSet triples, EagerStoreStrategy strategyToCopyBitmapsFrom) Copy constructor for EagerStoreStrategy. -
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
-
EagerStoreStrategy
Create a new EagerStoreStrategy and initialize the index. -
EagerStoreStrategy
Default constructor for EagerStoreStrategy. Initializes the bitmaps for subjects, predicates, and objects. Note: This constructor does not index any triples. -
EagerStoreStrategy
Copy constructor for EagerStoreStrategy. Creates a new EagerStoreStrategy that is a copy of the given strategy but with a new reference to a set of triples. This set should be a copy of the original set to ensure independence of the new store.- Parameters:
triples- the set of triples of the new storestrategyToCopyBitmapsFrom- the strategy to copy bitmaps from
-
-
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
-