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