org.apache.lucene.analysis.el
public final class: GreekLowerCaseFilter [javadoc |
source]
java.lang.Object
org.apache.lucene.util.AttributeSource
org.apache.lucene.analysis.TokenStream
org.apache.lucene.analysis.TokenFilter
org.apache.lucene.analysis.el.GreekLowerCaseFilter
All Implemented Interfaces:
Closeable
Normalizes token text to lower case, removes some Greek diacritics,
and standardizes final sigma to sigma.
| Method from org.apache.lucene.analysis.el.GreekLowerCaseFilter Summary: |
|---|
|
incrementToken |
| Methods from org.apache.lucene.analysis.TokenFilter: |
|---|
|
close, end, reset |
| Methods from org.apache.lucene.util.AttributeSource: |
|---|
|
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, restoreState, toString |
| Methods from java.lang.Object: |
|---|
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.apache.lucene.analysis.el.GreekLowerCaseFilter Detail: |
public boolean incrementToken() throws IOException {
if (input.incrementToken()) {
char[] chArray = termAtt.termBuffer();
int chLen = termAtt.termLength();
// TODO: iterate codepoints to support supp. characters
for (int i = 0; i < chLen; i++)
{
chArray[i] = (char) lowerCase(chArray[i]);
}
return true;
} else {
return false;
}
}
|