org.apache.lucene.search.function

Class IntFieldSource

public class IntFieldSource extends FieldCacheSource

Expert: obtains int field values from the FieldCache using getInts() 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
IntFieldSource(String field)
Create a cached int field source with default string-to-int parser.
IntFieldSource(String field, FieldCache.IntParser parser)
Create a cached int field source with a specific string-to-int parser.
Method Summary
booleancachedFieldSourceEquals(FieldCacheSource o)
intcachedFieldSourceHashCode()
Stringdescription()
DocValuesgetCachedFieldValues(FieldCache cache, String field, IndexReader reader)

Constructor Detail

IntFieldSource

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

IntFieldSource

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