public class CASAFileFreeList extends Object
Copyright: Copyright 2003-2014, Knowledge Science Group, University of Calgary. Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The Knowledge Science Group makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
Modifier and Type | Field and Description |
---|---|
private CASAFile |
file |
static String |
FREE_LIST_ENTRY_NAME
The reserved index name for the free list
|
Modifier | Constructor and Description |
---|---|
protected |
CASAFileFreeList(CASAFile aFile) |
Modifier and Type | Method and Description |
---|---|
protected void |
addBlock(long freeBlock)
Add a block to the free list.
|
protected long |
getBlock()
Remove a block from the free list and returns the file offset to it.
|
Vector |
getFreeBlocks()
Get a list of the file offsets to any free blocks.
|
boolean |
hasBlocks()
simple method to determine if the free list is empty or not
|
public static final String FREE_LIST_ENTRY_NAME
private CASAFile file
protected CASAFileFreeList(CASAFile aFile)
public boolean hasBlocks() throws CASAIOException, IOException
CASAIOException
IOException
protected long getBlock() throws IOException, CASAIOException
IOException
CASAIOException
protected void addBlock(long freeBlock) throws CASAIOException, IOException
CASAIOException
IOException
public Vector getFreeBlocks() throws IOException, CASAIOException
IOException
CASAIOException