-
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.
- Loading branch information
1 parent
899885a
commit 6b9e4c0
Showing
8 changed files
with
59 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,5 @@ bin/ | |
|
||
### Mac OS ### | ||
.DS_Store | ||
*.csv | ||
*.csv | ||
target |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.edass.Record; | ||
|
||
import org.apache.spark.sql.Dataset; | ||
import org.apache.spark.sql.Row; | ||
|
||
public class AnalysisRecord extends EdassRecord{ | ||
private final Dataset<Row> dataFrame; | ||
private final String analysisOutput; | ||
public AnalysisRecord(String recordName, Dataset<Row> dataFrame, String analysisOutput) { | ||
super(recordName); | ||
this.dataFrame = dataFrame; | ||
this.analysisOutput = analysisOutput; | ||
} | ||
|
||
public Dataset<Row> getDataFrame() { | ||
return dataFrame; | ||
} | ||
|
||
public String getAnalysisOutput() { | ||
return analysisOutput; | ||
} | ||
} |
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,18 +1,18 @@ | ||
package com.edass.Record; | ||
|
||
|
||
|
||
/** | ||
* Represents an operation (Analysis, Transformation etc.) on EDASS which can be stored and executed at a later time | ||
*/ | ||
public class EdassRecord { | ||
private String recordName; | ||
|
||
} | ||
|
||
|
||
class AnalysisRecord extends EdassRecord{ | ||
|
||
} | ||
|
||
|
||
class TransformationRecord extends EdassRecord{ | ||
public EdassRecord(String recordName) { | ||
this.recordName = recordName; | ||
} | ||
|
||
public String getRecordName() { | ||
return recordName; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.edass.Record; | ||
|
||
public class TransformationRecord extends EdassRecord { | ||
public TransformationRecord(String recordName) { | ||
super(recordName); | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.