org.elasticsearch.common.lab
Class LongsLAB

java.lang.Object
  extended by org.elasticsearch.common.lab.LongsLAB

public class LongsLAB
extends Object


Nested Class Summary
static class LongsLAB.Allocation
          The result of a single allocation.
 
Constructor Summary
LongsLAB(int chunkSize, int maxAlloc)
           
 
Method Summary
 LongsLAB.Allocation allocateLongs(int size)
          Allocate a slice of the given length.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongsLAB

public LongsLAB(int chunkSize,
                int maxAlloc)
Method Detail

allocateLongs

public LongsLAB.Allocation allocateLongs(int size)
Allocate a slice of the given length.

If the size is larger than the maximum size specified for this allocator, returns null.



Copyright © 2009-2012. All Rights Reserved.