|
||||||||||
| 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.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 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 SailConnection |
getConnectionInternal()
returns a store-specific SailConnection object. |
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.SailBase |
|---|
addSailChangedListener, connectionClosed, getConnection, getDataDir, notifySailChanged, removeSailChangedListener, setDataDir, shutDown |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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 SailConnection getConnectionInternal()
throws SailException
SailBase
getConnectionInternal in class SailBaseSailExceptionpublic 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<? 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||