|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.search.function.ValueSource
org.apache.lucene.search.function.FieldCacheSource
org.apache.lucene.search.function.FloatFieldSource
public class FloatFieldSource
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.
for requirements
on the field.,
Serialized Form| 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 | |
|---|---|
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. |
| Methods inherited from class org.apache.lucene.search.function.FieldCacheSource |
|---|
equals, getValues, hashCode |
| Methods inherited from class org.apache.lucene.search.function.ValueSource |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FloatFieldSource(String field)
public FloatFieldSource(String field,
FieldCache.FloatParser parser)
| Method Detail |
|---|
public String description()
ValueSource
description in class FieldCacheSource
public DocValues getCachedFieldValues(FieldCache cache,
String field,
IndexReader reader)
throws IOException
FieldCacheSource
getCachedFieldValues in class FieldCacheSourcecache - FieldCache so that values of a field are loaded once per reader (RAM allowing)field - Field for which values are required.
IOExceptionValueSourcepublic boolean cachedFieldSourceEquals(FieldCacheSource o)
FieldCacheSourceFieldCacheSource, already knowing that cache and field are equal.
cachedFieldSourceEquals in class FieldCacheSourceObject.equals(java.lang.Object)public int cachedFieldSourceHashCode()
FieldCacheSourceFieldCacheSource, without the hash-codes of the field
and the cache (those are taken care of elsewhere).
cachedFieldSourceHashCode in class FieldCacheSourceObject.hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||