org.apache.solr.search.function
Class FileFloatSource

java.lang.Object
  extended by org.apache.lucene.queries.function.ValueSource
      extended by org.apache.solr.search.function.FileFloatSource

public class FileFloatSource
extends ValueSource

Obtains float field values from an external file.


Nested Class Summary
static class FileFloatSource.ReloadCacheRequestHandler
           
 
Constructor Summary
FileFloatSource(SchemaField field, SchemaField keyField, float defVal, QParser parser)
           
 
Method Summary
 String description()
           
 boolean equals(Object o)
           
 FunctionValues getValues(Map context, AtomicReaderContext readerContext)
           
 int hashCode()
           
static void resetCache()
           
 String toString()
           
 
Methods inherited from class org.apache.lucene.queries.function.ValueSource
createWeight, getSortField, 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()
Specified by:
description in class ValueSource

getValues

public FunctionValues getValues(Map context,
                                AtomicReaderContext readerContext)
                         throws IOException
Specified by:
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

resetCache

public static void resetCache()


Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.