-
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.
Add pre-processing capabilities (#18)
* Add pre-processing capabilities * Use Completable for preprocessing, since it is easier to skip when no transformations are necessary.
- Loading branch information
1 parent
6839d6d
commit d9e329b
Showing
8 changed files
with
78 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
package no.ssb.dlp.pseudo.core; | ||
|
||
import io.reactivex.Completable; | ||
import io.reactivex.Flowable; | ||
import no.ssb.dlp.pseudo.core.map.RecordMapSerializer; | ||
|
||
import java.io.InputStream; | ||
import java.util.Map; | ||
|
||
public interface StreamProcessor { | ||
<T> Completable init(InputStream is, RecordMapSerializer<T> serializer); | ||
<T> Flowable<T> process(InputStream is, RecordMapSerializer<T> serializer); | ||
@FunctionalInterface | ||
public interface ItemProcessor { | ||
Map<String, Object> process(Map<String, Object> r); | ||
} | ||
} |
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
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