ByteBlockPool.Allocator (Lucene 3.6.2 API)
Keywords: org.apache.lucene.util.ByteBlockPool.Allocator class

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.lucene.util
Class ByteBlockPool.Allocator

    java.lang.Object
      org.apache.lucene.util.ByteBlockPool.Allocator

Direct Known Subclasses:
  ByteBlockPool.DirectAllocator, ByteBlockPool.DirectTrackingAllocator, RecyclingByteBlockAllocator

Enclosing class:
  ByteBlockPool

    public abstract static class ByteBlockPool.Allocator

extends Object

Abstract class for allocating and freeing byte blocks.

Field Summary
`protected int` | `blockSize`

Constructor Summary
`ByteBlockPool.Allocator(int blockSize)`

Method Summary
`byte[]` | `getByteBlock()`
`abstract void` | `recycleByteBlocks(byte[][] blocks, int start, int end)`
`void` | `recycleByteBlocks(List<byte[]> blocks)`

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

### ByteBlockPool.Allocator

    public ByteBlockPool.Allocator(int blockSize)

Method Detail

### recycleByteBlocks

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

### recycleByteBlocks

    public void recycleByteBlocks(List<byte[]> blocks)

### getByteBlock

    public byte[] getByteBlock()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD