org.apache.lucene.util
Class ByteBlockPool.DirectTrackingAllocator

java.lang.Object
  extended by org.apache.lucene.util.ByteBlockPool.Allocator
      extended by org.apache.lucene.util.ByteBlockPool.DirectTrackingAllocator
Enclosing class:
ByteBlockPool

public static class ByteBlockPool.DirectTrackingAllocator
extends ByteBlockPool.Allocator


Field Summary
 
Fields inherited from class org.apache.lucene.util.ByteBlockPool.Allocator
blockSize
 
Constructor Summary
ByteBlockPool.DirectTrackingAllocator(AtomicLong bytesUsed)
           
ByteBlockPool.DirectTrackingAllocator(int blockSize, AtomicLong bytesUsed)
           
 
Method Summary
 byte[] getByteBlock()
           
 void recycleByteBlocks(byte[][] blocks, int start, int end)
           
 
Methods inherited from class org.apache.lucene.util.ByteBlockPool.Allocator
recycleByteBlocks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteBlockPool.DirectTrackingAllocator

public ByteBlockPool.DirectTrackingAllocator(AtomicLong bytesUsed)

ByteBlockPool.DirectTrackingAllocator

public ByteBlockPool.DirectTrackingAllocator(int blockSize,
                                             AtomicLong bytesUsed)
Method Detail

getByteBlock

public byte[] getByteBlock()
Overrides:
getByteBlock in class ByteBlockPool.Allocator

recycleByteBlocks

public void recycleByteBlocks(byte[][] blocks,
                              int start,
                              int end)
Specified by:
recycleByteBlocks in class ByteBlockPool.Allocator


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