-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite Mapper interface som that the Mapper can populate values in P…
…seudoFuncOutput. Simplified MapFunc to delegate most of the work to the Mapper.
- Loading branch information
Skaar, Bjørn-Andre
committed
Dec 11, 2023
1 parent
938a059
commit 769ee1c
Showing
4 changed files
with
27 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
package no.ssb.dapla.dlp.pseudo.func.map; | ||
|
||
import no.ssb.dapla.dlp.pseudo.func.PseudoFuncInput; | ||
import no.ssb.dapla.dlp.pseudo.func.PseudoFuncOutput; | ||
|
||
import java.util.Map; | ||
|
||
public interface Mapper { | ||
|
||
void init(Object data); | ||
void init(PseudoFuncInput data); | ||
void setConfig(Map<String, Object> config); | ||
Object map(Object data); | ||
PseudoFuncOutput map(PseudoFuncInput data); | ||
|
||
Object restore(Object mapped); | ||
PseudoFuncOutput restore(PseudoFuncInput mapped); | ||
|
||
} |