Package org.eclipse.rdf4j.sail.memory
Class MemorySailStore.MemorySailSource
java.lang.Object
org.eclipse.rdf4j.sail.base.BackingSailSource
org.eclipse.rdf4j.sail.memory.MemorySailStore.MemorySailSource
- All Implemented Interfaces:
AutoCloseable
,SailClosable
,SailSource
- Enclosing class:
MemorySailStore
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondataset
(IsolationLevel level) Create an observableSailDataset
of the current state of thisSailSource
.sink
(IsolationLevel level) Create aSailSink
that when when itsSailSource.flush()
is called, the changes are applied to this source.Methods inherited from class org.eclipse.rdf4j.sail.base.BackingSailSource
close, flush, fork, prepare
-
Field Details
-
explicit
private final boolean explicit
-
-
Constructor Details
-
MemorySailSource
public MemorySailSource(boolean explicit)
-
-
Method Details
-
sink
Description copied from interface:SailSource
Create aSailSink
that when when itsSailSource.flush()
is called, the changes are applied to this source.- Parameters:
level
- If this level is compatible withIsolationLevels.SERIALIZABLE
then aSailSink.prepare()
can throw aSailConflictException
.- Returns:
- Newly created
SailSink
- Throws:
SailException
-
dataset
Description copied from interface:SailSource
Create an observableSailDataset
of the current state of thisSailSource
. Repeatedly calling with methods withIsolationLevels.SNAPSHOT
(or higher) isolation levels will result inSailDataset
s that are all derived from the same state of the backingSailSource
(if applicable), that is the only difference between the states of theSailDataset
will be from changes using thisSailSource.sink(IsolationLevel)
.- Parameters:
level
- If this is compatible withIsolationLevels.SNAPSHOT_READ
the resultingSailDataset
will observe a single state of thisSailSource
.- Returns:
- an
SailDataset
of the current state - Throws:
SailException
-