org.apache.jackrabbit.core.query.lucene
Class SingletonTokenStream
java.lang.Object
org.apache.lucene.analysis.TokenStream
org.apache.jackrabbit.core.query.lucene.SingletonTokenStream
public final class SingletonTokenStream
- extends org.apache.lucene.analysis.TokenStream
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 |
org.apache.lucene.analysis.Token |
next(org.apache.lucene.analysis.Token reusableToken)
|
Methods inherited from class org.apache.lucene.analysis.TokenStream |
close, next, reset |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingletonTokenStream
public SingletonTokenStream(String value,
int type)
- Creates a new SingleTokenStream with the given value and a property
type
.
- Parameters:
value
- the string value that will be returned with the token.type
- the JCR property type.
SingletonTokenStream
public SingletonTokenStream(org.apache.lucene.analysis.Token t)
- Creates a new SingleTokenStream with the given token.
- Parameters:
t
- the token.
next
public org.apache.lucene.analysis.Token next(org.apache.lucene.analysis.Token reusableToken)
throws IOException
-
- Overrides:
next
in class org.apache.lucene.analysis.TokenStream
- Throws:
IOException
Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.