public class NativeStore extends AbstractNotifyingSail implements FederatedServiceResolverClient
connectionTimeOut, DEFAULT_CONNECTION_TIMEOUT, DEFAULT_ITERATION_SYNC_THRESHOLD, initializationLock, logger
Constructor and Description |
---|
NativeStore()
Creates a new NativeStore.
|
NativeStore(File dataDir) |
NativeStore(File dataDir,
String tripleIndexes) |
Modifier and Type | Method and Description |
---|---|
protected NotifyingSailConnection |
getConnectionInternal()
Returns a store-specific SailConnection object.
|
EvaluationStrategyFactory |
getEvaluationStrategyFactory() |
FederatedServiceResolver |
getFederatedServiceResolver() |
boolean |
getForceSync() |
protected Lock |
getTransactionLock(IsolationLevel level)
This call will block when
IsolationLevels.NONE is provided when there are active transactions with a
higher isolation and block when a higher isolation is provided when there are active transactions with
IsolationLevels.NONE isolation. |
String |
getTripleIndexes() |
ValueFactory |
getValueFactory()
Gets a ValueFactory object that can be used to create IRI-, blank node-, literal- and statement objects.
|
protected void |
initializeInternal()
Initializes this NativeStore.
|
boolean |
isWritable()
Checks whether this Sail object is writable, i.e.
|
void |
setEvaluationStrategyFactory(EvaluationStrategyFactory factory)
Sets the
EvaluationStrategy to use. |
void |
setFederatedServiceResolver(FederatedServiceResolver resolver)
Overrides the
FederatedServiceResolver used by this instance, but the given resolver is not shutDown when
this instance is. |
void |
setForceSync(boolean forceSync)
Specifiec whether updates should be synced to disk forcefully, must be called before initialization.
|
void |
setNamespaceCacheSize(int namespaceCacheSize) |
void |
setNamespaceIDCacheSize(int namespaceIDCacheSize) |
void |
setTripleIndexes(String tripleIndexes)
Sets the triple indexes for the native store, must be called before initialization.
|
void |
setValueCacheSize(int valueCacheSize) |
void |
setValueIDCacheSize(int valueIDCacheSize) |
protected void |
shutDownInternal()
Do store-specific operations to ensure proper shutdown of the store.
|
addSailChangedListener, getConnection, notifySailChanged, removeSailChangedListener
addSupportedIsolationLevel, connectionClosed, debugEnabled, getDataDir, getDefaultIsolationLevel, getIterationCacheSyncThreshold, getSupportedIsolationLevels, init, initialize, isInitialized, removeSupportedIsolationLevel, setConnectionTimeOut, setDataDir, setDefaultIsolationLevel, setIterationCacheSyncThreshold, setSupportedIsolationLevels, setSupportedIsolationLevels, shutDown, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDataDir, getDefaultIsolationLevel, getSupportedIsolationLevels, init, initialize, setDataDir, shutDown
public NativeStore()
public NativeStore(File dataDir)
public void setTripleIndexes(String tripleIndexes)
tripleIndexes
- An index strings, e.g. spoc,posc.public String getTripleIndexes()
public void setForceSync(boolean forceSync)
public boolean getForceSync()
public void setValueCacheSize(int valueCacheSize)
public void setValueIDCacheSize(int valueIDCacheSize)
public void setNamespaceCacheSize(int namespaceCacheSize)
public void setNamespaceIDCacheSize(int namespaceIDCacheSize)
public EvaluationStrategyFactory getEvaluationStrategyFactory()
EvaluationStrategy
.public void setEvaluationStrategyFactory(EvaluationStrategyFactory factory)
EvaluationStrategy
to use.public FederatedServiceResolver getFederatedServiceResolver()
public void setFederatedServiceResolver(FederatedServiceResolver resolver)
FederatedServiceResolver
used by this instance, but the given resolver is not shutDown when
this instance is.setFederatedServiceResolver
in interface FederatedServiceResolverClient
resolver
- The SERVICE resolver to set.protected void initializeInternal() throws SailException
initializeInternal
in class AbstractSail
SailException
- If this NativeStore could not be initialized using the parameters that have been set.protected void shutDownInternal() throws SailException
AbstractSail
shutDownInternal
in class AbstractSail
SailException
public boolean isWritable()
Sail
isWritable
in interface Sail
protected NotifyingSailConnection getConnectionInternal() throws SailException
AbstractSail
getConnectionInternal
in class AbstractNotifyingSail
SailException
public ValueFactory getValueFactory()
Sail
getValueFactory
in interface Sail
protected Lock getTransactionLock(IsolationLevel level) throws SailException
IsolationLevels.NONE
is provided when there are active transactions with a
higher isolation and block when a higher isolation is provided when there are active transactions with
IsolationLevels.NONE
isolation. Store is either exclusively in IsolationLevels.NONE
isolation
with potentially zero or more transactions, or exclusively in higher isolation mode with potentially zero or more
transactions.level
- indicating desired mode IsolationLevels.NONE
or higherSailException
Copyright © 2015-2019 Eclipse Foundation. All Rights Reserved.