public class FileFloatSource extends ValueSource
Modifier and Type | Class and Description |
---|---|
(package private) static class |
FileFloatSource.Cache
Internal cache.
|
(package private) static class |
FileFloatSource.CreationPlaceholder |
private static class |
FileFloatSource.Entry
Expert: Every composite-key in the internal cache is of this type.
|
static class |
FileFloatSource.ReloadCacheRequestHandler |
ValueSource.ValueSourceComparator, ValueSource.ValueSourceComparatorSource, ValueSource.ValueSourceSortField
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
dataDir |
private float |
defVal |
private SchemaField |
field |
(package private) static FileFloatSource.Cache |
floatCache |
private SchemaField |
keyField |
(package private) static java.lang.Object |
onlyForTesting |
Constructor and Description |
---|
FileFloatSource(SchemaField field,
SchemaField keyField,
float defVal,
QParser parser) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
description()
description of field, used in explain()
|
boolean |
equals(java.lang.Object o) |
private float[] |
getCachedFloats(org.apache.lucene.index.IndexReader reader) |
private static float[] |
getFloats(FileFloatSource ffs,
org.apache.lucene.index.IndexReader reader) |
DocValues |
getValues(java.util.Map context,
org.apache.lucene.index.IndexReader reader)
Gets the values for this reader and the context that was previously
passed to createWeight()
|
int |
hashCode() |
static void |
resetCache() |
java.lang.String |
toString() |
createWeight, getSortField, getValues, newContext
private SchemaField field
private final SchemaField keyField
private final float defVal
private final java.lang.String dataDir
static FileFloatSource.Cache floatCache
static java.lang.Object onlyForTesting
public FileFloatSource(SchemaField field, SchemaField keyField, float defVal, QParser parser)
public java.lang.String description()
ValueSource
description
in class ValueSource
public DocValues getValues(java.util.Map context, org.apache.lucene.index.IndexReader reader) throws java.io.IOException
ValueSource
getValues
in class ValueSource
java.io.IOException
public boolean equals(java.lang.Object o)
equals
in class ValueSource
public int hashCode()
hashCode
in class ValueSource
public java.lang.String toString()
toString
in class ValueSource
public static void resetCache()
private final float[] getCachedFloats(org.apache.lucene.index.IndexReader reader)
private static float[] getFloats(FileFloatSource ffs, org.apache.lucene.index.IndexReader reader)