public class NativeStore extends org.eclipse.rdf4j.sail.helpers.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() |
EvaluationStrategyFactory |
getEvaluationStrategyFactory() |
FederatedServiceResolver |
getFederatedServiceResolver() |
boolean |
getForceSync() |
protected org.eclipse.rdf4j.common.concurrent.locks.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() |
protected void |
initializeInternal()
Initializes this NativeStore.
|
boolean |
isWritable() |
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() |
addSailChangedListener, getConnection, notifySailChanged, removeSailChangedListeneraddSupportedIsolationLevel, connectionClosed, debugEnabled, getDataDir, getDefaultIsolationLevel, getIterationCacheSyncThreshold, getSupportedIsolationLevels, initialize, isInitialized, removeSupportedIsolationLevel, setConnectionTimeOut, setDataDir, setDefaultIsolationLevel, setIterationCacheSyncThreshold, setSupportedIsolationLevels, setSupportedIsolationLevels, shutDown, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDataDir, getDefaultIsolationLevel, getSupportedIsolationLevels, initialize, setDataDir, shutDownpublic 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 FederatedServiceResolverClientresolver - The SERVICE resolver to set.protected void initializeInternal()
throws SailException
initializeInternal in class org.eclipse.rdf4j.sail.helpers.AbstractSailSailException - If this NativeStore could not be initialized using the parameters that have been set.protected void shutDownInternal()
throws SailException
shutDownInternal in class org.eclipse.rdf4j.sail.helpers.AbstractSailSailExceptionpublic boolean isWritable()
isWritable in interface Sailprotected NotifyingSailConnection getConnectionInternal() throws SailException
getConnectionInternal in class org.eclipse.rdf4j.sail.helpers.AbstractNotifyingSailSailExceptionpublic ValueFactory getValueFactory()
getValueFactory in interface Sailprotected org.eclipse.rdf4j.common.concurrent.locks.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 higherSailExceptionCopyright © 2015-2018 Eclipse Foundation. All Rights Reserved.