The FieldCache type exposes the following members.
Methods
Name | Description | |
---|---|---|
GetAuto | Obsolete. Checks the internal cache for an appropriate entry, and if
none is found reads CopyC# field CopyC# AUTO | |
GetBytes(IndexReader, String) | Checks the internal cache for an appropriate entry, and if none is
found, reads the terms in CopyC# field CopyC# reader.maxDoc() | |
GetBytes(IndexReader, String, ByteParser) | Checks the internal cache for an appropriate entry, and if none is found,
reads the terms in CopyC# field CopyC# reader.maxDoc() | |
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.
| |
GetCustom | Obsolete. Checks the internal cache for an appropriate entry, and if none
is found reads the terms out of CopyC# field CopyC# reader CopyC# field CopyC# comparator CopyC# equals() | |
GetDoubles(IndexReader, String) | Checks the internal cache for an appropriate entry, and if none is
found, reads the terms in CopyC# field CopyC# reader.maxDoc() | |
GetDoubles(IndexReader, String, DoubleParser) | Checks the internal cache for an appropriate entry, and if none is found,
reads the terms in CopyC# field CopyC# reader.maxDoc() | |
GetFloats(IndexReader, String) | Checks the internal cache for an appropriate entry, and if
none is found, reads the terms in CopyC# field CopyC# reader.maxDoc() | |
GetFloats(IndexReader, String, FloatParser) | Checks the internal cache for an appropriate entry, and if
none is found, reads the terms in CopyC# field CopyC# reader.maxDoc() | |
GetInfoStream | counterpart of {@link #SetInfoStream(PrintStream)} | |
GetInts(IndexReader, String) | Checks the internal cache for an appropriate entry, and if none is
found, reads the terms in CopyC# field CopyC# reader.maxDoc() | |
GetInts(IndexReader, String, IntParser) | Checks the internal cache for an appropriate entry, and if none is found,
reads the terms in CopyC# field CopyC# reader.maxDoc() | |
GetLongs(IndexReader, String) | Checks the internal cache for an appropriate entry, and if none is
found, reads the terms in CopyC# field CopyC# reader.maxDoc() | |
GetLongs(IndexReader, String, LongParser) | Checks the internal cache for an appropriate entry, and if none is found,
reads the terms in CopyC# field CopyC# reader.maxDoc() | |
GetShorts(IndexReader, String) | Checks the internal cache for an appropriate entry, and if none is
found, reads the terms in CopyC# field CopyC# reader.maxDoc() | |
GetShorts(IndexReader, String, ShortParser) | Checks the internal cache for an appropriate entry, and if none is found,
reads the terms in CopyC# field CopyC# reader.maxDoc() | |
GetStringIndex | Checks the internal cache for an appropriate entry, and if none
is found reads the term values in CopyC# field | |
GetStrings | Checks the internal cache for an appropriate entry, and if none
is found, reads the term values in CopyC# field CopyC# reader.maxDoc() | |
Purge |
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).
It should not be relied on for "Cache maintenance" in general
application code.
EXPERIMENTAL API: This API is considered extremely advanced
and experimental. It may be removed or altered w/o warning in future
releases
of Lucene.
| |
SetInfoStream | If non-null, FieldCacheImpl will warn whenever
entries are created that are not sane according to
{@link Lucene.Net.Util.FieldCacheSanityChecker}.
|