public final class NumericDocValuesFieldSource extends DocValuesFieldSource
ValueSource
for numeric DocValues
types:DocValues.Type.FLOAT_32
,DocValues.Type.FLOAT_64
,DocValues.Type.FIXED_INTS_8
,DocValues.Type.FIXED_INTS_16
,DocValues.Type.FIXED_INTS_32
,DocValues.Type.FIXED_INTS_64
,DocValues.Type.VAR_INTS
.
If the segment has no DocValues
, the default
DocValues.Source
of type
DocValues.Type.FLOAT_64
will be used.
direct, fieldName
Constructor and Description |
---|
NumericDocValuesFieldSource(String fieldName,
boolean direct) |
Modifier and Type | Method and Description |
---|---|
FunctionValues |
getValues(Map context,
AtomicReaderContext readerContext)
Gets the values for this reader and the context that was previously
passed to createWeight()
|
description, equals, getFieldName, getSource, hashCode, isDirect
createWeight, getSortField, newContext, toString
public NumericDocValuesFieldSource(String fieldName, boolean direct)
fieldName
- the name of the DocValues
fielddirect
- whether or not to use a direct DocValues.Source
public FunctionValues getValues(Map context, AtomicReaderContext readerContext) throws IOException
ValueSource
getValues
in class ValueSource
IOException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.