Class G2EngineContext.StringScoringContext

  • Enclosing interface:
    G2EngineContext

    public static class G2EngineContext.StringScoringContext
    extends Object
    Context for scoring strings.
    • Constructor Detail

      • StringScoringContext

        public StringScoringContext()
        Constructs the scoring context
    • Method Detail

      • getString1

        public String getString1()
        Get the first string value
        Returns:
        The first string value.
      • isString1Hashed

        public boolean isString1Hashed()
        Get whether the first string value is hashed.
        Returns:
        Boolean flag indicating if the first string value is hashed
      • setString1Hashed

        public G2EngineContext.StringScoringContext setString1Hashed​(boolean hashed)
        Marks whether or not the first string value as hashed.
        Parameters:
        hashed - true if the first string is hashed and false if not hashed.
        Returns:
        A reference to this instance.
      • getString2

        public String getString2()
        Get the second string value.
        Returns:
        The second string value.
      • isString2Hashed

        public boolean isString2Hashed()
        Get whether the second string value is hashed
        Returns:
        Boolean flag indicating if the second string value is hashed
      • setString2Hashed

        public G2EngineContext.StringScoringContext setString2Hashed​(boolean hashed)
        Marks whether or not the second string value as hashed.
        Parameters:
        hashed - true if the first string is hashed and false if not hashed.
        Returns:
        A reference to this instance.
      • getElemType

        public String getElemType()
        Get the element type.
        Returns:
        The element type.
      • getScore

        public int getScore()
        Get the score.
        Returns:
        The score.