Property | Type | Description | |
---|---|---|---|
@base | int | ||
CachedDocs | IList |
||
CurDocs | int[] | ||
LastDocBase | int | ||
MaxDocsToCache | int | ||
Other | |||
Upto | int |
Method | Description | |
---|---|---|
AcceptsDocsOutOfOrder ( ) : bool | ||
Create ( |
Create a new CachingCollector that wraps the given collector and caches documents and scores up to the specified RAM threshold.
|
|
Create ( |
Create a new CachingCollector that wraps the given collector and caches documents and scores up to the specified max docs threshold.
|
|
Create ( bool acceptDocsOutOfOrder, bool cacheScores, double maxRAMMB ) : |
Creates a CachingCollector which does not wrap another collector. The cached documents and scores can later be {@link #replay(Collector) replayed}.
|
|
Replay ( |
Replays the cached doc IDs (and scores) to the given Collector. If this instance does not cache scores, then Scorer is not set on {@code other.setScorer} as well as scores are not replayed.
|
Method | Description | |
---|---|---|
CachingCollector ( |
||
CachingCollector ( |
||
ReplayInit ( |
Reused by the specialized inner classes.
|
public static Create ( |
||
other | /// the Collector to wrap and delegate calls to. | |
cacheScores | bool | /// whether to cache scores in addition to document IDs. Note that /// this increases the RAM consumed per doc |
maxRAMMB | double | /// the maximum RAM in MB to consume for caching the documents and /// scores. If the collector exceeds the threshold, no documents and /// scores are cached. |
return |
public static Create ( |
||
other | /// the Collector to wrap and delegate calls to. | |
cacheScores | bool | /// whether to cache scores in addition to document IDs. Note that /// this increases the RAM consumed per doc |
maxDocsToCache | int | /// the maximum number of documents for caching the documents and /// possible the scores. If the collector exceeds the threshold, /// no documents and scores are cached. |
return |
public static Create ( bool acceptDocsOutOfOrder, bool cacheScores, double maxRAMMB ) : |
||
acceptDocsOutOfOrder | bool | /// whether documents are allowed to be collected out-of-order |
cacheScores | bool | |
maxRAMMB | double | |
return |
public abstract Replay ( |
||
other | ||
return | void |