Package org.apache.uima.cas.impl
Class ShortHeap
- java.lang.Object
-
- org.apache.uima.cas.impl.CommonAuxHeap
-
- org.apache.uima.cas.impl.ShortHeap
-
final class ShortHeap extends CommonAuxHeap
the v2 CAS short aux heap - used in modeling some binary (de)serialization
-
-
Field Summary
Fields Modifier and Type Field Description (package private) short[]heap-
Fields 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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) intaddShort(short val)(package private) intaddShortArray(short[] val)(package private) intgetCapacity()(package private) shortgetHeapValue(int offset)(package private) voidgrowHeapIfNeeded()(package private) voidinitMemory()(package private) voidinitMemory(int size)protected voidreinit(short[] shortHeap)(package private) voidresetToZeros()(package private) voidsetHeapValue(short val, int pos)short[]toArray()-
Methods inherited from class org.apache.uima.cas.impl.CommonAuxHeap
computeNewArraySize, computeShrunkArraySize, getSize, reserve, reset, reset
-
-
-
-
Method Detail
-
initMemory
void initMemory()
- Specified by:
initMemoryin classCommonAuxHeap
-
initMemory
void initMemory(int size)
- Specified by:
initMemoryin classCommonAuxHeap
-
getCapacity
int getCapacity()
- Specified by:
getCapacityin classCommonAuxHeap
-
growHeapIfNeeded
void growHeapIfNeeded()
- Specified by:
growHeapIfNeededin classCommonAuxHeap
-
resetToZeros
void resetToZeros()
- Specified by:
resetToZerosin classCommonAuxHeap
-
getHeapValue
short getHeapValue(int offset)
-
setHeapValue
void setHeapValue(short val, int pos)
-
addShort
int addShort(short val)
-
addShortArray
int addShortArray(short[] val)
-
reinit
protected void reinit(short[] shortHeap)
-
toArray
public short[] toArray()
-
-