org.apache.solr.search.function
Class FileFloatSource

java.lang.Object
  extended by org.apache.solr.search.function.ValueSource
      extended by org.apache.solr.search.function.FileFloatSource
All Implemented Interfaces:
Serializable

public class FileFloatSource
extends ValueSource

Obtains float field values from an external file.

Version:
$Id: FileFloatSource.java 816202 2009-09-17 14:08:13Z yonik $
See Also:
Serialized Form

Constructor Summary
FileFloatSource(SchemaField field, SchemaField keyField, float defVal, QParser parser)
           
 
Method Summary
 String description()
          description of field, used in explain()
 boolean equals(Object o)
           
 DocValues getValues(Map context, IndexReader reader)
          Gets the values for this reader and the context that was previously passed to createWeight()
 int hashCode()
           
 String toString()
           
 
Methods inherited from class org.apache.solr.search.function.ValueSource
createWeight, getValues, newContext
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileFloatSource

public FileFloatSource(SchemaField field,
                       SchemaField keyField,
                       float defVal,
                       QParser parser)
Method Detail

description

public String description()
Description copied from class: ValueSource
description of field, used in explain()

Specified by:
description in class ValueSource

getValues

public DocValues getValues(Map context,
                           IndexReader reader)
                    throws IOException
Description copied from class: ValueSource
Gets the values for this reader and the context that was previously passed to createWeight()

Overrides:
getValues in class ValueSource
Throws:
IOException

equals

public boolean equals(Object o)
Specified by:
equals in class ValueSource

hashCode

public int hashCode()
Specified by:
hashCode in class ValueSource

toString

public String toString()
Overrides:
toString in class ValueSource


Copyright © 2010 Apache Software Foundation. All Rights Reserved.