|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.sail.helpers.SailBase
org.openrdf.sail.helpers.NotifyingSailBase
org.openrdf.sail.nativerdf.NativeStore
public class NativeStore
A SAIL implementation using B-Tree indexing on disk for storing and querying its data.
| Field Summary |
|---|
| Fields inherited from class org.openrdf.sail.helpers.SailBase |
|---|
connectionTimeOut, DEFAULT_CONNECTION_TIMEOUT, logger |
| Constructor Summary | |
|---|---|
NativeStore()
Creates a new NativeStore. |
|
NativeStore(File dataDir)
|
|
NativeStore(File dataDir,
String tripleIndexes)
|
|
| Method Summary | |
|---|---|
protected double |
cardinality(Resource subj,
URI pred,
Value obj,
Resource context)
|
protected CloseableIteration<? extends Statement,IOException> |
createStatementIterator(Resource subj,
URI pred,
Value obj,
boolean includeInferred,
boolean readTransaction,
Resource... contexts)
Creates a statement iterator based on the supplied pattern. |
protected NotifyingSailConnection |
getConnectionInternal()
returns a store-specific SailConnection object. |
protected CloseableIteration<Resource,IOException> |
getContextIDs(boolean readTransaction)
|
protected List<Integer> |
getContextIDs(Resource... contexts)
|
boolean |
getForceSync()
|
protected org.openrdf.sail.nativerdf.NamespaceStore |
getNamespaceStore()
|
protected Lock |
getReadLock()
|
protected Lock |
getTransactionLock()
|
String |
getTripleIndexes()
|
protected org.openrdf.sail.nativerdf.TripleStore |
getTripleStore()
|
ValueFactory |
getValueFactory()
Gets a ValueFactory object that can be used to create URI-, blank node-, literal- and statement objects. |
protected ValueStore |
getValueStore()
|
protected Lock |
getWriteLock()
|
void |
initialize()
Initializes this NativeStore. |
protected boolean |
isInitialized()
Checks whether the Sail has been initialized. |
boolean |
isWritable()
Checks whether this Sail object is writable, i.e. |
void |
setForceSync(boolean forceSync)
Specifiec whether updates should be synced to disk forcefully, must be called before initialization. |
void |
setTripleIndexes(String tripleIndexes)
Sets the triple indexes for the native store, must be called before initialization. |
protected void |
shutDownInternal()
Do store-specific operations to ensure proper shutdown of the store. |
| Methods inherited from class org.openrdf.sail.helpers.NotifyingSailBase |
|---|
addSailChangedListener, getConnection, notifySailChanged, removeSailChangedListener |
| Methods inherited from class org.openrdf.sail.helpers.SailBase |
|---|
connectionClosed, debugEnabled, getDataDir, setDataDir, shutDown |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.openrdf.sail.Sail |
|---|
getDataDir, setDataDir, shutDown |
| Constructor Detail |
|---|
public NativeStore()
public NativeStore(File dataDir)
public NativeStore(File dataDir,
String tripleIndexes)
| Method Detail |
|---|
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 initialize()
throws SailException
SailException - If this RdfRepository could not be initialized using the
parameters that have been set.protected final boolean isInitialized()
protected void shutDownInternal()
throws SailException
SailBase
shutDownInternal in class SailBaseSailExceptionpublic boolean isWritable()
Sail
protected NotifyingSailConnection getConnectionInternal()
throws SailException
SailBase
getConnectionInternal in class NotifyingSailBaseSailExceptionpublic ValueFactory getValueFactory()
Sail
protected org.openrdf.sail.nativerdf.TripleStore getTripleStore()
protected ValueStore getValueStore()
protected org.openrdf.sail.nativerdf.NamespaceStore getNamespaceStore()
protected Lock getReadLock()
throws SailException
SailException
protected Lock getWriteLock()
throws SailException
SailException
protected Lock getTransactionLock()
throws SailException
SailException
protected List<Integer> getContextIDs(Resource... contexts)
throws IOException
IOException
protected CloseableIteration<Resource,IOException> getContextIDs(boolean readTransaction)
throws IOException
IOException
protected CloseableIteration<? extends Statement,IOException> createStatementIterator(Resource subj,
URI pred,
Value obj,
boolean includeInferred,
boolean readTransaction,
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.context - The context of the pattern, or null to indicate a wildcard
IOException
protected double cardinality(Resource subj,
URI pred,
Value obj,
Resource context)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||