org.apache.solr.search.function
Class FieldCacheSource
java.lang.Object
org.apache.solr.search.function.ValueSource
org.apache.solr.search.function.FieldCacheSource
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- ByteFieldSource, DoubleFieldSource, FloatFieldSource, IntFieldSource, LongFieldSource, ShortFieldSource
public abstract class FieldCacheSource
- extends ValueSource
A base class for ValueSource implementations that retrieve values for
a single field from the FieldCache
.
- Version:
- $Id: FieldCacheSource.java 629334 2008-02-20 03:36:49Z gsingers $
- See Also:
- Serialized Form
field
protected String field
cache
protected FieldCache cache
FieldCacheSource
public FieldCacheSource(String field)
setFieldCache
public void setFieldCache(FieldCache cache)
- If you are using longs or doubles, this needs to be a
ExtendedFieldCache
.
- Parameters:
cache
- The FieldCache
getFieldCache
public FieldCache getFieldCache()
description
public String description()
- Description copied from class:
ValueSource
- description of field, used in explain()
- Specified by:
description
in class ValueSource
equals
public boolean equals(Object o)
- Specified by:
equals
in class ValueSource
hashCode
public int hashCode()
- Specified by:
hashCode
in class ValueSource
Copyright © 2008 Apache Software Foundation. All Rights Reserved.