public class LuceneSpinSail extends NotifyingSailWrapper
SearchIndex
feature inside SpinSail
and manages the index during statements
adding/removing. Technically this sail binds SearchIndex
using .addQueryContextInitializer and wraps
connection from baseSail by wrapped which modify SearchIndex.Constructor and Description |
---|
LuceneSpinSail() |
LuceneSpinSail(SpinSail baseSail) |
Modifier and Type | Method and Description |
---|---|
void |
addAbsentParameters(Properties parameters)
Add only absent parameters from argument.
|
NotifyingSailConnection |
getConnection()
Opens a connection on the Sail which can be used to query and update data.
|
Properties |
getParameters() |
void |
initialize()
Initializes the Sail.
|
Statement |
mapStatement(Statement statement)
|
void |
setParameters(Properties parameters)
Replaces existing parameters.
|
addSailChangedListener, getBaseSail, removeSailChangedListener, setBaseSail
getDataDir, getDefaultIsolationLevel, getSupportedIsolationLevels, getValueFactory, isWritable, setDataDir, setFederatedServiceResolver, shutDown, verifyBaseSailSet
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDataDir, getDefaultIsolationLevel, getSupportedIsolationLevels, getValueFactory, init, isWritable, setDataDir, shutDown
public LuceneSpinSail()
public LuceneSpinSail(SpinSail baseSail)
public Properties getParameters()
public void setParameters(Properties parameters)
By default parameters field is instantiated in constructor. Using this method replaces the existing field. If you
wish only add missing parameters use addAbsentParameters(java.util.Properties)
.
parameters
- public void addAbsentParameters(Properties parameters)
parameters
- Hashtable.putIfAbsent(java.lang.Object, java.lang.Object)
public void initialize() throws SailException
Sail
initialize
in interface Sail
initialize
in class SailWrapper
SailException
public NotifyingSailConnection getConnection() throws SailException
Sail
getConnection
in interface NotifyingSail
getConnection
in interface Sail
getConnection
in class NotifyingSailWrapper
SailException
- If no transaction could be started, for example because the Sail is not writable.Copyright © 2015-2019 Eclipse Foundation. All Rights Reserved.