public class DateDocValuesFieldSource extends DocValuesFieldSource
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.
direct, fieldName
Constructor and Description |
---|
DateDocValuesFieldSource(String fieldName,
boolean direct) |
Modifier and Type | Method and Description |
---|---|
protected String |
dateToString(Date date)
Return the string representation of the provided
Date . |
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 DateDocValuesFieldSource(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.