org.aminds.lucene.analysis
クラス SegmentalTokenizer

java.lang.Object
  上位を拡張 org.apache.lucene.util.AttributeSource
      上位を拡張 org.apache.lucene.analysis.TokenStream
          上位を拡張 org.apache.lucene.analysis.Tokenizer
              上位を拡張 org.aminds.lucene.analysis.SegmentalTokenizer
すべての実装されたインタフェース:
Closeable

public class SegmentalTokenizer
extends Tokenizer

This tokenizer switches its behavior based on the character sequence that each sub-Reader supports, applying sub-Tokenizers to parts of the original input stream.

Note that this class is thread-unsafe because Analyzer is responsible for multi-thread support.

作成者:
Masashi Nakanishi

入れ子のクラスの概要
 
クラス org.apache.lucene.util.AttributeSource から継承された入れ子のクラス/インタフェース
AttributeSource.AttributeFactory, AttributeSource.State
 
フィールドの概要
 
クラス org.apache.lucene.analysis.Tokenizer から継承されたフィールド
input
 
コンストラクタの概要
SegmentalTokenizer(AttributeSource.AttributeFactory factory, Reader input)
           
SegmentalTokenizer(AttributeSource source, Reader input)
           
SegmentalTokenizer(Reader input)
           
 
メソッドの概要
 void close()
           
 void end()
           
 boolean incrementToken()
           
 void register(SubReader reader, Tokenizer tokenizer)
           
 void reset(Reader in)
           
 
クラス org.apache.lucene.analysis.Tokenizer から継承されたメソッド
correctOffset
 
クラス org.apache.lucene.analysis.TokenStream から継承されたメソッド
reset
 
クラス org.apache.lucene.util.AttributeSource から継承されたメソッド
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toString
 
クラス java.lang.Object から継承されたメソッド
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

SegmentalTokenizer

public SegmentalTokenizer(Reader input)

SegmentalTokenizer

public SegmentalTokenizer(AttributeSource.AttributeFactory factory,
                          Reader input)

SegmentalTokenizer

public SegmentalTokenizer(AttributeSource source,
                          Reader input)
メソッドの詳細

register

public void register(SubReader reader,
                     Tokenizer tokenizer)
パラメータ:
reader -
tokenizer -

reset

public void reset(Reader in)
           throws IOException
オーバーライド:
クラス Tokenizer 内の reset
例外:
IOException

end

public void end()
         throws IOException
オーバーライド:
クラス TokenStream 内の end
例外:
IOException

close

public void close()
           throws IOException
定義:
インタフェース Closeable 内の close
オーバーライド:
クラス Tokenizer 内の close
例外:
IOException

incrementToken

public boolean incrementToken()
                       throws IOException
定義:
クラス TokenStream 内の incrementToken
例外:
IOException


Copyright (c) 2008-2011 Masashi Nakanishi.