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 observableSailDatasetof the current state of thisSailSource.sink(IsolationLevel level) Create aSailSinkthat when when itsSailSource.flush()is called, the changes are applied to this source.Methods inherited from class 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:SailSourceCreate aSailSinkthat when when itsSailSource.flush()is called, the changes are applied to this source.- Parameters:
level- If this level is compatible withIsolationLevels.SERIALIZABLEthen aSailSink.prepare()can throw aSailConflictException.- Returns:
- Newly created
SailSink - Throws:
SailException
-
dataset
Description copied from interface:SailSourceCreate an observableSailDatasetof the current state of thisSailSource. Repeatedly calling with methods withIsolationLevels.SNAPSHOT(or higher) isolation levels will result inSailDatasets that are all derived from the same state of the backingSailSource(if applicable), that is the only difference between the states of theSailDatasetwill be from changes using thisSailSource.sink(IsolationLevel).- Parameters:
level- If this is compatible withIsolationLevels.SNAPSHOT_READthe resultingSailDatasetwill observe a single state of thisSailSource.- Returns:
- an
SailDatasetof the current state - Throws:
SailException
-