|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.analysis.TokenStream
org.apache.jackrabbit.core.query.lucene.SingletonTokenStream
public final class SingletonTokenStream
SingletonTokenStream
implements a token stream that wraps a
single value with a given property type. The property type is stored as a
payload on the single returned token.
Constructor Summary | |
---|---|
SingletonTokenStream(String value,
int type)
Creates a new SingleTokenStream with the given value and a property type . |
|
SingletonTokenStream(org.apache.lucene.analysis.Token t)
Creates a new SingleTokenStream with the given token. |
Method Summary | |
---|---|
void |
close()
|
org.apache.lucene.analysis.Token |
next(org.apache.lucene.analysis.Token reusableToken)
|
void |
reset()
|
Methods inherited from class org.apache.lucene.analysis.TokenStream |
---|
next |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SingletonTokenStream(String value, int type)
type
.
value
- the string value that will be returned with the token.type
- the JCR property type.public SingletonTokenStream(org.apache.lucene.analysis.Token t)
t
- the token.Method Detail |
---|
public org.apache.lucene.analysis.Token next(org.apache.lucene.analysis.Token reusableToken) throws IOException
next
in class org.apache.lucene.analysis.TokenStream
IOException
public void reset() throws IOException
reset
in class org.apache.lucene.analysis.TokenStream
IOException
public void close() throws IOException
close
in class org.apache.lucene.analysis.TokenStream
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |