Class HashFile
java.lang.Object
org.eclipse.rdf4j.sail.nativerdf.datastore.HashFile
- All Implemented Interfaces:
Closeable,AutoCloseable
Class supplying access to a hash file.
- Author:
- Arjohn Kampman
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidclose()getFile()getIDIterator(int hash) Gets an iterator that iterates over the IDs with hash codes that match the specified hash code.intvoidstoreID(int hash, int id) Stores ID under the specified hash code in this hash file.voidsync()Syncs any unstored data to the hash file.voidsync(boolean force)
-
Constructor Details
-
HashFile
- Throws:
IOException
-
HashFile
- Throws:
IOException
-
HashFile
- Throws:
IOException
-
-
Method Details
-
getFile
-
getItemCount
public int getItemCount() -
getIDIterator
Gets an iterator that iterates over the IDs with hash codes that match the specified hash code.- Throws:
IOException
-
storeID
Stores ID under the specified hash code in this hash file.- Throws:
IOException
-
clear
- Throws:
IOException
-
sync
Syncs any unstored data to the hash file.- Throws:
IOException
-
sync
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-