|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.dontdrinkandroot.cache.impl.disk.indexed.storage.IndexFile
public class IndexFile
| Field Summary | |
|---|---|
static float |
GOLDEN_RATIO
|
| Constructor Summary | |
|---|---|
IndexFile(File file)
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the underlying random access file. |
void |
delete(IndexData indexData)
Deletes the block of the given metaData. |
void |
delete(int blockNum)
Deletes the given block. |
int |
getNumAllocated()
Gets the number of allocated blocks. |
Collection<IndexData> |
initialize()
|
long |
length()
Returns the length of the underlying random access file. |
IndexData |
write(IndexData indexData)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static float GOLDEN_RATIO
| Constructor Detail |
|---|
public IndexFile(File file)
throws FileNotFoundException
FileNotFoundException| Method Detail |
|---|
public void close()
throws IOException
IOException
public void delete(IndexData indexData)
throws IOException
IOException
public void delete(int blockNum)
throws IOException
IOExceptionpublic int getNumAllocated()
public Collection<IndexData> initialize()
throws IOException
IOException
public long length()
throws IOException
IOException
public IndexData write(IndexData indexData)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||