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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.util.AttributeSource
org.apache.lucene.util.AttributeSource.State -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final charstatic final charstatic final Stringstatic final charstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.apache.lucene.analysis.Tokenizer
inputFields inherited from class org.apache.lucene.analysis.TokenStream
DEFAULT_TOKEN_ATTRIBUTE_FACTORY -
Constructor Summary
ConstructorsConstructorDescriptionPathTokenFilter(char pathSeparator, String separatorTokenText, String noNsTokenText, char nsStartDelimiter, char nsEndDelimiter, boolean includeNameSpace) -
Method Summary
Methods inherited from class org.apache.lucene.analysis.Tokenizer
close, correctOffset, setReaderMethods 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 Details
-
INTEGER_FORMAT
- See Also:
-
PATH_SEPARATOR
public static final char PATH_SEPARATOR- See Also:
-
NAMESPACE_START_DELIMITER
public static final char NAMESPACE_START_DELIMITER- See Also:
-
NAMESPACE_END_DELIMITER
public static final char NAMESPACE_END_DELIMITER- See Also:
-
SEPARATOR_TOKEN_TEXT
- See Also:
-
NO_NS_TOKEN_TEXT
- See Also:
-
TOKEN_TYPE_PATH_SEP
- See Also:
-
TOKEN_TYPE_PATH_LENGTH
- See Also:
-
TOKEN_TYPE_PATH_ELEMENT_NAME
- See Also:
-
TOKEN_TYPE_PATH_ELEMENT_NAMESPACE
- See Also:
-
TOKEN_TYPE_PATH_ELEMENT_NAMESPACE_PREFIX
- See Also:
-
-
Constructor Details
-
PathTokenFilter
-
-
Method Details
-
next
public org.apache.lucene.analysis.tokenattributes.PackedTokenAttributeImpl next() throws IOException- Throws:
IOException
-
incrementToken
- Specified by:
incrementTokenin classorg.apache.lucene.analysis.TokenStream- Throws:
IOException
-
reset
- Overrides:
resetin classorg.apache.lucene.analysis.Tokenizer- Throws:
IOException
-
end
- Overrides:
endin classorg.apache.lucene.analysis.TokenStream- Throws:
IOException
-