-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#539 Spark schema generation works with record relations
Update Spark Schema MDA generation to account for relations between records. Updated the relation mda to include column and required fields. Added record relation unit tests. Spark Schema casting and to/from pojos work with records with relations. Updated documentation to account for the new relation fields. Implement validation for relations except one to M.
- Loading branch information
1 parent
23e9099
commit edd99bd
Showing
25 changed files
with
731 additions
and
24 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
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
38 changes: 38 additions & 0 deletions
38
...da/src/main/java/com/boozallen/aiops/mda/metamodel/element/spark/SparkRecordRelation.java
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,38 @@ | ||
package com.boozallen.aiops.mda.metamodel.element.spark; | ||
|
||
/*- | ||
* #%L | ||
* aiSSEMBLE::Foundation::MDA | ||
* %% | ||
* Copyright (C) 2021 Booz Allen | ||
* %% | ||
* This software package is licensed under the Booz Allen Public License. All Rights Reserved. | ||
* #L% | ||
*/ | ||
|
||
|
||
import org.apache.commons.lang3.StringUtils; | ||
|
||
import com.boozallen.aiops.mda.metamodel.element.BaseRecordRelationDecorator; | ||
import com.boozallen.aiops.mda.metamodel.element.Relation; | ||
|
||
/** | ||
* Decorates RecordField with Spark-specific functionality. | ||
*/ | ||
public class SparkRecordRelation extends BaseRecordRelationDecorator { | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
public SparkRecordRelation(Relation recordRelationToDecorate) { | ||
super(recordRelationToDecorate); | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
@Override | ||
public String getDocumentation() { | ||
return StringUtils.isNotBlank(super.getDocumentation()) ? super.getDocumentation() : ""; | ||
} | ||
} |
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
Oops, something went wrong.