Lucene.Net
3.0.3
Lucene.Net is a port of the Lucene search engine library, written in C# and targeted at .NET runtime users.
|
Expert: obtains int field values from the FieldCache using getInts()
and makes those values available as other numeric types, casting as needed.
More...
Inherits Lucene.Net.Search.Function.FieldCacheSource.
Public Member Functions | |
IntFieldSource (System.String field) | |
Create a cached int field source with default string-to-int parser. | |
IntFieldSource (System.String field, Lucene.Net.Search.IntParser parser) | |
Create a cached int field source with a specific string-to-int 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 int field values from the FieldCache using getInts()
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 IntFieldSource.cs.
Lucene.Net.Search.Function.IntFieldSource.IntFieldSource | ( | System.String | field | ) |
Create a cached int field source with default string-to-int parser.
Definition at line 96 of file IntFieldSource.cs.
Lucene.Net.Search.Function.IntFieldSource.IntFieldSource | ( | System.String | field, |
Lucene.Net.Search.IntParser | parser | ||
) |
Create a cached int field source with a specific string-to-int parser.
Definition at line 101 of file IntFieldSource.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 120 of file IntFieldSource.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 131 of file IntFieldSource.cs.
|
virtual |
description of field, used in explain()
Reimplemented from Lucene.Net.Search.Function.FieldCacheSource.
Definition at line 107 of file IntFieldSource.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 113 of file IntFieldSource.cs.