public class FileFloatSource
extends org.apache.lucene.queries.function.ValueSource
ExternalFileField
,
ExternalFileFieldReloader
Modifier and Type | Class and Description |
---|---|
static class |
FileFloatSource.ReloadCacheRequestHandler |
Constructor and Description |
---|
FileFloatSource(SchemaField field,
SchemaField keyField,
float defVal,
String datadir)
Creates a new FileFloatSource
|
Modifier and Type | Method and Description |
---|---|
String |
description() |
boolean |
equals(Object o) |
org.apache.lucene.queries.function.FunctionValues |
getValues(Map context,
org.apache.lucene.index.LeafReaderContext readerContext) |
int |
hashCode() |
void |
refreshCache(org.apache.lucene.index.IndexReader reader)
Refresh the cache for an IndexReader.
|
static void |
resetCache()
Remove all cached entries.
|
String |
toString() |
public FileFloatSource(SchemaField field, SchemaField keyField, float defVal, String datadir)
field
- the source's SchemaFieldkeyField
- the field to use as a keydefVal
- the default value to use if a field has no entry in the external filedatadir
- the directory in which to look for the external filepublic String description()
description
in class org.apache.lucene.queries.function.ValueSource
public org.apache.lucene.queries.function.FunctionValues getValues(Map context, org.apache.lucene.index.LeafReaderContext readerContext) throws IOException
getValues
in class org.apache.lucene.queries.function.ValueSource
IOException
public boolean equals(Object o)
equals
in class org.apache.lucene.queries.function.ValueSource
public int hashCode()
hashCode
in class org.apache.lucene.queries.function.ValueSource
public String toString()
toString
in class org.apache.lucene.queries.function.ValueSource
public static void resetCache()
public void refreshCache(org.apache.lucene.index.IndexReader reader)
reader
- the IndexReader whose cache needs refreshingCopyright © 2000–2015 The Apache Software Foundation. All rights reserved.