Class JoiningLongMultiValuesSource
java.lang.Object
org.hibernate.search.backend.lucene.lowlevel.docvalues.impl.LongMultiValuesSource
org.hibernate.search.backend.lucene.lowlevel.docvalues.impl.JoiningLongMultiValuesSource
A source of
LongMultiValues that automatically fetches values from nested documents if necessary.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic 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) getValues(org.apache.lucene.index.LeafReaderContext ctx) inthashCode()protected LongMultiValuesselect(org.apache.lucene.index.SortedNumericDocValues values, ChildDocIds childDocsWithValues)
-
Field Details
-
nestedDocsProvider
-
-
Constructor Details
-
JoiningLongMultiValuesSource
-
-
Method Details
-
fromLongField
Creates aJoiningLongMultiValuesSourcethat wraps a Long-valued field- Parameters:
field- the fieldnested- the nested provider- Returns:
- A
JoiningLongMultiValuesSource
-
fromIntField
Creates aJoiningLongMultiValuesSourcethat wraps an Integer-valued field- Parameters:
field- the fieldnested- the nested provider- Returns:
- A
JoiningLongMultiValuesSource
-
equals
-
hashCode
public int hashCode() -
getValues
- 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)
-