Class MatchFilter


  • public class MatchFilter
    extends java.lang.Object
    The Class MatchFilter.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.util.Set<java.lang.String> tagFilter
      The tag filter.
    • Constructor Summary

      Constructors 
      Constructor Description
      MatchFilter()
      free-form filter
      MatchFilter​(java.lang.String stopfile)
      Instantiates a new match filter.
      MatchFilter​(java.net.URL stopfile)  
    • Method Summary

      Modifier and Type Method Description
      boolean filterOut​(java.lang.String value)
      If value is in stop list, then filter it out.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • tagFilter

        public java.util.Set<java.lang.String> tagFilter
        The tag filter.
    • Constructor Detail

      • MatchFilter

        public MatchFilter()
        free-form filter
      • MatchFilter

        public MatchFilter​(java.lang.String stopfile)
                    throws java.io.IOException
        Instantiates a new match filter.
        Parameters:
        stopfile - path to stopfile resource as it appears in CLASSPATH
        Throws:
        java.io.IOException - Signals that an I/O exception has occurred.
      • MatchFilter

        public MatchFilter​(java.net.URL stopfile)
                    throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • filterOut

        public boolean filterOut​(java.lang.String value)
        If value is in stop list, then filter it out.
        Parameters:
        value - the value
        Returns:
        true, if successful. True if the value is null