final class BucketAllocator.BucketSizeInfo extends Object
Modifier and Type | Field and Description |
---|---|
private org.apache.hbase.thirdparty.org.apache.commons.collections4.map.LinkedMap |
bucketList |
private org.apache.hbase.thirdparty.org.apache.commons.collections4.map.LinkedMap |
completelyFreeBuckets |
private org.apache.hbase.thirdparty.org.apache.commons.collections4.map.LinkedMap |
freeBuckets |
private int |
sizeIndex |
Constructor and Description |
---|
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.hbase.thirdparty.org.apache.commons.collections4.map.LinkedMap bucketList
private org.apache.hbase.thirdparty.org.apache.commons.collections4.map.LinkedMap freeBuckets
private org.apache.hbase.thirdparty.org.apache.commons.collections4.map.LinkedMap completelyFreeBuckets
private int sizeIndex
BucketSizeInfo(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.