public static final class BucketAllocator.Bucket extends Object
Constructor and Description |
---|
BucketAllocator.Bucket(long offset) |
Modifier and Type | Method and Description |
---|---|
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
BucketAllocatorException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.