Class JoiningLongMultiValuesSource
- java.lang.Object
-
- org.hibernate.search.backend.lucene.lowlevel.docvalues.impl.LongMultiValuesSource
-
- org.hibernate.search.backend.lucene.lowlevel.docvalues.impl.JoiningLongMultiValuesSource
-
public abstract class JoiningLongMultiValuesSource extends LongMultiValuesSource
A source ofLongMultiValuesthat automatically fetches values from nested documents if necessary.
-
-
Field Summary
Fields Modifier and Type Field Description protected NestedDocsProvidernestedDocsProvider
-
Constructor Summary
Constructors Constructor Description JoiningLongMultiValuesSource(NestedDocsProvider nestedDocsProvider)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static JoiningLongMultiValuesSourcefromIntField(String field, NestedDocsProvider nested)Creates aJoiningLongMultiValuesSourcethat wraps an Integer-valued fieldstatic JoiningLongMultiValuesSourcefromLongField(String field, NestedDocsProvider nested)Creates aJoiningLongMultiValuesSourcethat wraps a Long-valued fieldprotected abstract org.apache.lucene.index.SortedNumericDocValuesgetSortedNumericDocValues(org.apache.lucene.index.LeafReaderContext ctx)LongMultiValuesgetValues(org.apache.lucene.index.LeafReaderContext ctx)inthashCode()protected LongMultiValuesselect(org.apache.lucene.index.SortedNumericDocValues values, ChildDocIds childDocsWithValues)
-
-
-
Field Detail
-
nestedDocsProvider
protected final NestedDocsProvider nestedDocsProvider
-
-
Constructor Detail
-
JoiningLongMultiValuesSource
public JoiningLongMultiValuesSource(NestedDocsProvider nestedDocsProvider)
-
-
Method Detail
-
fromLongField
public static JoiningLongMultiValuesSource fromLongField(String field, NestedDocsProvider nested)
Creates aJoiningLongMultiValuesSourcethat wraps a Long-valued field- Parameters:
field- the fieldnested- the nested provider- Returns:
- A
JoiningLongMultiValuesSource
-
fromIntField
public static JoiningLongMultiValuesSource fromIntField(String field, NestedDocsProvider nested)
Creates aJoiningLongMultiValuesSourcethat wraps an Integer-valued field- Parameters:
field- the fieldnested- the nested provider- Returns:
- A
JoiningLongMultiValuesSource
-
getValues
public LongMultiValues getValues(org.apache.lucene.index.LeafReaderContext ctx) throws IOException
- Specified by:
getValuesin classLongMultiValuesSource- Returns:
- a
LongMultiValuesinstance for the passed-in LeafReaderContext. - Throws:
IOException
-
getSortedNumericDocValues
protected abstract org.apache.lucene.index.SortedNumericDocValues getSortedNumericDocValues(org.apache.lucene.index.LeafReaderContext ctx) throws IOException- Throws:
IOException
-
select
protected LongMultiValues select(org.apache.lucene.index.SortedNumericDocValues values, ChildDocIds childDocsWithValues)
-
-