org.apache.mahout.classifier.bayes.mapreduce.common
Class BayesFeatureMapper.IteratorTokenStream

java.lang.Object
  extended by org.apache.lucene.util.AttributeSource
      extended by org.apache.lucene.analysis.TokenStream
          extended by org.apache.mahout.classifier.bayes.mapreduce.common.BayesFeatureMapper.IteratorTokenStream
Enclosing class:
BayesFeatureMapper

public static class BayesFeatureMapper.IteratorTokenStream
extends org.apache.lucene.analysis.TokenStream

Used to emit tokens from an input string array in the style of TokenStream


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
BayesFeatureMapper.IteratorTokenStream(java.util.Iterator<java.lang.String> iterator)
           
 
Method Summary
 boolean incrementToken()
           
 
Methods inherited from class org.apache.lucene.analysis.TokenStream
close, end, getOnlyUseNewAPI, next, next, reset, 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

BayesFeatureMapper.IteratorTokenStream

public BayesFeatureMapper.IteratorTokenStream(java.util.Iterator<java.lang.String> iterator)
Method Detail

incrementToken

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


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