final class BucketAllocator.BucketSizeInfo extends Object
Modifier and Type | Field and Description |
---|---|
private org.apache.commons.collections.map.LinkedMap |
bucketList |
private org.apache.commons.collections.map.LinkedMap |
completelyFreeBuckets |
private org.apache.commons.collections.map.LinkedMap |
freeBuckets |
private int |
sizeIndex |
Constructor and Description |
---|
BucketAllocator.BucketSizeInfo(int sizeIndex) |
Modifier and Type | Method and Description |
---|---|
long |
allocateBlock()
Find a bucket to allocate a block
|
(package private) void |
blockAllocated(BucketAllocator.Bucket b) |
BucketAllocator.Bucket |
findAndRemoveCompletelyFreeBucket() |
void |
freeBlock(BucketAllocator.Bucket b,
long offset) |
void |
instantiateBucket(BucketAllocator.Bucket b) |
private void |
removeBucket(BucketAllocator.Bucket b) |
int |
sizeIndex() |
BucketAllocator.IndexStatistics |
statistics() |
String |
toString() |
private org.apache.commons.collections.map.LinkedMap bucketList
private org.apache.commons.collections.map.LinkedMap freeBuckets
private org.apache.commons.collections.map.LinkedMap completelyFreeBuckets
private int sizeIndex
public void instantiateBucket(BucketAllocator.Bucket b)
public int sizeIndex()
public long allocateBlock()
void blockAllocated(BucketAllocator.Bucket b)
public BucketAllocator.Bucket findAndRemoveCompletelyFreeBucket()
private void removeBucket(BucketAllocator.Bucket b)
public void freeBlock(BucketAllocator.Bucket b, long offset)
public BucketAllocator.IndexStatistics statistics()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.