Class AlfrescoCollatableMLTextFieldType.MLTextSortFieldComparator

  • All Implemented Interfaces:
    org.apache.lucene.search.LeafFieldComparator
    Enclosing class:
    AlfrescoCollatableMLTextFieldType

    public static final class AlfrescoCollatableMLTextFieldType.MLTextSortFieldComparator
    extends org.apache.lucene.search.FieldComparator<java.lang.String>
    implements org.apache.lucene.search.LeafFieldComparator
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.lucene.search.FieldComparator

        org.apache.lucene.search.FieldComparator.DocComparator, org.apache.lucene.search.FieldComparator.DoubleComparator, org.apache.lucene.search.FieldComparator.FloatComparator, org.apache.lucene.search.FieldComparator.IntComparator, org.apache.lucene.search.FieldComparator.LongComparator, org.apache.lucene.search.FieldComparator.NumericComparator<T extends java.lang.Number>, org.apache.lucene.search.FieldComparator.RelevanceComparator, org.apache.lucene.search.FieldComparator.TermOrdValComparator, org.apache.lucene.search.FieldComparator.TermValComparator
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(int slot1, int slot2)  
      int compareBottom​(int doc)  
      int compareTop​(int doc)  
      int compareValues​(java.lang.String val1, java.lang.String val2)  
      void copy​(int slot, int doc)  
      org.apache.lucene.search.LeafFieldComparator getLeafComparator​(org.apache.lucene.index.LeafReaderContext context)  
      void setBottom​(int bottom)  
      void setScorer​(org.apache.lucene.search.Scorer scorer)  
      void setTopValue​(java.lang.String value)  
      java.lang.String value​(int slot)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • compare

        public int compare​(int slot1,
                           int slot2)
        Specified by:
        compare in class org.apache.lucene.search.FieldComparator<java.lang.String>
      • setBottom

        public void setBottom​(int bottom)
        Specified by:
        setBottom in interface org.apache.lucene.search.LeafFieldComparator
      • compareBottom

        public int compareBottom​(int doc)
        Specified by:
        compareBottom in interface org.apache.lucene.search.LeafFieldComparator
      • copy

        public void copy​(int slot,
                         int doc)
        Specified by:
        copy in interface org.apache.lucene.search.LeafFieldComparator
      • value

        public java.lang.String value​(int slot)
        Specified by:
        value in class org.apache.lucene.search.FieldComparator<java.lang.String>
      • setTopValue

        public void setTopValue​(java.lang.String value)
        Specified by:
        setTopValue in class org.apache.lucene.search.FieldComparator<java.lang.String>
      • compareTop

        public int compareTop​(int doc)
                       throws java.io.IOException
        Specified by:
        compareTop in interface org.apache.lucene.search.LeafFieldComparator
        Throws:
        java.io.IOException
      • getLeafComparator

        public org.apache.lucene.search.LeafFieldComparator getLeafComparator​(org.apache.lucene.index.LeafReaderContext context)
                                                                       throws java.io.IOException
        Specified by:
        getLeafComparator in class org.apache.lucene.search.FieldComparator<java.lang.String>
        Throws:
        java.io.IOException
      • compareValues

        public int compareValues​(java.lang.String val1,
                                 java.lang.String val2)
        Overrides:
        compareValues in class org.apache.lucene.search.FieldComparator<java.lang.String>
      • setScorer

        public void setScorer​(org.apache.lucene.search.Scorer scorer)
        Specified by:
        setScorer in interface org.apache.lucene.search.LeafFieldComparator