public class CardinalityNativeStore
extends org.openrdf.sail.helpers.NotifyingSailBase
Constructor and Description |
---|
CardinalityNativeStore()
Creates a new NativeStore.
|
CardinalityNativeStore(File dataDir) |
CardinalityNativeStore(File dataDir,
String tripleIndexes,
boolean encrypt) |
Modifier and Type | Method and Description |
---|---|
protected double |
cardinality(org.openrdf.model.Resource subj,
org.openrdf.model.URI pred,
org.openrdf.model.Value obj,
org.openrdf.model.Resource context) |
protected info.aduna.iteration.CloseableIteration<? extends org.openrdf.model.Statement,IOException> |
createStatementIterator(org.openrdf.model.Resource subj,
org.openrdf.model.URI pred,
org.openrdf.model.Value obj,
boolean includeInferred,
boolean readTransaction,
org.openrdf.model.Resource... contexts)
Creates a statement iterator based on the supplied pattern.
|
protected org.openrdf.sail.NotifyingSailConnection |
getConnectionInternal() |
protected info.aduna.iteration.CloseableIteration<org.openrdf.model.Resource,IOException> |
getContextIDs(boolean readTransaction) |
protected List<Integer> |
getContextIDs(org.openrdf.model.Resource... contexts) |
boolean |
getForceSync() |
protected org.universAAL.context.sesame.sail.NamespaceStore |
getNamespaceStore() |
protected info.aduna.concurrent.locks.Lock |
getTransactionLock() |
String |
getTripleIndexes() |
protected org.universAAL.context.sesame.sail.TripleStore |
getTripleStore() |
org.openrdf.model.ValueFactory |
getValueFactory() |
protected ValueStore |
getValueStore() |
protected void |
initializeInternal()
Initializes this NativeStore.
|
boolean |
isWritable() |
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, removeSailChangedListener
connectionClosed, debugEnabled, getDataDir, initialize, isInitialized, setDataDir, shutDown, toString
public CardinalityNativeStore()
public CardinalityNativeStore(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)
protected void initializeInternal() throws org.openrdf.sail.SailException
initializeInternal
in class org.openrdf.sail.helpers.SailBase
org.openrdf.sail.SailException
- If this NativeStore could not be initialized using the
parameters that have been set.protected void shutDownInternal() throws org.openrdf.sail.SailException
shutDownInternal
in class org.openrdf.sail.helpers.SailBase
org.openrdf.sail.SailException
public boolean isWritable()
protected org.openrdf.sail.NotifyingSailConnection getConnectionInternal() throws org.openrdf.sail.SailException
getConnectionInternal
in class org.openrdf.sail.helpers.NotifyingSailBase
org.openrdf.sail.SailException
public org.openrdf.model.ValueFactory getValueFactory()
protected org.universAAL.context.sesame.sail.TripleStore getTripleStore()
protected ValueStore getValueStore()
protected org.universAAL.context.sesame.sail.NamespaceStore getNamespaceStore()
protected info.aduna.concurrent.locks.Lock getTransactionLock() throws org.openrdf.sail.SailException
org.openrdf.sail.SailException
protected List<Integer> getContextIDs(org.openrdf.model.Resource... contexts) throws IOException
IOException
protected info.aduna.iteration.CloseableIteration<org.openrdf.model.Resource,IOException> getContextIDs(boolean readTransaction) throws IOException
IOException
protected info.aduna.iteration.CloseableIteration<? extends org.openrdf.model.Statement,IOException> createStatementIterator(org.openrdf.model.Resource subj, org.openrdf.model.URI pred, org.openrdf.model.Value obj, boolean includeInferred, boolean readTransaction, org.openrdf.model.Resource... contexts) throws IOException
subj
- The subject of the pattern, or null to indicate a
wildcard.pred
- The predicate of the pattern, or null to indicate a
wildcard.obj
- The object of the pattern, or null to indicate a
wildcard.contexts
- The context(s) of the pattern. Note that this parameter is a
vararg and as such is optional. If no contexts are supplied
the method operates on the entire repository.IOException
protected double cardinality(org.openrdf.model.Resource subj, org.openrdf.model.URI pred, org.openrdf.model.Value obj, org.openrdf.model.Resource context) throws IOException
IOException
Copyright © 2018 universAAL Consortium. All rights reserved.