public class NativeStore extends AbstractNotifyingSail implements FederatedServiceResolverClient
connectionTimeOut, DEFAULT_CONNECTION_TIMEOUT, DEFAULT_ITERATION_SYNC_THRESHOLD, initializationLock| 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 |
setDataDir(File dataDir)
Sets the data directory for the Sail.
|
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)
Specifies 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) |
void |
shutDown()
Shuts down the Sail, giving it the opportunity to synchronize any stale data.
|
protected void |
shutDownInternal()
Do store-specific operations to ensure proper shutdown of the store.
|
addSailChangedListener, getConnection, notifySailChanged, removeSailChangedListeneraddSupportedIsolationLevel, connectionClosed, debugEnabled, getDataDir, getDefaultIsolationLevel, getIterationCacheSyncThreshold, getSupportedIsolationLevels, init, initialize, isInitialized, isTrackResultSize, removeSupportedIsolationLevel, setConnectionTimeOut, setDefaultIsolationLevel, setIterationCacheSyncThreshold, setSupportedIsolationLevels, setSupportedIsolationLevels, setTrackResultSize, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDataDir, getDefaultIsolationLevel, getSupportedIsolationLevels, init, initializepublic NativeStore()
public NativeStore(File dataDir)
public void setDataDir(File dataDir)
Sailinitialized.setDataDir in interface SailsetDataDir in class AbstractSailpublic 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 AbstractSailSailException - If this NativeStore could not be initialized using the parameters that have been set.protected void shutDownInternal()
throws SailException
AbstractSailshutDownInternal in class AbstractSailSailExceptionpublic void shutDown()
throws SailException
SailshutDown in interface SailshutDown in class AbstractSailSailException - If the Sail object encountered an error or unexpected situation internally.public boolean isWritable()
SailisWritable in interface Sailprotected NotifyingSailConnection getConnectionInternal() throws SailException
AbstractSailgetConnectionInternal in class AbstractNotifyingSailSailExceptionpublic ValueFactory getValueFactory()
SailgetValueFactory in interface Sailprotected 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-2022 Eclipse Foundation. All Rights Reserved.