public static final class BucketAllocator.Bucket extends Object
| 构造器和说明 |
|---|
Bucket(long offset) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addAllocation(long offset) |
long |
allocate()
Allocate a block in this bucket, return the offset representing the
position in physical space
|
int |
freeCount() |
long |
getBaseOffset() |
int |
getFreeBytes() |
int |
getItemAllocationSize() |
int |
getUsedBytes() |
boolean |
hasFreeSpace() |
boolean |
isCompletelyFree() |
boolean |
isUninstantiated() |
int |
sizeIndex() |
int |
usedCount() |
public boolean isUninstantiated()
public int sizeIndex()
public int getItemAllocationSize()
public boolean hasFreeSpace()
public boolean isCompletelyFree()
public int freeCount()
public int usedCount()
public int getFreeBytes()
public int getUsedBytes()
public long getBaseOffset()
public long allocate()
public void addAllocation(long offset)
throws BucketAllocatorException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.