JOIN_KEY
- type of the join keyINPUT_RECORD
- type of input records to be joinedOUT
- type of output object@Beta public interface Joiner<JOIN_KEY,INPUT_RECORD,OUT>
Modifier and Type | Method and Description |
---|---|
JoinConfig |
getJoinConfig()
Creates join configuration which holds information about required inputs which are needed to decide
type of the join and produce join result.
|
JOIN_KEY |
joinOn(String stageName,
INPUT_RECORD inputRecord)
Return value for the join key on which join will be performed
|
OUT |
merge(JOIN_KEY joinKey,
Iterable<JoinElement<INPUT_RECORD>> joinResult)
Merges records present in joinResult and returns merged output.
|
JOIN_KEY joinOn(String stageName, INPUT_RECORD inputRecord) throws Exception
stageName
- name of the stage to which records belongs toinputRecord
- input record to be joinedException
- if there is some error getting the join keyJoinConfig getJoinConfig() throws Exception
JoinConfig
which includes information about join to be performedException
- if there is some error getting the join configOUT merge(JOIN_KEY joinKey, Iterable<JoinElement<INPUT_RECORD>> joinResult) throws Exception
joinKey
- join key on which join needs to be performedjoinResult
- list of JoinElement
which will be used to create merged output. It will have all the
records after performing join operationException
- if there is some error while creating merged outputCopyright © 2020 Cask Data, Inc. Licensed under the Apache License, Version 2.0.