The ExtendedFieldCache type exposes the following members.

Methods

  NameDescription
Public methodGetAuto Obsolete.
Checks the internal cache for an appropriate entry, and if none is found reads
CopyC#
field
to see if it contains integers, longs, floats or strings, and then calls one of the other methods in this class to get the values. For string values, a StringIndex is returned. After calling this method, there is an entry in the cache for both type
CopyC#
AUTO
and the actual found type.
(Inherited from FieldCache.)
Public methodGetBytes(IndexReader, String)
Checks the internal cache for an appropriate entry, and if none is found, reads the terms in
CopyC#
field
as a single byte and returns an array of size
CopyC#
reader.maxDoc()
of the value each document has in the given field.
(Inherited from FieldCache.)
Public methodGetBytes(IndexReader, String, ByteParser)
Checks the internal cache for an appropriate entry, and if none is found, reads the terms in
CopyC#
field
as bytes and returns an array of size
CopyC#
reader.maxDoc()
of the value each document has in the given field.
(Inherited from FieldCache.)
Public methodGetCacheEntries
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.

(Inherited from FieldCache.)
Public methodGetCustom Obsolete.
Checks the internal cache for an appropriate entry, and if none is found reads the terms out of
CopyC#
field
and calls the given SortComparator to get the sort values. A hit in the cache will happen if
CopyC#
reader
,
CopyC#
field
, and
CopyC#
comparator
are the same (using
CopyC#
equals()
) as a previous call to this method.
(Inherited from FieldCache.)
Public methodGetDoubles(IndexReader, String)
Checks the internal cache for an appropriate entry, and if none is found, reads the terms in
CopyC#
field
as integers and returns an array of size
CopyC#
reader.maxDoc()
of the value each document has in the given field.
(Inherited from FieldCache.)
Public methodGetDoubles(IndexReader, String, DoubleParser)
Checks the internal cache for an appropriate entry, and if none is found, reads the terms in
CopyC#
field
as doubles and returns an array of size
CopyC#
reader.maxDoc()
of the value each document has in the given field.
(Inherited from FieldCache.)
Public methodGetDoubles(IndexReader, String, DoubleParser) Obsolete.
Public methodGetFloats(IndexReader, String)
Checks the internal cache for an appropriate entry, and if none is found, reads the terms in
CopyC#
field
as floats and returns an array of size
CopyC#
reader.maxDoc()
of the value each document has in the given field.
(Inherited from FieldCache.)
Public methodGetFloats(IndexReader, String, FloatParser)
Checks the internal cache for an appropriate entry, and if none is found, reads the terms in
CopyC#
field
as floats and returns an array of size
CopyC#
reader.maxDoc()
of the value each document has in the given field.
(Inherited from FieldCache.)
Public methodGetInfoStream
counterpart of {@link #SetInfoStream(PrintStream)}
(Inherited from FieldCache.)
Public methodGetInts(IndexReader, String)
Checks the internal cache for an appropriate entry, and if none is found, reads the terms in
CopyC#
field
as integers and returns an array of size
CopyC#
reader.maxDoc()
of the value each document has in the given field.
(Inherited from FieldCache.)
Public methodGetInts(IndexReader, String, IntParser)
Checks the internal cache for an appropriate entry, and if none is found, reads the terms in
CopyC#
field
as integers and returns an array of size
CopyC#
reader.maxDoc()
of the value each document has in the given field.
(Inherited from FieldCache.)
Public methodGetLongs(IndexReader, String)
Checks the internal cache for an appropriate entry, and if none is found, reads the terms in
CopyC#
field
as longs and returns an array of size
CopyC#
reader.maxDoc()
of the value each document has in the given field.
(Inherited from FieldCache.)
Public methodGetLongs(IndexReader, String, LongParser)
Checks the internal cache for an appropriate entry, and if none is found, reads the terms in
CopyC#
field
as longs and returns an array of size
CopyC#
reader.maxDoc()
of the value each document has in the given field.
(Inherited from FieldCache.)
Public methodGetLongs(IndexReader, String, LongParser) Obsolete.
Public methodGetShorts(IndexReader, String)
Checks the internal cache for an appropriate entry, and if none is found, reads the terms in
CopyC#
field
as shorts and returns an array of size
CopyC#
reader.maxDoc()
of the value each document has in the given field.
(Inherited from FieldCache.)
Public methodGetShorts(IndexReader, String, ShortParser)
Checks the internal cache for an appropriate entry, and if none is found, reads the terms in
CopyC#
field
as shorts and returns an array of size
CopyC#
reader.maxDoc()
of the value each document has in the given field.
(Inherited from FieldCache.)
Public methodGetStringIndex
Checks the internal cache for an appropriate entry, and if none is found reads the term values in
CopyC#
field
and returns an array of them in natural order, along with an array telling which element in the term array each document uses.
(Inherited from FieldCache.)
Public methodGetStrings
Checks the internal cache for an appropriate entry, and if none is found, reads the term values in
CopyC#
field
and returns an array of size
CopyC#
reader.maxDoc()
containing the value each document has in the given field.
(Inherited from FieldCache.)
Public methodPurge
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.
(Inherited from FieldCache.)
Public methodPurgeAllCaches

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.

(Inherited from FieldCache.)
Public methodSetInfoStream
If non-null, FieldCacheImpl will warn whenever entries are created that are not sane according to {@link Lucene.Net.Util.FieldCacheSanityChecker}.
(Inherited from FieldCache.)

See Also