Package org.eclipse.rdf4j.sail.base
Class BackingSailSource
java.lang.Object
org.eclipse.rdf4j.sail.base.BackingSailSource
- All Implemented Interfaces:
AutoCloseable,SailClosable,SailSource
A Backing
SailSource that does not respond to close() prepare() or flush(). These
methods have no effect.- Author:
- James Leigh
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes this resource, relinquishing any underlying resources.voidflush()Apply all the changes to this branch to the backingSailSource, if applicable.fork()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, waitMethods inherited from interface org.eclipse.rdf4j.sail.base.SailSource
dataset, sink
-
Constructor Details
-
BackingSailSource
public BackingSailSource()
-
-
Method Details
-
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
Description 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
Description 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
Description 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
-