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 long |
fragmentationBytes |
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(int blockSize)
Find a bucket to allocate a block
|
(package private) void |
blockAllocated(BucketAllocator.Bucket b) |
BucketAllocator.Bucket |
findAndRemoveCompletelyFreeBucket() |
void |
freeBlock(BucketAllocator.Bucket b,
long offset,
int length) |
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 volatile long fragmentationBytes
private int sizeIndex
BucketSizeInfo(int sizeIndex)
public void instantiateBucket(BucketAllocator.Bucket b)
public int sizeIndex()
public long allocateBlock(int blockSize)
void blockAllocated(BucketAllocator.Bucket b)
public BucketAllocator.Bucket findAndRemoveCompletelyFreeBucket()
private void removeBucket(BucketAllocator.Bucket b)
public void freeBlock(BucketAllocator.Bucket b, long offset, int length)
public BucketAllocator.IndexStatistics statistics()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.