|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.sesame.config.SailConfig
org.openrdf.sesame.sailimpl.nativerdf.NativeRdfRepositoryConfig
Extension of SailConfig offering specific utility methods for configuring an org.openrdf.sesame.sailimpl.nativerdf.NativeRdfRepository Sail.
| Constructor Summary | |
NativeRdfRepositoryConfig()
Creates a new and unconfigured NativeRdfRepositoryConfig object for an org.openrdf.sesame.sailimpl.nativerdf.NativeRdfRepository Sail. |
|
NativeRdfRepositoryConfig(String dataDir)
Creates a new NativeRdfRepositoryConfig object for an org.openrdf.sesame.sailimpl.nativerdf.NativeRdfRepository Sail that uses the specified directory for storing its data. |
|
NativeRdfRepositoryConfig(String dataDir,
String indexSpec)
Creates a new NativeRdfRepositoryConfig object for an org.openrdf.sesame.sailimpl.nativerdf.NativeRdfRepository Sail that uses the specified directory for storing its data and the specified indexes for searching triples. |
|
| Method Summary | |
String |
getDataDir()
Gets the fully qualified name of the data directory. |
String |
getTripleIndexes()
Gets the triple index specification to be used by the native RDF repository. |
void |
setDataDir(String dataDir)
Sets the data directory for the native RDF repository. |
void |
setTripleIndexes(String indexSpec)
Specifies which triple indexes the native RDF repository should use. |
| Methods inherited from class org.openrdf.sesame.config.SailConfig |
clone, equals, getConfigParameters, getParameter, getSailClass, hashCode, hasParameter, removeParameter, setConfigParameters, setParameter, setParameterKey, setParameterValue, setSailClass |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NativeRdfRepositoryConfig()
setDataDir(java.lang.String)public NativeRdfRepositoryConfig(String dataDir)
dataDir - The data directory.
public NativeRdfRepositoryConfig(String dataDir,
String indexSpec)
dataDir - The data directory.indexSpec - A set of comma/whitespace-separated field sequences,
e.g. "spo, pos". See setTripleIndexes(java.lang.String) for a description
of the string format.| Method Detail |
public void setDataDir(String dataDir)
dataDir - The data directory.public String getDataDir()
public void setTripleIndexes(String indexSpec)
This method allows one to specify which indexes to use. The subject-, predicate- and object fields are represented by the characters 's', 'p' and 'o', respectively. Indexes can be specified by creating 3-letter words from these three characters. Multiple indexes can be specified by separating these words with comma's, spaces and/or tabs. E.g.: the string "spo, pos" specifies two indexes; a subject-predicate-object index and a predicate-object-subject index.
indexSpec - A set of comma/whitespace-separated field sequences,
e.g. "spo, pos".public String getTripleIndexes()
setTripleIndexes(java.lang.String)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||