com.browseengine.bobo.analysis.section
Class IntMetaDataTokenStream

java.lang.Object
  extended by org.apache.lucene.util.AttributeSource
      extended by org.apache.lucene.analysis.TokenStream
          extended by com.browseengine.bobo.analysis.section.IntMetaDataTokenStream
All Implemented Interfaces:
Closeable

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

TokenStream for the section meta data. This returns a single token with a payload.


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
IntMetaDataTokenStream(String tokenText)
           
 
Method Summary
 boolean incrementToken()
          Return the single token created.
 void setMetaData(int[] data)
          sets meta data
 
Methods inherited from class org.apache.lucene.analysis.TokenStream
close, end, reset
 
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

IntMetaDataTokenStream

public IntMetaDataTokenStream(String tokenText)
Method Detail

setMetaData

public void setMetaData(int[] data)
sets meta data

Parameters:
data - array of integer metadata indexed by section id

incrementToken

public boolean incrementToken()
                       throws IOException
Return the single token created.

Specified by:
incrementToken in class org.apache.lucene.analysis.TokenStream
Throws:
IOException


Copyright © 2011. All Rights Reserved.