Class SingletonTokenStream

  extended by org.apache.lucene.analysis.TokenStream
      extended by 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.
Method Summary
 org.apache.lucene.analysis.Token next()
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

Constructor Detail


public SingletonTokenStream(String value,
                            int type)
Creates a new SingleTokenStream with the given value and a property type.

value - the string value that will be returned with the token.
type - the JCR property type.
Method Detail


public org.apache.lucene.analysis.Token next()

next in class org.apache.lucene.analysis.TokenStream

Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.