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.AtomicReaderContext 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.ValueSourcepublic org.apache.lucene.queries.function.FunctionValues getValues(Map context, org.apache.lucene.index.AtomicReaderContext readerContext) throws IOException
getValues in class org.apache.lucene.queries.function.ValueSourceIOExceptionpublic boolean equals(Object o)
equals in class org.apache.lucene.queries.function.ValueSourcepublic int hashCode()
hashCode in class org.apache.lucene.queries.function.ValueSourcepublic String toString()
toString in class org.apache.lucene.queries.function.ValueSourcepublic static void resetCache()
public void refreshCache(org.apache.lucene.index.IndexReader reader)
reader - the IndexReader whose cache needs refreshingCopyright © 2000–2014 The Apache Software Foundation. All rights reserved.