Home » lucene-3.0.1-src » org.apache » lucene » search » function » [javadoc | source]
public class: ShortFieldSource [javadoc | source]

All Implemented Interfaces:

Expert: obtains short field values from the 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.

 public ShortFieldSource(String field) 
    Create a cached short field source with default string-to-short parser.
 public ShortFieldSource(String field,
    ShortParser parser) 
    Create a cached short field source with a specific string-to-short parser.
Method from org.apache.lucene.search.function.ShortFieldSource Summary:
cachedFieldSourceEquals,   cachedFieldSourceHashCode,   description,   getCachedFieldValues
Methods from org.apache.lucene.search.function.FieldCacheSource:
cachedFieldSourceEquals,   cachedFieldSourceHashCode,   description,   equals,   getCachedFieldValues,   getValues,   hashCode
Methods from org.apache.lucene.search.function.ValueSource:
description,   equals,   getValues,   hashCode,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.lucene.search.function.ShortFieldSource Detail:
 public boolean cachedFieldSourceEquals(FieldCacheSource o) 
 public int cachedFieldSourceHashCode() 
 public String description() 
 public DocValues getCachedFieldValues(FieldCache cache,
    String field,
    IndexReader reader) throws IOException