Class LuceneDoubleDomain
- java.lang.Object
-
- org.hibernate.search.backend.lucene.types.lowlevel.impl.LuceneDoubleDomain
-
- All Implemented Interfaces:
LuceneNumericDomain<Double>
public class LuceneDoubleDomain extends Object implements LuceneNumericDomain<Double>
-
-
Constructor Summary
Constructors Constructor Description LuceneDoubleDomain()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Comparator<Double>createComparator()org.apache.lucene.search.QuerycreateExactQuery(String absoluteFieldPath, Double value)org.apache.lucene.search.FieldComparator<Double>createFieldComparator(String fieldName, int numHits, Double missingValue, boolean reversed, int sortPos, MultiValueMode multiValueMode, NestedDocsProvider nestedDocsProvider)org.apache.lucene.index.IndexableFieldcreateIndexField(String absoluteFieldPath, Double numericValue)org.apache.lucene.facet.FacetscreateRangeFacetCounts(String absoluteFieldPath, org.apache.lucene.facet.FacetsCollector facetsCollector, Collection<? extends Range<? extends Double>> ranges, NestedDocsProvider nestedDocsProvider)org.apache.lucene.search.QuerycreateRangeQuery(String absoluteFieldPath, Double lowerLimit, Double upperLimit)org.apache.lucene.search.QuerycreateSetQuery(String absoluteFieldPath, Collection<Double> values)org.apache.lucene.index.IndexableFieldcreateSortedDocValuesField(String absoluteFieldPath, Double numericValue)org.apache.lucene.facet.FacetscreateTermsFacetCounts(String absoluteFieldPath, org.apache.lucene.facet.FacetsCollector facetsCollector, NestedDocsProvider nestedDocsProvider)static LuceneNumericDomain<Double>get()DoublegetMaxValue()DoublegetMinValue()DoublegetNextValue(Double value)DoublegetPreviousValue(Double value)DoublesortedDocValueToTerm(long longValue)
-
-
-
Method Detail
-
get
public static LuceneNumericDomain<Double> get()
-
getMinValue
public Double getMinValue()
- Specified by:
getMinValuein interfaceLuceneNumericDomain<Double>
-
getMaxValue
public Double getMaxValue()
- Specified by:
getMaxValuein interfaceLuceneNumericDomain<Double>
-
getPreviousValue
public Double getPreviousValue(Double value)
- Specified by:
getPreviousValuein interfaceLuceneNumericDomain<Double>
-
getNextValue
public Double getNextValue(Double value)
- Specified by:
getNextValuein interfaceLuceneNumericDomain<Double>
-
createComparator
public Comparator<Double> createComparator()
- Specified by:
createComparatorin interfaceLuceneNumericDomain<Double>
-
createExactQuery
public org.apache.lucene.search.Query createExactQuery(String absoluteFieldPath, Double value)
- Specified by:
createExactQueryin interfaceLuceneNumericDomain<Double>
-
createRangeQuery
public org.apache.lucene.search.Query createRangeQuery(String absoluteFieldPath, Double lowerLimit, Double upperLimit)
- Specified by:
createRangeQueryin interfaceLuceneNumericDomain<Double>
-
createSetQuery
public org.apache.lucene.search.Query createSetQuery(String absoluteFieldPath, Collection<Double> values)
- Specified by:
createSetQueryin interfaceLuceneNumericDomain<Double>
-
sortedDocValueToTerm
public Double sortedDocValueToTerm(long longValue)
- Specified by:
sortedDocValueToTermin interfaceLuceneNumericDomain<Double>
-
createTermsFacetCounts
public org.apache.lucene.facet.Facets createTermsFacetCounts(String absoluteFieldPath, org.apache.lucene.facet.FacetsCollector facetsCollector, NestedDocsProvider nestedDocsProvider) throws IOException
- Specified by:
createTermsFacetCountsin interfaceLuceneNumericDomain<Double>- Throws:
IOException
-
createRangeFacetCounts
public org.apache.lucene.facet.Facets createRangeFacetCounts(String absoluteFieldPath, org.apache.lucene.facet.FacetsCollector facetsCollector, Collection<? extends Range<? extends Double>> ranges, NestedDocsProvider nestedDocsProvider) throws IOException
- Specified by:
createRangeFacetCountsin interfaceLuceneNumericDomain<Double>- Throws:
IOException
-
createIndexField
public org.apache.lucene.index.IndexableField createIndexField(String absoluteFieldPath, Double numericValue)
- Specified by:
createIndexFieldin interfaceLuceneNumericDomain<Double>
-
createSortedDocValuesField
public org.apache.lucene.index.IndexableField createSortedDocValuesField(String absoluteFieldPath, Double numericValue)
- Specified by:
createSortedDocValuesFieldin interfaceLuceneNumericDomain<Double>
-
createFieldComparator
public org.apache.lucene.search.FieldComparator<Double> createFieldComparator(String fieldName, int numHits, Double missingValue, boolean reversed, int sortPos, MultiValueMode multiValueMode, NestedDocsProvider nestedDocsProvider)
- Specified by:
createFieldComparatorin interfaceLuceneNumericDomain<Double>
-
-