public class HashTable
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HashTable.Entry
The Class Entry.
|
| Constructor and Description |
|---|
HashTable(java.nio.MappedByteBuffer buf)
Instantiates a new hash table.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBlockIndexOfFile(java.lang.String name)
Gets the block index of file.
|
static void |
writeNewHashTable(int size,
java.util.ArrayList<java.lang.String> names,
java.nio.MappedByteBuffer writeBuffer)
Write new hash table.
|
public HashTable(java.nio.MappedByteBuffer buf)
throws java.io.IOException
buf - the bufjava.io.IOException - Signals that an I/O exception has occurred.public static void writeNewHashTable(int size,
java.util.ArrayList<java.lang.String> names,
java.nio.MappedByteBuffer writeBuffer)
throws java.io.IOException,
JMpqException
size - the sizenames - the nameswriteBuffer - the write bufferjava.io.IOException - Signals that an I/O exception has occurred.JMpqException - the j mpq exceptionpublic int getBlockIndexOfFile(java.lang.String name)
throws java.io.IOException
name - the namejava.io.IOException - Signals that an I/O exception has occurred.