org.apache.solr.analysis

Class ReversedWildcardFilter

    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.lucene.util.AttributeSource

        org.apache.lucene.util.AttributeSource.AttributeFactory, org.apache.lucene.util.AttributeSource.State
    • Field Summary

      • Fields inherited from class org.apache.lucene.analysis.TokenFilter

        input
    • Constructor Summary

      Constructors 
      Modifier Constructor and Description
      protected ReversedWildcardFilter(org.apache.lucene.analysis.TokenStream input, boolean withOriginal, char markerChar) 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      boolean incrementToken() 
      static void reverse(char[] buffer, int start, int len)
      Partially reverses the given input buffer in-place from the given offset up to the given length, keeping surrogate pairs in the correct (non-reversed) order.
      • Methods inherited from class org.apache.lucene.analysis.TokenFilter

        close, end, reset
      • Methods inherited from class org.apache.lucene.util.AttributeSource

        addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toString
    • Constructor Detail

      • ReversedWildcardFilter

        protected ReversedWildcardFilter(org.apache.lucene.analysis.TokenStream input,
                              boolean withOriginal,
                              char markerChar)
    • Method Detail

      • incrementToken

        public boolean incrementToken()
                               throws IOException
        Specified by:
        incrementToken in class org.apache.lucene.analysis.TokenStream
        Throws:
        IOException
      • reverse

        public static void reverse(char[] buffer,
                   int start,
                   int len)
        Partially reverses the given input buffer in-place from the given offset up to the given length, keeping surrogate pairs in the correct (non-reversed) order.
        Parameters:
        buffer - the input char array to reverse
        start - the offset from where to reverse the buffer
        len - the length in the buffer up to where the buffer should be reversed