Class AlphanumericLengthFilter

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

public final class AlphanumericLengthFilter extends org.apache.lucene.analysis.FilteringTokenFilter
A Length Filter which ignores non-alphanumeric types.
  • Nested Class Summary

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

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

    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
    AlphanumericLengthFilter(org.apache.lucene.analysis.TokenStream in, int minAlphanumLength, int maxAlphanumLength)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
     
    boolean
     
    int
     

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

    end, incrementToken, reset

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

    close

    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
  • Constructor Details

    • AlphanumericLengthFilter

      public AlphanumericLengthFilter(org.apache.lucene.analysis.TokenStream in, int minAlphanumLength, int maxAlphanumLength)
  • Method Details

    • accept

      protected boolean accept()
      Specified by:
      accept in class org.apache.lucene.analysis.FilteringTokenFilter
    • 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