This repository has been archived by the owner on Feb 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#102 improved error handling, ignore input files not found or empty
- Loading branch information
Showing
3 changed files
with
20 additions
and
4 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 |
---|---|---|
|
@@ -8,16 +8,20 @@ import org.dukecon.adapter.ResourceWrapper | |
* | ||
* @author Falk Sippach, [email protected], @sippsack | ||
*/ | ||
interface RawDataMapper { | ||
trait RawDataMapper { | ||
|
||
void initMapper() | ||
abstract void initMapper() | ||
|
||
void useBackup(ResourceWrapper resourceWrapper) | ||
abstract void useBackup(ResourceWrapper resourceWrapper) | ||
|
||
/** | ||
* Concrete subclasses implements this method and return input data as map converted from input resources (JSON, CSV, ...) | ||
* | ||
* @return raw data from input resources as Map | ||
*/ | ||
Map<String, Object> asMap() | ||
abstract Map<String, Object> asMap() | ||
|
||
boolean isEmpty() { | ||
false | ||
} | ||
} |
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