|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openrdf.sail.nativerdf.datastore.DataStore
org.universAAL.context.sesame.sail.crypt.CryptDataStore
public class CryptDataStore
Class that provides indexed storage and retrieval of arbitrary length data.
Constructor Summary | |
---|---|
CryptDataStore(File dataDir,
String filePrefix)
|
|
CryptDataStore(File dataDir,
String filePrefix,
boolean forceSync)
|
Method Summary | |
---|---|
void |
clear()
Removes all values from the DataStore. |
void |
close()
Closes the DataStore, releasing any file references, etc. |
byte[] |
getData(int id)
Gets the value for the specified ID. |
int |
getID(byte[] queryData)
Gets the ID for the specified value. |
int |
getMaxID()
Returns the maximum value-ID that is in use. |
int |
storeData(byte[] data)
Stores the supplied value and returns the ID that has been assigned to it. |
void |
sync()
Synchronizes any recent changes to the data to disk. |
Methods inherited from class org.openrdf.sail.nativerdf.datastore.DataStore |
---|
main |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CryptDataStore(File dataDir, String filePrefix) throws IOException
IOException
public CryptDataStore(File dataDir, String filePrefix, boolean forceSync) throws IOException
IOException
Method Detail |
---|
public byte[] getData(int id) throws IOException
getData
in class org.openrdf.sail.nativerdf.datastore.DataStore
id
- A value ID, should be larger than 0.
Exception
IOException
public int getID(byte[] queryData) throws IOException
getID
in class org.openrdf.sail.nativerdf.datastore.DataStore
queryData
- The value to get the ID for, must not be null.
Exception
IOException
public int getMaxID() throws IOException
getMaxID
in class org.openrdf.sail.nativerdf.datastore.DataStore
IOException
- If an I/O error occurs.public int storeData(byte[] data) throws IOException
storeData
in class org.openrdf.sail.nativerdf.datastore.DataStore
data
- The data to store, must not be null.
Exception
IOException
public void sync() throws IOException
sync
in class org.openrdf.sail.nativerdf.datastore.DataStore
IOException
- If an I/O error occurred.public void clear() throws IOException
clear
in class org.openrdf.sail.nativerdf.datastore.DataStore
IOException
- If an I/O error occurred.public void close() throws IOException
close
in class org.openrdf.sail.nativerdf.datastore.DataStore
IOException
- If an I/O error occurred.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |