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
ASailStore
wrapper that branches the backingSailSource
s to provide concurrentIsolationLevels.SNAPSHOT_READ
isolation and higher.- Author:
- James Leigh
-
-
Constructor Summary
Constructors Constructor Description SnapshotSailStore(SailStore backingStore, ModelFactory modelFactory)
Wraps anSailStore
, tracking changes inModelFactory
instances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes this resource, relinquishing any underlying resources.EvaluationStatistics
getEvaluationStatistics()
Used bySailSourceConnection
to determine query join order.SailSource
getExplicitSailSource()
SailSource
getInferredSailSource()
ValueFactory
getValueFactory()
TheValueFactory
that should be used in association with this.
-
-
-
Constructor Detail
-
SnapshotSailStore
public SnapshotSailStore(SailStore backingStore, ModelFactory modelFactory)
Wraps anSailStore
, tracking changes inModelFactory
instances.- Parameters:
backingStore
-modelFactory
-
-
-
Method Detail
-
close
public void close() throws SailException
Description copied from interface:SailClosable
Closes this resource, relinquishing any underlying resources.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceSailClosable
- Throws:
SailException
- if this resource cannot be closed
-
getValueFactory
public ValueFactory getValueFactory()
Description copied from interface:SailStore
TheValueFactory
that should be used in association with this.- Specified by:
getValueFactory
in interfaceSailStore
- Returns:
- this object's
ValueFactory
-
getEvaluationStatistics
public EvaluationStatistics getEvaluationStatistics()
Description copied from interface:SailStore
Used bySailSourceConnection
to determine query join order.- Specified by:
getEvaluationStatistics
in interfaceSailStore
- Returns:
- a
EvaluationStatistics
that is aware of the data distribution of thisSailStore
.
-
getExplicitSailSource
public SailSource getExplicitSailSource()
- Specified by:
getExplicitSailSource
in interfaceSailStore
- Returns:
SailSource
of only explicit statements
-
getInferredSailSource
public SailSource getInferredSailSource()
- Specified by:
getInferredSailSource
in interfaceSailStore
- Returns:
SailSource
of only inferred statements
-
-