|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.sesame.sailimpl.nativerdf.datastore.DataStore
Class that provides indexed storage and retrieval of RDF values.
| Constructor Summary | |
DataStore(File dataDir,
String filePrefix)
|
|
| Method Summary | |
void |
clear()
Removes all values from the DataStore. |
void |
close()
Closes the DataStore, releasing any file references, etc. |
void |
commitTransaction()
Commits a transaction, applying all updates that have been performed during the transaction. |
byte[] |
getData(int id)
Gets the value for the specified ID. |
byte[] |
getData(int id,
boolean dirtyReads)
Gets the value for the specified ID, optionally searching the non-commited data. |
int |
getID(byte[] queryData)
Gets the ID for the specified value. |
int |
getID(byte[] queryData,
boolean dirtyReads)
Gets the ID for the specified value, optionally search the non-committed data. |
int |
getMaxID()
Returns the maximum ID value. |
static void |
main(String[] args)
|
void |
rollbackTransaction()
Rolls back all updates that have been performed in the current transaction and closes it. |
void |
startTransaction()
Starts a transaction. |
int |
storeData(byte[] data)
Stores the supplied value and returns the ID that has been assigned to it. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DataStore(File dataDir,
String filePrefix)
throws IOException
| Method Detail |
public byte[] getData(int id)
throws IOException
id - A value ID.
IOException - If an I/O error occurred.
public byte[] getData(int id,
boolean dirtyReads)
throws IOException
id - A value ID.dirtyReads - Flag indicating whether the non-commited data should
be searched.
IOException - If an I/O error occurred.
public int getID(byte[] queryData)
throws IOException
queryData - A value.
IOException - If an I/O error occurred.
public int getID(byte[] queryData,
boolean dirtyReads)
throws IOException
queryData - A value.dirtyReads - Flag indicating whether the non-commited data should
be searched.
IOException - If an I/O error occurred.
public int getMaxID()
throws IOException
IOException
public void startTransaction()
throws IOException
IOException - If an I/O error occurred.
public void commitTransaction()
throws IOException
IOException - If an I/O error occurred.
public void rollbackTransaction()
throws IOException
IOException - If an I/O error occurred.
public int storeData(byte[] data)
throws IOException
data - The data to store.
IOException - If an I/O error occurred.startTransaction(),
commitTransaction()
public void clear()
throws IOException
IOException - If an I/O error occurred.startTransaction(),
commitTransaction()
public void close()
throws IOException
IOException - If an I/O error occurred.
public static void main(String[] args)
throws Exception
Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||