public class StrDocValuesFieldSource extends DocValuesFieldSource
ValueSource
for binary DocValues
that represent an UTF-8
encoded String using:DocValues.Type.BYTES_FIXED_DEREF
,DocValues.Type.BYTES_FIXED_STRAIGHT
,DocValues.Type.BYTES_VAR_DEREF
,DocValues.Type.BYTES_VAR_STRAIGHT
,DocValues.Type.BYTES_FIXED_SORTED
,DocValues.Type.BYTES_VAR_SORTED
.
If the segment has no DocValues
, the default
DocValues.Source
of type
DocValues.Type.BYTES_VAR_SORTED
will be used.
direct, fieldName
Constructor and Description |
---|
StrDocValuesFieldSource(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 StrDocValuesFieldSource(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.