org.apache.solr.store.blockcache
Class BlockCache
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_128M
public static final int _128M
- See Also:
- Constant Field Values
_32K
public static final int _32K
- See Also:
- Constant Field Values
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)
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.