org.apache.lucene.search.function

Class FloatFieldSource

public class FloatFieldSource extends FieldCacheSource

Expert: obtains float field values from the FieldCache using getFloats() 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.

Author: yonik

See Also: for requirements on the field.

Constructor Summary
FloatFieldSource(String field)
Create a cached float field source with default string-to-float parser.
FloatFieldSource(String field, FieldCache.FloatParser parser)
Create a cached float field source with a specific string-to-float parser.
Method Summary
booleancachedFieldSourceEquals(FieldCacheSource o)
intcachedFieldSourceHashCode()
Stringdescription()
DocValuesgetCachedFieldValues(FieldCache cache, String field, IndexReader reader)

Constructor Detail

FloatFieldSource

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

FloatFieldSource

public FloatFieldSource(String field, FieldCache.FloatParser parser)
Create a cached float field source with a specific string-to-float 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.