Class BucketAllocator.Bucket
java.lang.Object
org.apache.hadoop.hbase.io.hfile.bucket.BucketAllocator.Bucket
- Enclosing class:
- BucketAllocator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate intprivate int[]private intprivate intprivate intprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddAllocation(long offset) longallocate()Allocate a block in this bucket, return the offset representing the position in physical spaceprivate voidfree(long offset) intprivate booleanfreeListContains(int blockNo) longintintintbooleanbooleanboolean(package private) voidreconfigure(int sizeIndex, int[] bucketSizes, long bucketCapacity) intint
-
Field Details
-
baseOffset
-
itemAllocationSize
-
sizeIndex
-
itemCount
-
freeList
-
freeCount
-
usedCount
-
-
Constructor Details
-
Bucket
-
-
Method Details
-
reconfigure
-
isUninstantiated
-
sizeIndex
-
getItemAllocationSize
-
hasFreeSpace
-
isCompletelyFree
-
freeCount
-
usedCount
-
getFreeBytes
-
getUsedBytes
-
getBaseOffset
-
allocate
Allocate a block in this bucket, return the offset representing the position in physical space- Returns:
- the offset in the IOEngine
-
addAllocation
- Throws:
BucketAllocatorException
-
free
-
freeListContains
-