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
IOException
public CryptDataStore(File dataDir, String filePrefix, boolean forceSync) throws IOException
IOException
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.Copyright © 2018 universAAL Consortium. All rights reserved.