Class BinaryNameMatcher

All Implemented Interfaces:
Serializable

public final class BinaryNameMatcher extends HashedMatcherBase implements Serializable
Simplified static symbol table used instead of global quad-based canonicalizer when we have smaller set of symbols (like properties of a POJO class).
Since:
3.0
See Also:
  • Field Details

  • Method Details

    • constructFrom

      public static BinaryNameMatcher constructFrom(List<Named> propertyNames, boolean alreadyInterned)
    • construct

      public static BinaryNameMatcher construct(List<String> symbols)
    • constructCaseInsensitive

      public static BinaryNameMatcher constructCaseInsensitive(Locale locale, List<Named> propertyNames, boolean alreadyInterned)
    • addName

      public int addName(String name)
    • size

      public int size()
    • bucketCount

      public int bucketCount()
    • primaryQuadCount

      public int primaryQuadCount()
    • secondaryQuadCount

      public int secondaryQuadCount()
    • tertiaryQuadCount

      public int tertiaryQuadCount()
    • spilloverQuadCount

      public int spilloverQuadCount()
    • totalCount

      public int totalCount()
    • matchByQuad

      public int matchByQuad(int q1)
      Specified by:
      matchByQuad in class PropertyNameMatcher
    • matchByQuad

      public int matchByQuad(int q1, int q2)
      Specified by:
      matchByQuad in class PropertyNameMatcher
    • matchByQuad

      public int matchByQuad(int q1, int q2, int q3)
      Specified by:
      matchByQuad in class PropertyNameMatcher
    • matchByQuad

      public int matchByQuad(int[] q, int qlen)
      Specified by:
      matchByQuad in class PropertyNameMatcher
    • calcHash

      public int calcHash(int q1)
    • calcHash

      public int calcHash(int q1, int q2)
    • calcHash

      public int calcHash(int q1, int q2, int q3)
    • calcHash

      public int calcHash(int[] q, int qlen)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • _quads

      public static int[] _quads(String name)