public class FileFloatSource extends 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) |
FunctionValues |
getValues(Map context,
AtomicReaderContext readerContext) |
int |
hashCode() |
void |
refreshCache(IndexReader reader)
Refresh the cache for an IndexReader.
|
static void |
resetCache()
Remove all cached entries.
|
String |
toString() |
createWeight, getSortField, newContextpublic 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 ValueSourcepublic FunctionValues getValues(Map context, AtomicReaderContext readerContext) throws IOException
getValues in class ValueSourceIOExceptionpublic boolean equals(Object o)
equals in class ValueSourcepublic int hashCode()
hashCode in class ValueSourcepublic String toString()
toString in class ValueSourcepublic static void resetCache()
public void refreshCache(IndexReader reader)
reader - the IndexReader whose cache needs refreshingCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.