Class KeyFunctionMatch
- java.lang.Object
-
- uk.gov.gchq.gaffer.store.operation.handler.join.match.KeyFunctionMatch
-
- All Implemented Interfaces:
Match
public class KeyFunctionMatch extends Object implements Match
AKeyFunctionMatchis aMatchwhich takes two key functions which are used to extract keys from two inputs. A match occurs when the keys are equal. The first key function is applied to the Left input in a Left sided join and vice versa.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKeyFunctionMatch.Builder
-
Constructor Summary
Constructors Constructor Description KeyFunctionMatch()KeyFunctionMatch(Function firstKeyFunction, Function secondKeyFunction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)FunctiongetFirstKeyFunction()FunctiongetSecondKeyFunction()inthashCode()voidinit(Iterable matchCandidates)Initialises the match and stores the match candidates.Listmatching(Object testObject)Compares a list of Objects against a test Object and returns matched Objects.voidsetFirstKeyFunction(Function firstKeyFunction)voidsetSecondKeyFunction(Function secondKeyFunction)
-
-
-
Method Detail
-
init
public void init(Iterable matchCandidates)
Description copied from interface:MatchInitialises the match and stores the match candidates.
-
getFirstKeyFunction
public Function getFirstKeyFunction()
-
setFirstKeyFunction
public void setFirstKeyFunction(Function firstKeyFunction)
-
getSecondKeyFunction
public Function getSecondKeyFunction()
-
setSecondKeyFunction
public void setSecondKeyFunction(Function secondKeyFunction)
-
matching
public List matching(Object testObject)
Description copied from interface:MatchCompares a list of Objects against a test Object and returns matched Objects.
-
-