Package org.apache.uima.cas.impl
Class ShortHeap
java.lang.Object
org.apache.uima.cas.impl.CommonAuxHeap
org.apache.uima.cas.impl.ShortHeap
Encapsulate 16 bit storage for a CAS.HEAP_CELL_SIZE
-
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
addShort
(short val) (package private) final int
(package private) short
getHeapValue
(int offset) (package private) void
(package private) final void
(package private) final void
initMemory
(int size) protected void
reinit
(short[] shortHeap) (package private) void
(package private) void
setHeapValue
(short val, int pos) Methods inherited from class org.apache.uima.cas.impl.CommonAuxHeap
computeNewArraySize, computeShrunkArraySize, getSize, reserve, reset, reset
-
Field Details
-
heap
short[] heap
-
-
Constructor Details
-
ShortHeap
ShortHeap() -
ShortHeap
ShortHeap(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
short getHeapValue(int offset) -
setHeapValue
void setHeapValue(short val, int pos) -
addShort
int addShort(short val) -
reinit
protected void reinit(short[] shortHeap)
-