|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.solr.store.blockcache.BlockDirectoryCache
public class BlockDirectoryCache
Constructor Summary | |
---|---|
BlockDirectoryCache(BlockCache blockCache,
Metrics metrics)
|
Method Summary | |
---|---|
void |
delete(String name)
Remove a file from the cache. |
boolean |
fetch(String name,
long blockId,
int blockOffset,
byte[] b,
int off,
int lengthToReadInBlock)
Fetch the specified cache file content. |
void |
renameCacheFile(String source,
String dest)
Expert: Rename the specified file in the cache. |
long |
size()
Number of entries in the cache. |
void |
update(String name,
long blockId,
int blockOffset,
byte[] buffer,
int offset,
int length)
Update the content of the specified cache file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BlockDirectoryCache(BlockCache blockCache, Metrics metrics)
Method Detail |
---|
public void delete(String name)
Cache
delete
in interface Cache
name
- cache file namepublic void update(String name, long blockId, int blockOffset, byte[] buffer, int offset, int length)
Cache
update
in interface Cache
public boolean fetch(String name, long blockId, int blockOffset, byte[] b, int off, int lengthToReadInBlock)
Cache
fetch
in interface Cache
public long size()
Cache
size
in interface Cache
public void renameCacheFile(String source, String dest)
Cache
renameCacheFile
in interface Cache
source
- original namedest
- final name
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |