public class RegionSectorTracker<K extends IKey<K>>
extends java.lang.Object
| Constructor and Description |
|---|
RegionSectorTracker(java.util.BitSet usedSectors,
IKeyIdToSectorMap<?,?,K> sectorMap) |
| Modifier and Type | Method and Description |
|---|---|
static <L extends IKey<L>> |
fromFile(java.nio.channels.SeekableByteChannel file,
IKeyIdToSectorMap<?,?,L> sectorMap,
int reservedSectors,
int sectorSize) |
void |
removeKey(K key) |
RegionEntryLocation |
reserveForKey(K key,
int requestedSize)
Returns offset for the given key and requestedSize, and reserves these sectors
|
public RegionSectorTracker(java.util.BitSet usedSectors,
IKeyIdToSectorMap<?,?,K> sectorMap)
public void removeKey(K key) throws java.io.IOException
java.io.IOExceptionpublic RegionEntryLocation reserveForKey(K key, int requestedSize) throws java.io.IOException
java.io.IOExceptionpublic static <L extends IKey<L>> RegionSectorTracker<L> fromFile(java.nio.channels.SeekableByteChannel file, IKeyIdToSectorMap<?,?,L> sectorMap, int reservedSectors, int sectorSize) throws java.io.IOException
java.io.IOException