Class JoiningTextMultiValuesSource
- java.lang.Object
-
- org.hibernate.search.backend.lucene.lowlevel.docvalues.impl.TextMultiValuesSource
-
- org.hibernate.search.backend.lucene.lowlevel.docvalues.impl.JoiningTextMultiValuesSource
-
public abstract class JoiningTextMultiValuesSource extends TextMultiValuesSource
A source ofTextMultiValuesthat automatically fetches values from nested documents if necessary.
-
-
Field Summary
Fields Modifier and Type Field Description protected NestedDocsProvidernestedDocsProvider
-
Constructor Summary
Constructors Constructor Description JoiningTextMultiValuesSource(NestedDocsProvider nestedDocsProvider)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static JoiningTextMultiValuesSourcefromField(String field, NestedDocsProvider nested)Creates aJoiningTextMultiValuesSourcethat wraps a text-valued fieldprotected abstract org.apache.lucene.index.SortedSetDocValuesgetSortedSetDocValues(org.apache.lucene.index.LeafReaderContext ctx)TextMultiValuesgetValues(org.apache.lucene.index.LeafReaderContext ctx)inthashCode()protected TextMultiValuesselect(org.apache.lucene.index.SortedSetDocValues values, ChildDocIds childDocsWithValues)
-
-
-
Field Detail
-
nestedDocsProvider
protected final NestedDocsProvider nestedDocsProvider
-
-
Constructor Detail
-
JoiningTextMultiValuesSource
public JoiningTextMultiValuesSource(NestedDocsProvider nestedDocsProvider)
-
-
Method Detail
-
fromField
public static JoiningTextMultiValuesSource fromField(String field, NestedDocsProvider nested)
Creates aJoiningTextMultiValuesSourcethat wraps a text-valued field- Parameters:
field- the fieldnested- the nested provider- Returns:
- A
JoiningTextMultiValuesSource
-
getValues
public TextMultiValues getValues(org.apache.lucene.index.LeafReaderContext ctx) throws IOException
- Specified by:
getValuesin classTextMultiValuesSource- Returns:
- a
TextMultiValuesinstance for the passed-in LeafReaderContext. - Throws:
IOException
-
getSortedSetDocValues
protected abstract org.apache.lucene.index.SortedSetDocValues getSortedSetDocValues(org.apache.lucene.index.LeafReaderContext ctx) throws IOException- Throws:
IOException
-
select
protected TextMultiValues select(org.apache.lucene.index.SortedSetDocValues values, ChildDocIds childDocsWithValues)
-
-