|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.uima.cas.impl.Heap
public final class Heap
A heap for CAS.
This class is agnostic about what you store on the heap. It only copies values from integer arrays.
| Field Summary | |
|---|---|
static int |
DEFAULT_SIZE
Default size of the heap. |
static int |
MIN_SIZE
Minimum size of the heap. |
| Constructor Summary | |
|---|---|
Heap()
Default constructor. |
|
Heap(int initialSize)
Constructor lets you set initial heap size. |
|
| Method Summary | |
|---|---|
int |
add(int[] fs)
Add a structure to the heap. |
int |
add(int len,
int val)
Reserve space for len items on the heap and set the first
item to val. |
int |
getNextId()
|
void |
grow(int len)
|
void |
reset()
Reset the temporary heap. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MIN_SIZE
1000.
public static final int DEFAULT_SIZE
500000(2 MB).
| Constructor Detail |
|---|
public Heap()
public Heap(int initialSize)
initialSize - The initial heap size. If this is smaller than the
MIN_SIZE, the default will be used
instead.| Method Detail |
|---|
public void reset()
public int add(int[] fs)
fs - The input structure.
public int add(int len,
int val)
len items on the heap and set the first
item to val. The other items are set to 0.
len - The length of the new structure.val - The value of the first cell in the new structure.
public int getNextId()
public void grow(int len)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||