public class

FloatFieldSource

extends FieldCacheSource
java.lang.Object
   ↳ org.apache.lucene.search.function.ValueSource
     ↳ org.apache.lucene.search.function.FieldCacheSource
       ↳ org.apache.lucene.search.function.FloatFieldSource

Summary

Public Constructors
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.
Public Methods
boolean cachedFieldSourceEquals(FieldCacheSource o)
Check if equals to another FieldCacheSource, already knowing that cache and field are equal.
int cachedFieldSourceHashCode()
Return a hash code of a FieldCacheSource, without the hash-codes of the field and the cache (those are taken care of elsewhere).
String description()
description of field, used in explain()
DocValues getCachedFieldValues(FieldCache cache, String field, IndexReader reader)
Return cached DocValues for input field and reader.
[Expand]
Inherited Methods
From class org.apache.lucene.search.function.FieldCacheSource
From class org.apache.lucene.search.function.ValueSource
From class java.lang.Object

Public Constructors

public FloatFieldSource (String field)

Create a cached float field source with default string-to-float parser.

public FloatFieldSource (String field, FieldCache.FloatParser parser)

Create a cached float field source with a specific string-to-float parser.

Public Methods

public boolean cachedFieldSourceEquals (FieldCacheSource o)

Check if equals to another FieldCacheSource, already knowing that cache and field are equal.

public int cachedFieldSourceHashCode ()

Return a hash code of a FieldCacheSource, without the hash-codes of the field and the cache (those are taken care of elsewhere).

public String description ()

description of field, used in explain()

public DocValues getCachedFieldValues (FieldCache cache, String field, IndexReader reader)

Return cached DocValues for input field and reader.

Parameters
cache FieldCache so that values of a field are loaded once per reader (RAM allowing)
field Field for which values are required.
Throws
IOException