Package org.apache.uima.cas.impl
Class ByteHeap
java.lang.Object
org.apache.uima.cas.impl.CommonAuxHeap
org.apache.uima.cas.impl.ByteHeap
Encapsulate 8 bit storage for the CAS.
-
Field Summary
FieldsFields inherited from class org.apache.uima.cas.impl.CommonAuxHeap
DEFAULT_HEAP_BASE_SIZE, DEFAULT_HEAP_MULT_LIMIT, FIRST_CELL_REF, GROWTH_FACTOR, heapBaseSize, heapMultLimit, heapPos, MIN_HEAP_BASE_SIZE, NULL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) int
addByte
(byte val) (package private) final int
(package private) byte
getHeapValue
(int offset) (package private) void
(package private) final void
(package private) final void
initMemory
(int size) protected void
reinit
(byte[] byteHeap) (package private) void
(package private) void
setHeapValue
(byte val, int pos) Methods inherited from class org.apache.uima.cas.impl.CommonAuxHeap
computeNewArraySize, computeShrunkArraySize, getSize, reserve, reset, reset
-
Field Details
-
heap
byte[] heap
-
-
Constructor Details
-
ByteHeap
ByteHeap() -
ByteHeap
ByteHeap(int heapBaseSize, int heapMultLimit)
-
-
Method Details
-
initMemory
final void initMemory()- Specified by:
initMemory
in classCommonAuxHeap
-
initMemory
final void initMemory(int size) - Specified by:
initMemory
in classCommonAuxHeap
-
getCapacity
final int getCapacity()- Specified by:
getCapacity
in classCommonAuxHeap
-
growHeapIfNeeded
void growHeapIfNeeded()- Specified by:
growHeapIfNeeded
in classCommonAuxHeap
-
resetToZeros
void resetToZeros()- Specified by:
resetToZeros
in classCommonAuxHeap
-
getHeapValue
byte getHeapValue(int offset) -
setHeapValue
void setHeapValue(byte val, int pos) -
addByte
int addByte(byte val) -
reinit
protected void reinit(byte[] byteHeap)
-