Class Prefetcher
- java.lang.Object
-
- org.apache.jackrabbit.oak.index.indexer.document.tree.Prefetcher
-
public class Prefetcher extends Object
The prefetcher, in a separate threads, reads ahead of indexing, such that the nodestore cache and datastore cache is filled. There are 3 threads (in addition to the threads that read from the datastore): - TRACK_INDEXING - tries to be at the same position as the indexing - DATASTORE_PREFETCH - reads ahead about 1 GB, such that the datastore cache is filled - NODESTORE_CACHE_FILLER - reads ahead about 32'000 entries, such that the node store cache is filled
-
-
Constructor Summary
Constructors Constructor Description Prefetcher(TreeStore prefetchStore, TreeStore indexStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setBlobReadAheadSize(long blobReadAheadSize)
void
setBlobSuffix(String blobSuffix)
void
setNodeReadAheadCount(long nodeReadAheadCount)
boolean
shutdown()
void
sleep(String status)
void
start()
-
-
-
Method Detail
-
setBlobSuffix
public void setBlobSuffix(String blobSuffix)
-
setBlobReadAheadSize
public void setBlobReadAheadSize(long blobReadAheadSize)
-
setNodeReadAheadCount
public void setNodeReadAheadCount(long nodeReadAheadCount)
-
shutdown
public boolean shutdown()
-
start
public void start()
-
sleep
public void sleep(String status) throws InterruptedException
- Throws:
InterruptedException
-
-