public class HashFile extends Object implements Closeable
| Modifier and Type | Class and Description |
|---|---|
class |
HashFile.IDIterator |
| Constructor and Description |
|---|
HashFile(File file) |
HashFile(File file,
boolean forceSync) |
HashFile(File file,
boolean forceSync,
int initialSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
close() |
File |
getFile() |
HashFile.IDIterator |
getIDIterator(int hash)
Gets an iterator that iterates over the IDs with hash codes that match the specified hash code.
|
int |
getItemCount() |
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) |
public HashFile(File file) throws IOException
IOExceptionpublic HashFile(File file, boolean forceSync) throws IOException
IOExceptionpublic HashFile(File file, boolean forceSync, int initialSize) throws IOException
IOExceptionpublic File getFile()
public int getItemCount()
public HashFile.IDIterator getIDIterator(int hash) throws IOException
IOExceptionpublic void storeID(int hash,
int id)
throws IOException
IOExceptionpublic void clear()
throws IOException
IOExceptionpublic void sync()
throws IOException
IOExceptionpublic void sync(boolean force)
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2015-2020 Eclipse Foundation. All Rights Reserved.