com.twitter.common.text.combiner
Class StockTokenCombiner

java.lang.Object
  extended by org.apache.lucene.util.AttributeSource
      extended by com.twitter.common.text.token.TokenStream
          extended by com.twitter.common.text.token.TokenProcessor
              extended by com.twitter.common.text.combiner.ExtractorBasedTokenCombiner
                  extended by com.twitter.common.text.combiner.StockTokenCombiner

public class StockTokenCombiner
extends ExtractorBasedTokenCombiner

Combines multiple tokens denoting a stock symbol (e.g., $YHOO) back into a single token.


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
static Pattern STOCK_SYMBOL_PATTERN
           
 
Constructor Summary
StockTokenCombiner(TokenStream inputStream)
           
 
Method Summary
 
Methods inherited from class com.twitter.common.text.combiner.ExtractorBasedTokenCombiner
incrementToken, reset, setExtractor, setType
 
Methods inherited from class com.twitter.common.text.token.TokenProcessor
getInputStream, getInstanceOf
 
Methods inherited from class com.twitter.common.text.token.TokenStream
toStringList
 
Methods inherited from class org.apache.lucene.util.AttributeSource
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, restoreState, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

STOCK_SYMBOL_PATTERN

public static final Pattern STOCK_SYMBOL_PATTERN
Constructor Detail

StockTokenCombiner

public StockTokenCombiner(TokenStream inputStream)