Class BoyerMooreMatcherFactory

java.lang.Object
org.aksw.commons.io.deprecated.BoyerMooreMatcherFactory
All Implemented Interfaces:
MatcherFactory

public class BoyerMooreMatcherFactory extends Object implements MatcherFactory
  • Field Details

    • isFwd

      protected boolean isFwd
    • lowerCaseMode

      protected boolean lowerCaseMode
    • pat

      protected byte[] pat
    • badCharacterTable

      protected int[] badCharacterTable
      This is the version of a character table that only tracks mismatch on the first instance of a char There is another approach which uses more memory using badCharacterTable[byteValueInText][positionOfMisMatch]
    • goodSuffixTable

      protected int[] goodSuffixTable
  • Constructor Details

    • BoyerMooreMatcherFactory

      public BoyerMooreMatcherFactory(boolean isFwd, boolean lowerCaseMode, byte[] pat, int[] badCharacter, int[] goodSuffix)
  • Method Details