|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.browseengine.bobo.util.BigNestedIntArray.Loader
public abstract static class BigNestedIntArray.Loader
| Field Summary | |
|---|---|
int |
reuseUsage
|
| Constructor Summary | |
|---|---|
BigNestedIntArray.Loader()
|
|
| Method Summary | |
|---|---|
protected void |
add(int id,
int[] data,
int off,
int len)
|
protected void |
allocate(int id,
int len,
boolean nonNegativeIntOnly)
allocates storage for future calls of setData. |
protected int[] |
copyPageTo(int[] dst)
|
int[][] |
finish()
finishes loading |
void |
initialize(int size,
int[][] oldList)
initializes the loading context |
abstract void |
load()
loads data |
protected void |
reserve(int id,
int size)
reserves storage for the next int array data |
protected void |
store(int[] data,
int off,
int len)
stores int array data. must call reserve(int,int) first to allocate storage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int reuseUsage
| Constructor Detail |
|---|
public BigNestedIntArray.Loader()
| Method Detail |
|---|
public final void initialize(int size,
int[][] oldList)
size - public final int[][] finish()
public abstract void load()
throws Exception
Exception
protected final void reserve(int id,
int size)
id - size -
protected final void store(int[] data,
int off,
int len)
data - off - len -
protected void add(int id,
int[] data,
int off,
int len)
protected void allocate(int id,
int len,
boolean nonNegativeIntOnly)
id - len - protected int[] copyPageTo(int[] dst)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||