public class SortedSetFieldSource extends FieldCacheSource
FunctionValues
instances for multi-valued string based fields.
A SortedSetDocValues contains multiple values for a field, so this technique "selects" a value as the representative value for the document.
SortedSetSelector
Modifier and Type | Field and Description |
---|---|
protected SortedSetSelector.Type |
selector |
field
Constructor and Description |
---|
SortedSetFieldSource(String field) |
SortedSetFieldSource(String field,
SortedSetSelector.Type selector) |
Modifier and Type | Method and Description |
---|---|
String |
description()
description of field, used in explain()
|
boolean |
equals(Object obj) |
FunctionValues |
getValues(Map context,
LeafReaderContext readerContext)
Gets the values for this reader and the context that was previously
passed to createWeight()
|
int |
hashCode() |
getField
createWeight, getSortField, newContext, toString
protected final SortedSetSelector.Type selector
public SortedSetFieldSource(String field)
public SortedSetFieldSource(String field, SortedSetSelector.Type selector)
public FunctionValues getValues(Map context, LeafReaderContext readerContext) throws IOException
ValueSource
getValues
in class ValueSource
IOException
public String description()
ValueSource
description
in class FieldCacheSource
public int hashCode()
hashCode
in class FieldCacheSource
public boolean equals(Object obj)
equals
in class FieldCacheSource
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.