Package com.senzing.g2.engine.plugin
Class G2EngineContext.StringScoringContext
- java.lang.Object
-
- com.senzing.g2.engine.plugin.G2EngineContext.StringScoringContext
-
- Enclosing interface:
- G2EngineContext
public static class G2EngineContext.StringScoringContext extends Object
Context for scoring strings.
-
-
Constructor Summary
Constructors Constructor Description StringScoringContext()
Constructs the scoring context
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getElemType()
Get the element type.int
getScore()
Get the score.String
getString1()
Get the first string valueString
getString2()
Get the second string value.boolean
isString1Hashed()
Get whether the first string value is hashed.boolean
isString2Hashed()
Get whether the second string value is hashedG2EngineContext.StringScoringContext
setElemType(String elemType)
Sets the element type.G2EngineContext.StringScoringContext
setString1(String str)
Sets the first string value.G2EngineContext.StringScoringContext
setString1Hashed(boolean hashed)
Marks whether or not the first string value as hashed.G2EngineContext.StringScoringContext
setString2(String str)
Sets the second string value.G2EngineContext.StringScoringContext
setString2Hashed(boolean hashed)
Marks whether or not the second string value as hashed.
-
-
-
Method Detail
-
getString1
public String getString1()
Get the first string value- Returns:
- The first string value.
-
setString1
public G2EngineContext.StringScoringContext setString1(String str)
Sets the first string value.- Parameters:
str
- The first string value.- Returns:
- A reference to this instance.
-
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 andfalse
if not hashed.- Returns:
- A reference to this instance.
-
getString2
public String getString2()
Get the second string value.- Returns:
- The second string value.
-
setString2
public G2EngineContext.StringScoringContext setString2(String str)
Sets the second string value.- Parameters:
str
- The second string value.- Returns:
- A reference to this instance.
-
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 andfalse
if not hashed.- Returns:
- A reference to this instance.
-
getElemType
public String getElemType()
Get the element type.- Returns:
- The element type.
-
setElemType
public G2EngineContext.StringScoringContext setElemType(String elemType)
Sets the element type.- Parameters:
elemType
- The element type.- Returns:
- A reference to this instance.
-
getScore
public int getScore()
Get the score.- Returns:
- The score.
-
-