Interface FieldCache
Namespace:
Assembly: Lucene.Net.NetCore.dll
Syntax
public interface FieldCache
Properties
Name | Description |
---|---|
InfoStream | Gets or sets the InfoStream for this FieldCache. If non-null, FieldCacheImpl will warn whenever entries are created that are not sane according to Lucene.Net.Util.FieldCacheSanityChecker. |
Methods
Name | Description |
---|---|
GetBytes(IndexReader, String) | Checks the internal cache for an appropriate entry, and if none is
found, reads the terms in |
GetBytes(IndexReader, String, ByteParser) | Checks the internal cache for an appropriate entry, and if none is found,
reads the terms in |
GetCacheEntries() | EXPERT: Generates an array of CacheEntry objects representing all items currently in the FieldCache. NOTE: These CacheEntry objects maintain a strong refrence to the Cached Values. Maintaining refrences to a CacheEntry the IndexReader associated with it has garbage collected will prevent the Value itself from being garbage collected when the Cache drops the WeakRefrence.
EXPERIMENTAL API: This API is considered extremely advanced and experimental. It may be removed or altered w/o warning in future releases of Lucene.
|
GetDoubles(IndexReader, String) | Checks the internal cache for an appropriate entry, and if none is
found, reads the terms in |
GetDoubles(IndexReader, String, DoubleParser) | Checks the internal cache for an appropriate entry, and if none is found,
reads the terms in |
GetFloats(IndexReader, String) | Checks the internal cache for an appropriate entry, and if
none is found, reads the terms in |
GetFloats(IndexReader, String, FloatParser) | Checks the internal cache for an appropriate entry, and if
none is found, reads the terms in |
GetInts(IndexReader, String) | Checks the internal cache for an appropriate entry, and if none is
found, reads the terms in |
GetInts(IndexReader, String, IntParser) | Checks the internal cache for an appropriate entry, and if none is found,
reads the terms in |
GetLongs(IndexReader, String) | Checks the internal cache for an appropriate entry, and if none is
found, reads the terms in |
GetLongs(IndexReader, String, LongParser) | Checks the internal cache for an appropriate entry, and if none is found,
reads the terms in |
GetShorts(IndexReader, String) | Checks the internal cache for an appropriate entry, and if none is
found, reads the terms in |
GetShorts(IndexReader, String, ShortParser) | Checks the internal cache for an appropriate entry, and if none is found,
reads the terms in |
GetStringIndex(IndexReader, String) | Checks the internal cache for an appropriate entry, and if none
is found reads the term values in |
GetStrings(IndexReader, String) | Checks the internal cache for an appropriate entry, and if none
is found, reads the term values in |
Purge(IndexReader) | Expert: drops all cache entries associated with this reader. NOTE: this reader must precisely match the reader that the cache entry is keyed on. If you pass a top-level reader, it usually will have no effect as Lucene now caches at the segment reader level. |
PurgeAllCaches() |
EXPERT: Instructs the FieldCache to forcibly expunge all entries
from the underlying caches. This is intended only to be used for
test methods as a way to ensure a known base state of the Cache
(with out needing to rely on GC to free WeakReferences).
EXPERIMENTAL API: This API is considered extremely advanced and experimental. It may be removed or altered w/o warning in future releases of Lucene.
|