Class PowerOfTwoFileAllocator.Region
java.lang.Object
org.terracotta.offheapstore.disk.paging.PowerOfTwoFileAllocator.Region
- Enclosing class:
PowerOfTwoFileAllocator
Class that represents the regions held within this set.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate longprivate PowerOfTwoFileAllocator.Regionprivate intprivate PowerOfTwoFileAllocator.Regionprivate long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) long(package private) longprivate Stringdump()longend()booleanisNull()(package private) voidvoidMerge the supplied region into this region (if they are adjoining).intOrder this region relative to another.(package private) voidlongsize()Returns the size of this range (the number of values within its bounds).longstart()Returns the start of this range (inclusive).private voidtoString()private void
-
Field Details
-
left
-
right
-
level
private int level -
start
private long start -
end
private long end -
availableBitSet
private long availableBitSet
-
-
Constructor Details
-
Region
Region() -
Region
Region(long value) -
Region
Region(long start, long end) Creates a region containing the given range of values (inclusive). -
Region
Region(PowerOfTwoFileAllocator.Region r) Create a shallow copy of a region.The new Region has NULL left and right children.
-
-
Method Details
-
available
long available() -
updateAvailable
private void updateAvailable() -
availableHere
long availableHere() -
left
-
right
-
toString
-
dump
-
size
public long size()Returns the size of this range (the number of values within its bounds). -
isNull
public boolean isNull() -
remove
-
merge
Merge the supplied region into this region (if they are adjoining).- Parameters:
r- region to merge
-
orderRelativeTo
Order this region relative to another. -
swap
-
start
public long start()Returns the start of this range (inclusive). -
end
public long end()
-