Lucene.Net
3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
|
Expert: obtains float field values from the FieldCache using getFloats()
and makes those values available as other numeric types, casting as needed.
More...
Inherits Lucene.Net.Search.Function.FieldCacheSource.
Public Member Functions | |
FloatFieldSource (System.String field) | |
Create a cached float field source with default string-to-float parser. | |
FloatFieldSource (System.String field, Lucene.Net.Search.FloatParser parser) | |
Create a cached float field source with a specific string-to-float parser. | |
override System.String | Description () |
description of field, used in explain() | |
override DocValues | GetCachedFieldValues (FieldCache cache, System.String field, IndexReader reader) |
Return cached DocValues for input field and reader. | |
override bool | CachedFieldSourceEquals (FieldCacheSource o) |
Check if equals to another FieldCacheSource, already knowing that cache and field are equal. | |
override 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 Member Functions inherited from Lucene.Net.Search.Function.FieldCacheSource | |
override DocValues | GetValues (IndexReader reader) |
Return the DocValues used by the function query. | |
override bool | Equals (System.Object o) |
Needed for possible caching of query results - used by ValueSourceQuery.Equals(Object). | |
override int | GetHashCode () |
Needed for possible caching of query results - used by ValueSourceQuery.GetHashCode(). | |
Public Member Functions inherited from Lucene.Net.Search.Function.ValueSource | |
override System.String | ToString () |
Additional Inherited Members | |
Protected Member Functions inherited from Lucene.Net.Search.Function.FieldCacheSource | |
FieldCacheSource (System.String field) | |
Create a cached field source for the input field. | |
Expert: obtains float field values from the FieldCache using getFloats()
and makes those values available as other numeric types, casting as needed.
<font color="#FF0000"> 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.</font>
for requirements" on the field.
NOTE: with the switch in 2.9 to segment-based searching, if FieldCacheSource.GetValues is invoked with a composite (multi-segment) reader, this can easily cause double RAM usage for the values in the FieldCache. It's best to switch your application to pass only atomic (single segment) readers to this API.
Definition at line 48 of file FloatFieldSource.cs.
Lucene.Net.Search.Function.FloatFieldSource.FloatFieldSource | ( | System.String | field | ) |
Create a cached float field source with default string-to-float parser.
Definition at line 91 of file FloatFieldSource.cs.
Lucene.Net.Search.Function.FloatFieldSource.FloatFieldSource | ( | System.String | field, |
Lucene.Net.Search.FloatParser | parser | ||
) |
Create a cached float field source with a specific string-to-float parser.
Definition at line 96 of file FloatFieldSource.cs.
|
virtual |
Check if equals to another FieldCacheSource, already knowing that cache and field are equal.
Implements Lucene.Net.Search.Function.FieldCacheSource.
Definition at line 115 of file FloatFieldSource.cs.
|
virtual |
Return a hash code of a FieldCacheSource, without the hash-codes of the field and the cache (those are taken care of elsewhere).
Implements Lucene.Net.Search.Function.FieldCacheSource.
Definition at line 126 of file FloatFieldSource.cs.
|
virtual |
description of field, used in explain()
Reimplemented from Lucene.Net.Search.Function.FieldCacheSource.
Definition at line 102 of file FloatFieldSource.cs.
|
virtual |
Return cached DocValues for input field and reader.
cache | FieldCache so that values of a field are loaded once per reader (RAM allowing) |
field | Field for which values are required. |
Implements Lucene.Net.Search.Function.FieldCacheSource.
Definition at line 108 of file FloatFieldSource.cs.