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