forked from MarquezProject/marquez
-
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.
implement inputFacets & outputFacets (MarquezProject#2417)
Signed-off-by: Pawel Leszczynski <leszczynski.pawel@gmail.com> Signed-off-by: Xavier-Cliquennois <xavier.cliquennois@wearegraphite.io>
- Loading branch information
1 parent
0c83acd
commit df25ec7
Showing
25 changed files
with
781 additions
and
100 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
34 changes: 34 additions & 0 deletions
34
api/src/main/java/marquez/common/models/InputDatasetVersion.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,34 @@ | ||
/* | ||
* Copyright 2018-2023 contributors to the Marquez project | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package marquez.common.models; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.google.common.collect.ImmutableMap; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.NonNull; | ||
import lombok.ToString; | ||
|
||
/** | ||
* Class used to store dataset version and `inputFacets` which are assigned to datasets within | ||
* OpenLineage spec, but are exposed within Marquez api as a part of {@link | ||
* marquez.service.models.Run} | ||
*/ | ||
@EqualsAndHashCode | ||
@ToString | ||
@Getter | ||
public class InputDatasetVersion { | ||
|
||
private final DatasetVersionId datasetVersionId; | ||
private final ImmutableMap<String, Object> facets; | ||
|
||
public InputDatasetVersion( | ||
@JsonProperty("datasetVersionId") @NonNull DatasetVersionId datasetVersionId, | ||
@JsonProperty("facets") @NonNull ImmutableMap<String, Object> facets) { | ||
this.datasetVersionId = datasetVersionId; | ||
this.facets = facets; | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
api/src/main/java/marquez/common/models/OutputDatasetVersion.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,34 @@ | ||
/* | ||
* Copyright 2018-2023 contributors to the Marquez project | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package marquez.common.models; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.google.common.collect.ImmutableMap; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.NonNull; | ||
import lombok.ToString; | ||
|
||
/** | ||
* Class used to store dataset version and `outputFacets` which are assigned to datasets within | ||
* OpenLineage spec, but are exposed within Marquez api as a part of {@link | ||
* marquez.service.models.Run} | ||
*/ | ||
@EqualsAndHashCode | ||
@ToString | ||
@Getter | ||
public class OutputDatasetVersion { | ||
|
||
private final DatasetVersionId datasetVersionId; | ||
private final ImmutableMap<String, Object> facets; | ||
|
||
public OutputDatasetVersion( | ||
@JsonProperty("datasetVersionId") @NonNull DatasetVersionId datasetVersionId, | ||
@JsonProperty("facets") @NonNull ImmutableMap<String, Object> facets) { | ||
this.datasetVersionId = datasetVersionId; | ||
this.facets = facets; | ||
} | ||
} |
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
Oops, something went wrong.