org.apache.lucene.queries.function.valuesource
Class StrDocValuesFieldSource
java.lang.Object
org.apache.lucene.queries.function.ValueSource
org.apache.lucene.queries.function.valuesource.DocValuesFieldSource
org.apache.lucene.queries.function.valuesource.StrDocValuesFieldSource
public class StrDocValuesFieldSource
- extends DocValuesFieldSource
A ValueSource
for binary DocValues
that represent an UTF-8
encoded String using:
If the segment has no DocValues
, the default
DocValues.Source
of type
DocValues.Type.BYTES_VAR_SORTED
will be used.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
StrDocValuesFieldSource
public StrDocValuesFieldSource(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.