org.apache.lucene.search.function

Class ShortFieldSource

public class ShortFieldSource extends FieldCacheSource

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.

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
booleancachedFieldSourceEquals(FieldCacheSource o)
intcachedFieldSourceHashCode()
Stringdescription()
DocValuesgetCachedFieldValues(FieldCache cache, String field, IndexReader reader)

Constructor Detail

ShortFieldSource

public ShortFieldSource(String field)
Create a cached short field source with default string-to-short parser.

ShortFieldSource

public ShortFieldSource(String field, FieldCache.ShortParser parser)
Create a cached short field source with a specific string-to-short parser.

Method Detail

cachedFieldSourceEquals

public boolean cachedFieldSourceEquals(FieldCacheSource o)

cachedFieldSourceHashCode

public int cachedFieldSourceHashCode()

description

public String description()

getCachedFieldValues

public DocValues getCachedFieldValues(FieldCache cache, String field, IndexReader reader)
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.