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:
java.lang.AutoCloseable
,SailClosable
,SailSource
- Enclosing class:
- MemorySailStore
private final class MemorySailStore.MemorySailSource extends BackingSailSource
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
explicit
-
Constructor Summary
Constructors Constructor Description MemorySailSource(boolean explicit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MemorySailStore.MemorySailDataset
dataset(IsolationLevel level)
Create an observableSailDataset
of the current state of thisSailSource
.SailSink
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
-
-
-
-
Method Detail
-
sink
public SailSink sink(IsolationLevel level) throws SailException
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
public MemorySailStore.MemorySailDataset dataset(IsolationLevel level) throws SailException
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
-
-