com.browseengine.bobo.util
Class BigNestedIntArray.Loader

java.lang.Object
  extended by com.browseengine.bobo.util.BigNestedIntArray.Loader
Direct Known Subclasses:
BigNestedIntArray.BufferedLoader, MultiValueFacetDataCache.AllocOnlyLoader
Enclosing class:
BigNestedIntArray

public abstract static class BigNestedIntArray.Loader
extends Object


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

reuseUsage

public int reuseUsage
Constructor Detail

BigNestedIntArray.Loader

public BigNestedIntArray.Loader()
Method Detail

initialize

public final void initialize(int size,
                             int[][] oldList)
initializes the loading context

Parameters:
size -

finish

public final int[][] finish()
finishes loading


load

public abstract void load()
                   throws Exception
loads data

Throws:
Exception

reserve

protected final void reserve(int id,
                             int size)
reserves storage for the next int array data

Parameters:
id -
size -

store

protected final void store(int[] data,
                           int off,
                           int len)
stores int array data. must call reserve(int,int) first to allocate storage

Parameters:
data -
off -
len -

add

protected void add(int id,
                   int[] data,
                   int off,
                   int len)

allocate

protected void allocate(int id,
                        int len,
                        boolean nonNegativeIntOnly)
allocates storage for future calls of setData.

Parameters:
id -
len -

copyPageTo

protected int[] copyPageTo(int[] dst)


Copyright © 2011. All Rights Reserved.