|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.knowledgereefsystems.agsail.AllegroSail
public class AllegroSail
This class implements a Sesame 2.x Sail interface to an AllegroGraph triple store.
The constructor is the only unique implementation in this class.
The methods are described in the Sesame documentation.
| Constructor Summary | |
|---|---|
AllegroSail(AllegroGraph ag)
Create a Sail instance for an AllegroGraph triple store. |
|
AllegroSail(java.lang.String host,
int port,
boolean start,
java.lang.String name,
java.io.File directory,
int lookahead,
int selectLimit,
boolean reindexOnCommit,
boolean syncOnInsert)
Create a Sail instance to an AllegroGaph triple store. |
|
| Method Summary | |
|---|---|
void |
addSailChangedListener(org.openrdf.sail.SailChangedListener listener)
|
AGSInternal |
getAGSInternal()
|
AllegroSailConnection |
getConnection()
Opens a connection on the Sail which can be used to query and update data. |
java.io.File |
getDataDir()
|
org.openrdf.model.ValueFactory |
getValueFactory()
|
void |
initialize()
|
boolean |
isBackgroundIndexing()
|
boolean |
isIndexAllOnCommit()
|
boolean |
isReindexOnCommit()
|
boolean |
isWritable()
|
void |
removeSailChangedListener(org.openrdf.sail.SailChangedListener listener)
|
void |
setBackgroundIndexing(boolean backgroundIndexing)
|
void |
setDataDir(java.io.File dataDir)
|
void |
setIndexAllOnCommit(boolean indexAllOnCommit)
|
void |
setParameter(java.lang.String key,
java.lang.String value)
|
void |
setReindexOnCommit(boolean roc)
|
void |
shutDown()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AllegroSail(java.lang.String host,
int port,
boolean start,
java.lang.String name,
java.io.File directory,
int lookahead,
int selectLimit,
boolean reindexOnCommit,
boolean syncOnInsert)
host - network host serving AllegroGraphport - AllegroGraph portstart - whether to start a new servername - name of the triple storedirectory - parent directory of the triple storelookahead - value for search operations. If less than
1, a default value will be usedselectLimit - the value of the AllegroGraph's select limit
parameter. If less than 1, a default value will be used.reindexOnCommit - when true, re-index the store after each commitsyncOnInsert - when true, synchronize the store after every insert operationpublic AllegroSail(AllegroGraph ag)
ag - an AllegroGraph instance already connected to the server.| Method Detail |
|---|
public AGSInternal getAGSInternal()
public void addSailChangedListener(org.openrdf.sail.SailChangedListener listener)
addSailChangedListener in interface org.openrdf.sail.Sail
public AllegroSailConnection getConnection()
throws org.openrdf.sail.SailException
getConnection in interface org.openrdf.sail.Sailorg.openrdf.sail.SailExceptionpublic java.io.File getDataDir()
getDataDir in interface org.openrdf.sail.Sailpublic org.openrdf.model.ValueFactory getValueFactory()
getValueFactory in interface org.openrdf.sail.Sail
public void initialize()
throws org.openrdf.sail.SailException
initialize in interface org.openrdf.sail.Sailorg.openrdf.sail.SailException
public boolean isWritable()
throws org.openrdf.sail.SailException
isWritable in interface org.openrdf.sail.Sailorg.openrdf.sail.SailExceptionpublic void removeSailChangedListener(org.openrdf.sail.SailChangedListener listener)
removeSailChangedListener in interface org.openrdf.sail.Sailpublic void setDataDir(java.io.File dataDir)
setDataDir in interface org.openrdf.sail.Sail
public void setParameter(java.lang.String key,
java.lang.String value)
public void shutDown()
throws org.openrdf.sail.SailException
shutDown in interface org.openrdf.sail.Sailorg.openrdf.sail.SailExceptionpublic boolean isReindexOnCommit()
public void setReindexOnCommit(boolean roc)
public boolean isIndexAllOnCommit()
public void setIndexAllOnCommit(boolean indexAllOnCommit)
public boolean isBackgroundIndexing()
public void setBackgroundIndexing(boolean backgroundIndexing)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||