public class

ByteFieldSource

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

Summary

Public Constructors
ByteFieldSource(String field)
Create a cached byte field source with default string-to-byte parser.
ByteFieldSource(String field, FieldCache.ByteParser parser)
Create a cached byte field source with a specific string-to-byte 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 ByteFieldSource (String field)

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

public ByteFieldSource (String field, FieldCache.ByteParser parser)

Create a cached byte field source with a specific string-to-byte 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