org.apache.lucene.search.function
public class ShortFieldSource extends FieldCacheSource
FieldCache
using getShorts() and makes those values
available as other numeric types, casting as needed.
WARNING: The status of the search.function package is experimental. The APIs introduced here might change in the future and will not be supported anymore in such a case.
See Also: for requirements
on the field.
| Constructor Summary | |
|---|---|
| ShortFieldSource(String field)
Create a cached short field source with default string-to-short parser. | |
| ShortFieldSource(String field, FieldCache.ShortParser parser)
Create a cached short field source with a specific string-to-short parser. | |
| Method Summary | |
|---|---|
| boolean | cachedFieldSourceEquals(FieldCacheSource o) |
| int | cachedFieldSourceHashCode() |
| String | description() |
| DocValues | getCachedFieldValues(FieldCache cache, String field, IndexReader reader) |