Package org.aksw.commons.io.deprecated
Class BoyerMooreMatcherFactory
java.lang.Object
org.aksw.commons.io.deprecated.BoyerMooreMatcherFactory
- All Implemented Interfaces:
MatcherFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int[]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]protected int[]protected booleanprotected booleanprotected byte[] -
Constructor Summary
ConstructorsConstructorDescriptionBoyerMooreMatcherFactory(boolean isFwd, boolean lowerCaseMode, byte[] pat, int[] badCharacter, int[] goodSuffix) -
Method Summary
Modifier and TypeMethodDescriptionstatic BoyerMooreMatcherFactorycreateBwd(byte[] pat) static BoyerMooreMatcherFactorycreateBwd(byte[] rawPat, boolean lowerCaseMode) static BoyerMooreMatcherFactorycreateFwd(byte[] pat) static BoyerMooreMatcherFactorycreateFwd(byte[] pat, boolean lowerCaseMode)
-
Field Details
-
isFwd
protected boolean isFwd -
lowerCaseMode
protected boolean lowerCaseMode -
pat
protected byte[] pat -
badCharacterTable
protected int[] badCharacterTableThis 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
-
createFwd
-
createFwd
-
createBwd
-
createBwd
-
newMatcher
- Specified by:
newMatcherin interfaceMatcherFactory
-