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 BackingSailSource
that 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 void
close()
Closes this resource, relinquishing any underlying resources.void
flush()
Apply all the changes to this branch to the backingSailSource
, if applicable.SailSource
fork()
Creates a new branch of this source.void
prepare()
Check the consistency of this branch and throws aSailConflictException
ifSailSource.flush()
ing this branch would cause the backingSailSource
to 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:SailSource
Creates a new branch of this source. When it'sSailSource.flush()
is called the changes are applied to this backing source.- Specified by:
fork
in interfaceSailSource
- Returns:
- a branched
SailSource
.
-
close
public void close() throws SailException
Description copied from interface:SailClosable
Closes this resource, relinquishing any underlying resources.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceSailClosable
- Throws:
SailException
- if this resource cannot be closed
-
prepare
public void prepare() throws SailException
Description copied from interface:SailSource
Check the consistency of this branch and throws aSailConflictException
ifSailSource.flush()
ing this branch would cause the backingSailSource
to be inconsistent, if applicable. If this is the final backingSailSource
calling this method has no effect.- Specified by:
prepare
in interfaceSailSource
- Throws:
SailException
-
flush
public void flush() throws SailException
Description copied from interface:SailSource
Apply all the changes to this branch to the backingSailSource
, if applicable. If this is the final backingSailSource
calling this method has no effect.- Specified by:
flush
in interfaceSailSource
- Throws:
SailException
-
-