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, newContext
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 ValueSource
public FunctionValues getValues(Map context, AtomicReaderContext readerContext) throws IOException
getValues
in class ValueSource
IOException
public boolean equals(Object o)
equals
in class ValueSource
public int hashCode()
hashCode
in class ValueSource
public String toString()
toString
in class ValueSource
public static void resetCache()
public void refreshCache(IndexReader reader)
reader
- the IndexReader whose cache needs refreshingCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.