org.apache.solr.store.blockcache
Class BlockCache

java.lang.Object
  extended by org.apache.solr.store.blockcache.BlockCache

public class BlockCache
extends Object


Field Summary
static int _128M
           
static int _32K
           
 
Constructor Summary
BlockCache(Metrics metrics, boolean directAllocation, long totalMemory)
           
BlockCache(Metrics metrics, boolean directAllocation, long totalMemory, int slabSize)
           
BlockCache(Metrics metrics, boolean directAllocation, long totalMemory, int slabSize, int blockSize)
           
 
Method Summary
 boolean fetch(BlockCacheKey blockCacheKey, byte[] buffer)
           
 boolean fetch(BlockCacheKey blockCacheKey, byte[] buffer, int blockOffset, int off, int length)
           
 int getSize()
           
 boolean store(BlockCacheKey blockCacheKey, int blockOffset, byte[] data, int offset, int length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_128M

public static final int _128M
See Also:
Constant Field Values

_32K

public static final int _32K
See Also:
Constant Field Values
Constructor Detail

BlockCache

public BlockCache(Metrics metrics,
                  boolean directAllocation,
                  long totalMemory)

BlockCache

public BlockCache(Metrics metrics,
                  boolean directAllocation,
                  long totalMemory,
                  int slabSize)

BlockCache

public BlockCache(Metrics metrics,
                  boolean directAllocation,
                  long totalMemory,
                  int slabSize,
                  int blockSize)
Method Detail

store

public boolean store(BlockCacheKey blockCacheKey,
                     int blockOffset,
                     byte[] data,
                     int offset,
                     int length)

fetch

public boolean fetch(BlockCacheKey blockCacheKey,
                     byte[] buffer,
                     int blockOffset,
                     int off,
                     int length)

fetch

public boolean fetch(BlockCacheKey blockCacheKey,
                     byte[] buffer)

getSize

public int getSize()


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