Lucene.Net
3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
|
Expert: obtains single byte field values from the FieldCache using getBytes()
and makes those values available as other numeric types, casting as needed.
More...
Inherits Lucene.Net.Search.Function.FieldCacheSource.
Public Member Functions | |
ByteFieldSource (System.String field) | |
Create a cached byte field source with default string-to-byte parser. | |
ByteFieldSource (System.String field, Lucene.Net.Search.ByteParser parser) | |
Create a cached byte field source with a specific string-to-byte 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 System.String | Description () |
description of field, used in explain() | |
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 single byte field values from the FieldCache using getBytes()
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 ByteFieldSource.cs.
Lucene.Net.Search.Function.ByteFieldSource.ByteFieldSource | ( | System.String | field | ) |
Create a cached byte field source with default string-to-byte parser.
Definition at line 96 of file ByteFieldSource.cs.
Lucene.Net.Search.Function.ByteFieldSource.ByteFieldSource | ( | System.String | field, |
Lucene.Net.Search.ByteParser | parser | ||
) |
Create a cached byte field source with a specific string-to-byte parser.
Definition at line 101 of file ByteFieldSource.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 ByteFieldSource.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 ByteFieldSource.cs.
|
virtual |
description of field, used in explain()
Implements Lucene.Net.Search.Function.ValueSource.
Definition at line 107 of file ByteFieldSource.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 ByteFieldSource.cs.