org.apache.lucene.queries.function.valuesource
Class DateDocValuesFieldSource
java.lang.Object
org.apache.lucene.queries.function.ValueSource
org.apache.lucene.queries.function.valuesource.DocValuesFieldSource
org.apache.lucene.queries.function.valuesource.DateDocValuesFieldSource
public class DateDocValuesFieldSource
- extends DocValuesFieldSource
A ValueSource
for DocValues
dates, backed by
DocValues.Type.FIXED_INTS_64
or DocValues.Type.VAR_INTS
.
If the segment has no DocValues
, the default
DocValues.Source
of type
DocValues.Type.FIXED_INTS_64
will be used.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
DateDocValuesFieldSource
public DateDocValuesFieldSource(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
dateToString
protected String dateToString(Date date)
- Return the string representation of the provided
Date
.
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.