org.apache.uima.lucas.indexer.analysis
Class TokenStreamMerger

java.lang.Object
  extended by org.apache.lucene.util.AttributeSource
      extended by org.apache.lucene.analysis.TokenStream
          extended by org.apache.uima.lucas.indexer.analysis.TokenStreamMerger

public class TokenStreamMerger
extends org.apache.lucene.analysis.TokenStream

A TokenStreamMerger merges a list of token streams by the means of their token offsets. Adapts positionIncrement of tokens if their startOffset is exactly the same.


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
 
Constructor Summary
TokenStreamMerger(Collection<org.apache.lucene.analysis.TokenStream> streams)
           
 
Method Summary
 boolean incrementToken()
           
 void reset()
           
 
Methods inherited from class org.apache.lucene.analysis.TokenStream
close, end, getOnlyUseNewAPI, next, next, setOnlyUseNewAPI
 
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
 

Constructor Detail

TokenStreamMerger

public TokenStreamMerger(Collection<org.apache.lucene.analysis.TokenStream> streams)
                  throws IOException
Throws:
IOException
Method Detail

reset

public void reset()
           throws IOException
Overrides:
reset in class org.apache.lucene.analysis.TokenStream
Throws:
IOException

incrementToken

public boolean incrementToken()
                       throws IOException
Overrides:
incrementToken in class org.apache.lucene.analysis.TokenStream
Throws:
IOException


Copyright © 2006-2011 The Apache Software Foundation. All Rights Reserved.