Package org.eclipse.rdf4j.sail.base
Class BackingSailSource
- java.lang.Object
-
- org.eclipse.rdf4j.sail.base.BackingSailSource
-
- All Implemented Interfaces:
AutoCloseable,SailClosable,SailSource
public abstract class BackingSailSource extends Object implements SailSource
A BackingSailSourcethat does not respond toclose()prepare()orflush(). These methods have no effect.- Author:
- James Leigh
-
-
Constructor Summary
Constructors Constructor Description BackingSailSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes this resource, relinquishing any underlying resources.voidflush()Apply all the changes to this branch to the backingSailSource, if applicable.SailSourcefork()Creates a new branch of this source.voidprepare()Check the consistency of this branch and throws aSailConflictExceptionifSailSource.flush()ing this branch would cause the backingSailSourceto be inconsistent, if applicable.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.rdf4j.sail.base.SailSource
dataset, sink
-
-
-
-
Method Detail
-
fork
public SailSource fork()
Description copied from interface:SailSourceCreates a new branch of this source. When it'sSailSource.flush()is called the changes are applied to this backing source.- Specified by:
forkin interfaceSailSource- Returns:
- a branched
SailSource.
-
close
public void close() throws SailExceptionDescription copied from interface:SailClosableCloses this resource, relinquishing any underlying resources.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSailClosable- Throws:
SailException- if this resource cannot be closed
-
prepare
public void prepare() throws SailExceptionDescription copied from interface:SailSourceCheck the consistency of this branch and throws aSailConflictExceptionifSailSource.flush()ing this branch would cause the backingSailSourceto be inconsistent, if applicable. If this is the final backingSailSourcecalling this method has no effect.- Specified by:
preparein interfaceSailSource- Throws:
SailException
-
flush
public void flush() throws SailExceptionDescription copied from interface:SailSourceApply all the changes to this branch to the backingSailSource, if applicable. If this is the final backingSailSourcecalling this method has no effect.- Specified by:
flushin interfaceSailSource- Throws:
SailException
-
-