public interface Allocator extends Comparable
Modifier and Type | Method and Description |
---|---|
void |
addAddresses(ArrayList addrs) |
boolean |
addressInRange(int addr) |
int |
alloc(RWStore store,
int size,
IAllocationContext context) |
void |
appendShortStats(StringBuilder str,
RWStore.AllocationStats[] stats) |
boolean |
canImmediatelyFree(int addr,
int size,
IAllocationContext context) |
boolean |
free(int addr,
int size) |
int |
getBlockSize() |
int |
getDiskAddr() |
int |
getIndex() |
long |
getPhysicalAddress(int offset) |
int |
getPhysicalSize(int offset) |
int |
getRawStartAddr() |
long |
getStartAddr() |
String |
getStats(AtomicLong counter) |
boolean |
hasFree() |
boolean |
isAllocated(int offset) |
void |
read(DataInputStream str) |
void |
setDiskAddr(int addr) |
void |
setFreeList(ArrayList list) |
void |
setIndex(int index) |
boolean |
verify(int addr) |
byte[] |
write() |
compareTo
int getBlockSize()
void setIndex(int index)
boolean verify(int addr)
long getStartAddr()
boolean addressInRange(int addr)
boolean free(int addr, int size)
int alloc(RWStore store, int size, IAllocationContext context)
int getDiskAddr()
void setDiskAddr(int addr)
long getPhysicalAddress(int offset)
boolean isAllocated(int offset)
int getPhysicalSize(int offset)
byte[] write()
void read(DataInputStream str)
boolean hasFree()
void setFreeList(ArrayList list)
String getStats(AtomicLong counter)
void addAddresses(ArrayList addrs)
int getRawStartAddr()
int getIndex()
void appendShortStats(StringBuilder str, RWStore.AllocationStats[] stats)
boolean canImmediatelyFree(int addr, int size, IAllocationContext context)
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.