Package org.eclipse.rdf4j.sail.base
Class SnapshotSailStore
- java.lang.Object
-
- org.eclipse.rdf4j.sail.base.SnapshotSailStore
-
- All Implemented Interfaces:
AutoCloseable,SailClosable,SailStore
public class SnapshotSailStore extends Object implements SailStore
ASailStorewrapper that branches the backingSailSources to provide concurrentIsolationLevels.SNAPSHOT_READisolation and higher.- Author:
- James Leigh
-
-
Constructor Summary
Constructors Constructor Description SnapshotSailStore(SailStore backingStore, ModelFactory modelFactory)Wraps anSailStore, tracking changes inModelFactoryinstances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes this resource, relinquishing any underlying resources.EvaluationStatisticsgetEvaluationStatistics()Used bySailSourceConnectionto determine query join order.SailSourcegetExplicitSailSource()SailSourcegetInferredSailSource()ValueFactorygetValueFactory()TheValueFactorythat should be used in association with this.
-
-
-
Constructor Detail
-
SnapshotSailStore
public SnapshotSailStore(SailStore backingStore, ModelFactory modelFactory)
Wraps anSailStore, tracking changes inModelFactoryinstances.- Parameters:
backingStore-modelFactory-
-
-
Method Detail
-
close
public void close() throws SailExceptionDescription copied from interface:SailClosableCloses this resource, relinquishing any underlying resources.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSailClosable- Throws:
SailException- if this resource cannot be closed
-
getValueFactory
public ValueFactory getValueFactory()
Description copied from interface:SailStoreTheValueFactorythat should be used in association with this.- Specified by:
getValueFactoryin interfaceSailStore- Returns:
- this object's
ValueFactory
-
getEvaluationStatistics
public EvaluationStatistics getEvaluationStatistics()
Description copied from interface:SailStoreUsed bySailSourceConnectionto determine query join order.- Specified by:
getEvaluationStatisticsin interfaceSailStore- Returns:
- a
EvaluationStatisticsthat is aware of the data distribution of thisSailStore.
-
getExplicitSailSource
public SailSource getExplicitSailSource()
- Specified by:
getExplicitSailSourcein interfaceSailStore- Returns:
SailSourceof only explicit statements
-
getInferredSailSource
public SailSource getInferredSailSource()
- Specified by:
getInferredSailSourcein interfaceSailStore- Returns:
SailSourceof only inferred statements
-
-