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
IOException
public HashFile(File file, boolean forceSync) throws IOException
IOException
public HashFile(File file, boolean forceSync, int initialSize) throws IOException
IOException
public File getFile()
public int getItemCount()
public HashFile.IDIterator getIDIterator(int hash) throws IOException
IOException
public void storeID(int hash, int id) throws IOException
IOException
public void clear() throws IOException
IOException
public void sync() throws IOException
IOException
public void sync(boolean force) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.