Class RegexBytesRefFilter

  • All Implemented Interfaces:
    Predicate<org.apache.lucene.util.BytesRef>

    public class RegexBytesRefFilter
    extends Object
    implements Predicate<org.apache.lucene.util.BytesRef>
    An implementation of Predicate which returns true if the BytesRef matches the supplied regular expression.
    • Constructor Detail

      • RegexBytesRefFilter

        public RegexBytesRefFilter​(String regex)
    • Method Detail

      • includeString

        protected boolean includeString​(String term)
      • test

        public boolean test​(org.apache.lucene.util.BytesRef term)
        Specified by:
        test in interface Predicate<org.apache.lucene.util.BytesRef>