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
AKeyFunctionMatch
is aMatch
which 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 class
KeyFunctionMatch.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 boolean
equals(Object obj)
Function
getFirstKeyFunction()
Function
getSecondKeyFunction()
int
hashCode()
void
init(Iterable matchCandidates)
Initialises the match and stores the match candidates.List
matching(Object testObject)
Compares a list of Objects against a test Object and returns matched Objects.void
setFirstKeyFunction(Function firstKeyFunction)
void
setSecondKeyFunction(Function secondKeyFunction)
-
-
-
Method Detail
-
init
public void init(Iterable matchCandidates)
Description copied from interface:Match
Initialises 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:Match
Compares a list of Objects against a test Object and returns matched Objects.
-
-