org.apache.lucene.queries.function.valuesource
Class NumericDocValuesFieldSource
java.lang.Object
org.apache.lucene.queries.function.ValueSource
org.apache.lucene.queries.function.valuesource.DocValuesFieldSource
org.apache.lucene.queries.function.valuesource.NumericDocValuesFieldSource
public final class NumericDocValuesFieldSource
- extends DocValuesFieldSource
A ValueSource
for numeric DocValues
types:
If the segment has no DocValues
, the default
DocValues.Source
of type
DocValues.Type.FLOAT_64
will be used.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
NumericDocValuesFieldSource
public NumericDocValuesFieldSource(String fieldName,
boolean direct)
- Parameters:
fieldName
- the name of the DocValues
fielddirect
- whether or not to use a direct DocValues.Source
getValues
public FunctionValues getValues(Map context,
AtomicReaderContext readerContext)
throws IOException
- Description copied from class:
ValueSource
- Gets the values for this reader and the context that was previously
passed to createWeight()
- Specified by:
getValues
in class ValueSource
- Throws:
IOException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.