The methods of the FieldCache interface are listed below. For a complete list of FieldCache interface members, see the FieldCache Members topic.
Close | |
GetAuto | Checks the internal cache for an appropriate entry, and if none is found reads fieldto see if it contains integers, 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 AUTOand the actual found type. |
GetCustom | Checks the internal cache for an appropriate entry, and if none is found reads the terms out of fieldand calls the given SortComparator to get the sort values. A hit in the cache will happen if reader, field, and comparatorare the same (using equals()) as a previous call to this method. |
GetFloats | Overloaded. Checks the internal cache for an appropriate entry, and if none is found, reads the terms in fieldas floats and returns an array of size reader.maxDoc()of the value each document has in the given field. |
GetInts | Overloaded. Checks the internal cache for an appropriate entry, and if none is found, reads the terms in fieldas integers and returns an array of size reader.maxDoc()of the value each document has in the given field. |
GetStringIndex | Checks the internal cache for an appropriate entry, and if none is found reads the term values in fieldand returns an array of them in natural order, along with an array telling which element in the term array each document uses. |
GetStrings | Checks the internal cache for an appropriate entry, and if none is found, reads the term values in fieldand returns an array of size reader.maxDoc()containing the value each document has in the given field. |