public class NativeStore extends NotifyingSailBase 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.
|
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 URI-, blank node-,
literal- and statement objects.
|
protected void |
initializeInternal()
Initializes this NativeStore.
|
boolean |
isWritable()
Checks whether this Sail object is writable, i.e.
|
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, removeSailChangedListeneraddSupportedIsolationLevel, connectionClosed, debugEnabled, getDataDir, getDefaultIsolationLevel, getIterationCacheSyncThreshold, getSupportedIsolationLevels, initialize, isInitialized, removeSupportedIsolationLevel, 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 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 SailBaseSailException - If this NativeStore could not be initialized using the
parameters that have been set.protected void shutDownInternal()
throws SailException
SailBaseshutDownInternal in class SailBaseSailExceptionpublic boolean isWritable()
SailisWritable in interface Sailprotected NotifyingSailConnection getConnectionInternal() throws SailException
SailBasegetConnectionInternal in class NotifyingSailBaseSailExceptionpublic 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 © 2001–2015 Aduna. All rights reserved.