Class LazyStoreStrategy

java.lang.Object
org.apache.jena.mem.store.strategies.LazyStoreStrategy
All Implemented Interfaces:
StoreStrategy

public class LazyStoreStrategy extends Object implements StoreStrategy
StoreStrategy that defers index construction until the first pattern lookup. Add/remove are no-ops while the index is absent (the triples are still maintained in the enclosing TripleStore but no subject/predicate/object index is updated). On the first containsMatch/streamMatch/findMatch call, the supplied callback is invoked to build (and install) an IndexingStrategy.EAGER implementation; the lookup is then forwarded to it.

Used to back both IndexingStrategy.LAZY and IndexingStrategy.LAZY_PARALLEL; the sequential / parallel choice is encoded in the supplied callback.