Class BucketAllocator.Bucket
java.lang.Object
org.apache.hadoop.hbase.io.hfile.bucket.BucketAllocator.Bucket
- Enclosing class:
- BucketAllocator
-
Field Summary
Modifier and TypeFieldDescriptionprivate long
private int
private int[]
private int
private int
private int
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addAllocation
(long offset) long
allocate()
Allocate a block in this bucket, return the offset representing the position in physical spaceprivate void
free
(long offset) int
private boolean
freeListContains
(int blockNo) long
int
int
int
boolean
boolean
boolean
(package private) void
reconfigure
(int sizeIndex, int[] bucketSizes, long bucketCapacity) int
int
-
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
-