Class PathTokenFilter
- java.lang.Object
-
- org.apache.lucene.util.AttributeSource
-
- org.apache.lucene.analysis.TokenStream
-
- org.apache.lucene.analysis.Tokenizer
-
- org.alfresco.repo.search.impl.lucene.analysis.PathTokenFilter
-
- All Implemented Interfaces:
Closeable,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
-
-
Field Summary
Fields Modifier and Type Field Description static StringINTEGER_FORMATstatic charNAMESPACE_END_DELIMITERstatic charNAMESPACE_START_DELIMITERstatic StringNO_NS_TOKEN_TEXTstatic charPATH_SEPARATORstatic StringSEPARATOR_TOKEN_TEXTstatic StringTOKEN_TYPE_PATH_ELEMENT_NAMEstatic StringTOKEN_TYPE_PATH_ELEMENT_NAMESPACEstatic StringTOKEN_TYPE_PATH_ELEMENT_NAMESPACE_PREFIXstatic StringTOKEN_TYPE_PATH_LENGTHstatic StringTOKEN_TYPE_PATH_SEP
-
Constructor Summary
Constructors Constructor Description PathTokenFilter(char pathSeparator, String separatorTokenText, String noNsTokenText, char nsStartDelimiter, char nsEndDelimiter, boolean includeNameSpace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidend()booleanincrementToken()org.apache.lucene.analysis.tokenattributes.PackedTokenAttributeImplnext()voidreset()-
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
-
-
-
-
Field Detail
-
INTEGER_FORMAT
public static final String INTEGER_FORMAT
- See Also:
- Constant Field Values
-
PATH_SEPARATOR
public static final char PATH_SEPARATOR
- See Also:
- Constant Field Values
-
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 String SEPARATOR_TOKEN_TEXT
- See Also:
- Constant Field Values
-
NO_NS_TOKEN_TEXT
public static final String NO_NS_TOKEN_TEXT
- See Also:
- Constant Field Values
-
TOKEN_TYPE_PATH_SEP
public static final String TOKEN_TYPE_PATH_SEP
- See Also:
- Constant Field Values
-
TOKEN_TYPE_PATH_LENGTH
public static final String TOKEN_TYPE_PATH_LENGTH
- See Also:
- Constant Field Values
-
TOKEN_TYPE_PATH_ELEMENT_NAME
public static final String TOKEN_TYPE_PATH_ELEMENT_NAME
- See Also:
- Constant Field Values
-
TOKEN_TYPE_PATH_ELEMENT_NAMESPACE
public static final String TOKEN_TYPE_PATH_ELEMENT_NAMESPACE
- See Also:
- Constant Field Values
-
TOKEN_TYPE_PATH_ELEMENT_NAMESPACE_PREFIX
public static final String TOKEN_TYPE_PATH_ELEMENT_NAMESPACE_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
next
public org.apache.lucene.analysis.tokenattributes.PackedTokenAttributeImpl next() throws IOException- Throws:
IOException
-
incrementToken
public final boolean incrementToken() throws IOException- Specified by:
incrementTokenin classorg.apache.lucene.analysis.TokenStream- Throws:
IOException
-
reset
public void reset() throws IOException- Overrides:
resetin classorg.apache.lucene.analysis.Tokenizer- Throws:
IOException
-
end
public void end() throws IOException- Overrides:
endin classorg.apache.lucene.analysis.TokenStream- Throws:
IOException
-
-