org.apache.lucene.util
Class IntBlockPool.Allocator

java.lang.Object
  extended by org.apache.lucene.util.IntBlockPool.Allocator
Direct Known Subclasses:
IntBlockPool.DirectAllocator, RecyclingIntBlockAllocator
Enclosing class:
IntBlockPool

public abstract static class IntBlockPool.Allocator
extends Object

Abstract class for allocating and freeing int blocks.


Field Summary
protected  int blockSize
           
 
Constructor Summary
IntBlockPool.Allocator(int blockSize)
           
 
Method Summary
 int[] getIntBlock()
           
abstract  void recycleIntBlocks(int[][] blocks, int start, int end)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

blockSize

protected final int blockSize
Constructor Detail

IntBlockPool.Allocator

public IntBlockPool.Allocator(int blockSize)
Method Detail

recycleIntBlocks

public abstract void recycleIntBlocks(int[][] blocks,
                                      int start,
                                      int end)

getIntBlock

public int[] getIntBlock()


Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.