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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
void
close()
getFile()
getIDIterator
(int hash) Gets an iterator that iterates over the IDs with hash codes that match the specified hash code.int
void
storeID
(int hash, int id) Stores ID under the specified hash code in this hash file.void
sync()
Syncs any unstored data to the hash file.void
sync
(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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-