org.apache.lucene.queries.function.valuesource
Class NumericDocValuesFieldSource

java.lang.Object
  extended by org.apache.lucene.queries.function.ValueSource
      extended by org.apache.lucene.queries.function.valuesource.DocValuesFieldSource
          extended by 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.

Field Summary
 
Fields inherited from class org.apache.lucene.queries.function.valuesource.DocValuesFieldSource
direct, fieldName
 
Constructor Summary
NumericDocValuesFieldSource(String fieldName, boolean direct)
           
 
Method Summary
 FunctionValues getValues(Map context, AtomicReaderContext readerContext)
          Gets the values for this reader and the context that was previously passed to createWeight()
 
Methods inherited from class org.apache.lucene.queries.function.valuesource.DocValuesFieldSource
description, equals, getFieldName, getSource, hashCode, isDirect
 
Methods inherited from class org.apache.lucene.queries.function.ValueSource
createWeight, getSortField, newContext, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NumericDocValuesFieldSource

public NumericDocValuesFieldSource(String fieldName,
                                   boolean direct)
Parameters:
fieldName - the name of the DocValues field
direct - whether or not to use a direct DocValues.Source
Method Detail

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.