
public class CryptDataStore
extends org.openrdf.sail.nativerdf.datastore.DataStore
| Constructor and Description |
|---|
CryptDataStore(File dataDir,
String filePrefix) |
CryptDataStore(File dataDir,
String filePrefix,
boolean forceSync) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public CryptDataStore(File dataDir, String filePrefix) throws IOException
IOExceptionpublic CryptDataStore(File dataDir, String filePrefix, boolean forceSync) throws IOException
IOExceptionpublic byte[] getData(int id)
throws IOException
getData in class org.openrdf.sail.nativerdf.datastore.DataStoreid - A value ID, should be larger than 0.ExceptionIOExceptionpublic int getID(byte[] queryData)
throws IOException
getID in class org.openrdf.sail.nativerdf.datastore.DataStorequeryData - The value to get the ID for, must not be null.ExceptionIOExceptionpublic int getMaxID()
throws IOException
getMaxID in class org.openrdf.sail.nativerdf.datastore.DataStoreIOException - If an I/O error occurs.public int storeData(byte[] data)
throws IOException
storeData in class org.openrdf.sail.nativerdf.datastore.DataStoredata - The data to store, must not be null.ExceptionIOExceptionpublic void sync()
throws IOException
sync in class org.openrdf.sail.nativerdf.datastore.DataStoreIOException - If an I/O error occurred.public void clear()
throws IOException
clear in class org.openrdf.sail.nativerdf.datastore.DataStoreIOException - If an I/O error occurred.public void close()
throws IOException
close in class org.openrdf.sail.nativerdf.datastore.DataStoreIOException - If an I/O error occurred.Copyright © 2018 universAAL Consortium. All rights reserved.