|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.util.AttributeSource
org.apache.lucene.analysis.TokenStream
org.apache.lucene.analysis.Tokenizer
org.apache.lucene.analysis.util.CharTokenizer
com.bericotech.clavin.index.WhitespaceLowerCaseTokenizer
public class WhitespaceLowerCaseTokenizer
LowerCaseTokenizer performs the function of WhitespaceTokenizer and LowerCaseFilter together. It divides text at whitespace and converts them to lower case. While it is functionally equivalent to a combination of WhitespaceTokenizer and LowerCaseFilter, there is a performance advantage to doing the two tasks at once, hence this (redundant) implementation.
| 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.Tokenizer |
|---|
input |
| Constructor Summary | |
|---|---|
WhitespaceLowerCaseTokenizer(org.apache.lucene.util.Version matchVersion,
Reader in)
Call the "super" constructor. |
|
| Method Summary | |
|---|---|
protected boolean |
isTokenChar(int c)
Collects only characters which do not satisfy Character.isWhitespace(int). |
protected int |
normalize(int c)
Converts char to lower case Character.toLowerCase(int). |
| Methods inherited from class org.apache.lucene.analysis.util.CharTokenizer |
|---|
end, incrementToken, 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, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WhitespaceLowerCaseTokenizer(org.apache.lucene.util.Version matchVersion,
Reader in)
matchVersion - e.g., Version.LUCENE_40in - | Method Detail |
|---|
protected boolean isTokenChar(int c)
Character.isWhitespace(int).
isTokenChar in class org.apache.lucene.analysis.util.CharTokenizerc - char being processedprotected int normalize(int c)
Character.toLowerCase(int).
normalize in class org.apache.lucene.analysis.util.CharTokenizerc - char being processed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||