Class PathTokenFilter

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class PathTokenFilter
    extends org.apache.lucene.analysis.Tokenizer
    Author:
    andyh TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates
    • Nested Class Summary

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

        org.apache.lucene.util.AttributeSource.State
    • Constructor Summary

      Constructors 
      Constructor Description
      PathTokenFilter​(char pathSeparator, java.lang.String separatorTokenText, java.lang.String noNsTokenText, char nsStartDelimiter, char nsEndDelimiter, boolean includeNameSpace)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void end()  
      boolean incrementToken()  
      org.apache.lucene.analysis.tokenattributes.PackedTokenAttributeImpl next()  
      void reset()  
      • Methods inherited from class org.apache.lucene.analysis.Tokenizer

        close, correctOffset, setReader
      • Methods inherited from class org.apache.lucene.util.AttributeSource

        addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, endAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, removeAllAttributes, restoreState, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • NAMESPACE_START_DELIMITER

        public static final char NAMESPACE_START_DELIMITER
        See Also:
        Constant Field Values
      • NAMESPACE_END_DELIMITER

        public static final char NAMESPACE_END_DELIMITER
        See Also:
        Constant Field Values
      • SEPARATOR_TOKEN_TEXT

        public static final java.lang.String SEPARATOR_TOKEN_TEXT
        See Also:
        Constant Field Values
      • NO_NS_TOKEN_TEXT

        public static final java.lang.String NO_NS_TOKEN_TEXT
        See Also:
        Constant Field Values
      • TOKEN_TYPE_PATH_SEP

        public static final java.lang.String TOKEN_TYPE_PATH_SEP
        See Also:
        Constant Field Values
      • TOKEN_TYPE_PATH_LENGTH

        public static final java.lang.String TOKEN_TYPE_PATH_LENGTH
        See Also:
        Constant Field Values
      • TOKEN_TYPE_PATH_ELEMENT_NAME

        public static final java.lang.String TOKEN_TYPE_PATH_ELEMENT_NAME
        See Also:
        Constant Field Values
      • TOKEN_TYPE_PATH_ELEMENT_NAMESPACE

        public static final java.lang.String TOKEN_TYPE_PATH_ELEMENT_NAMESPACE
        See Also:
        Constant Field Values
      • TOKEN_TYPE_PATH_ELEMENT_NAMESPACE_PREFIX

        public static final java.lang.String TOKEN_TYPE_PATH_ELEMENT_NAMESPACE_PREFIX
        See Also:
        Constant Field Values
    • Constructor Detail

      • PathTokenFilter

        public PathTokenFilter​(char pathSeparator,
                               java.lang.String separatorTokenText,
                               java.lang.String noNsTokenText,
                               char nsStartDelimiter,
                               char nsEndDelimiter,
                               boolean includeNameSpace)
    • Method Detail

      • next

        public org.apache.lucene.analysis.tokenattributes.PackedTokenAttributeImpl next()
                                                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • incrementToken

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

        public void reset()
                   throws java.io.IOException
        Overrides:
        reset in class org.apache.lucene.analysis.Tokenizer
        Throws:
        java.io.IOException
      • end

        public void end()
                 throws java.io.IOException
        Overrides:
        end in class org.apache.lucene.analysis.TokenStream
        Throws:
        java.io.IOException