public class SailWrapper extends Object implements StackableSail, FederatedServiceResolverClient
Constructor and Description |
---|
SailWrapper()
Creates a new SailWrapper.
|
SailWrapper(Sail baseSail)
Creates a new SailWrapper that wraps the supplied Sail.
|
Modifier and Type | Method and Description |
---|---|
Sail |
getBaseSail()
Gets the base Sail that this Sail works on top of.
|
SailConnection |
getConnection()
Opens a connection on the Sail which can be used to query and update data.
|
File |
getDataDir()
Gets the Sail's data directory.
|
IsolationLevel |
getDefaultIsolationLevel()
Retrieves the default
IsolationLevel level on which transactions in this Sail operate. |
List<IsolationLevel> |
getSupportedIsolationLevels()
Retrieve the
IsolationLevel s supported by this SAIL, ordered by increasing complexity. |
ValueFactory |
getValueFactory()
Gets a ValueFactory object that can be used to create IRI-, blank node-, literal- and statement objects.
|
void |
initialize()
Initializes the Sail.
|
boolean |
isWritable()
Checks whether this Sail object is writable, i.e.
|
void |
setBaseSail(Sail baseSail)
Sets the base Sail that this Sail will work on top of.
|
void |
setDataDir(File dataDir)
Sets the data directory for the Sail.
|
void |
setFederatedServiceResolver(FederatedServiceResolver resolver)
Sets the
FederatedServiceResolver to use for this client. |
void |
shutDown()
Shuts down the Sail, giving it the opportunity to synchronize any stale data.
|
protected void |
verifyBaseSailSet() |
public SailWrapper()
setBaseSail(org.eclipse.rdf4j.sail.Sail)
.public SailWrapper(Sail baseSail)
public void setBaseSail(Sail baseSail)
StackableSail
setBaseSail
in interface StackableSail
public Sail getBaseSail()
StackableSail
getBaseSail
in interface StackableSail
protected void verifyBaseSailSet()
public void setFederatedServiceResolver(FederatedServiceResolver resolver)
FederatedServiceResolverClient
FederatedServiceResolver
to use for this client.setFederatedServiceResolver
in interface FederatedServiceResolverClient
resolver
- The resolver to use.public File getDataDir()
Sail
getDataDir
in interface Sail
Sail.setDataDir(File)
public void setDataDir(File dataDir)
Sail
initialized
.setDataDir
in interface Sail
public void initialize() throws SailException
Sail
initialize
in interface Sail
SailException
- If the Sail could not be initialized.public void shutDown() throws SailException
Sail
shutDown
in interface Sail
SailException
- If the Sail object encountered an error or unexpected situation internally.public boolean isWritable() throws SailException
Sail
isWritable
in interface Sail
SailException
public SailConnection getConnection() throws SailException
Sail
getConnection
in interface Sail
SailException
- If no transaction could be started, for example because the Sail is not writable.public ValueFactory getValueFactory()
Sail
getValueFactory
in interface Sail
public List<IsolationLevel> getSupportedIsolationLevels()
Sail
IsolationLevel
s supported by this SAIL, ordered by increasing complexity.getSupportedIsolationLevels
in interface Sail
IsolationLevel
.public IsolationLevel getDefaultIsolationLevel()
Sail
IsolationLevel
level on which transactions in this Sail operate.getDefaultIsolationLevel
in interface Sail
IsolationLevel
that will be used with SailConnection.begin()
, for SAIL connections
returned by Sail.getConnection()
.Copyright © 2015-2019 Eclipse Foundation. All Rights Reserved.