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 booleanexplicit
-
Constructor Summary
Constructors Constructor Description MemorySailSource(boolean explicit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MemorySailStore.MemorySailDatasetdataset(IsolationLevel level)Create an observableSailDatasetof the current state of thisSailSource.SailSinksink(IsolationLevel level)Create aSailSinkthat 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: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
public MemorySailStore.MemorySailDataset dataset(IsolationLevel level) throws SailException
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
-
-