Class CjkUnigramFilter

java.lang.Object
org.apache.lucene.util.AttributeSource
org.apache.lucene.analysis.TokenStream
org.apache.lucene.analysis.TokenFilter
com.apple.foundationdb.record.lucene.filter.CjkUnigramFilter
All Implemented Interfaces:
Closeable, AutoCloseable

public final class CjkUnigramFilter extends org.apache.lucene.analysis.TokenFilter
An analyzer that forms unigrams of CJK terms. NOTICE: This analyzer contains code that was taken from CJKBigramFilter and modified
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.lucene.util.AttributeSource

    org.apache.lucene.util.AttributeSource.State
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class org.apache.lucene.analysis.TokenFilter

    input

    Fields inherited from class org.apache.lucene.analysis.TokenStream

    DEFAULT_TOKEN_ATTRIBUTE_FACTORY
  • Constructor Summary

    Constructors
    Constructor
    Description
    CjkUnigramFilter(org.apache.lucene.analysis.TokenStream in)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
    boolean
     
    void
     

    Methods inherited from class org.apache.lucene.analysis.TokenFilter

    close, end

    Methods inherited from class org.apache.lucene.util.AttributeSource

    addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, endAttributes, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, reflectAsString, reflectWith, removeAllAttributes, restoreState, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • CjkUnigramFilter

      public CjkUnigramFilter(org.apache.lucene.analysis.TokenStream in)
  • Method Details

    • incrementToken

      public boolean incrementToken() throws IOException
      Specified by:
      incrementToken in class org.apache.lucene.analysis.TokenStream
      Throws:
      IOException
    • reset

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

      public boolean equals(Object o)
      Overrides:
      equals in class org.apache.lucene.util.AttributeSource
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class org.apache.lucene.util.AttributeSource