-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Java client method for dataset/job lineage
Signed-off-by: David Goss <david.goss@matillion.com>
- Loading branch information
1 parent
6003af6
commit 51a4055
Showing
12 changed files
with
299 additions
and
16 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
34 changes: 34 additions & 0 deletions
34
clients/java/src/main/java/marquez/client/models/DatasetNodeData.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.client.models; | ||
|
||
import java.time.Instant; | ||
import java.util.List; | ||
import java.util.Set; | ||
import javax.annotation.Nullable; | ||
import lombok.AllArgsConstructor; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.NonNull; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
@EqualsAndHashCode | ||
public class DatasetNodeData implements NodeData { | ||
@NonNull private final DatasetId id; | ||
@NonNull private final DatasetType type; | ||
@NonNull private final String name; | ||
@NonNull private final String physicalName; | ||
@NonNull private final Instant createdAt; | ||
@NonNull private final Instant updatedAt; | ||
@NonNull private final String namespace; | ||
@NonNull private final String sourceName; | ||
@NonNull private final List<Field> fields; | ||
@NonNull private final Set<String> tags; | ||
@Nullable private final Instant lastModifiedAt; | ||
@Nullable private final String description; | ||
@Nullable private final String lastLifecycleState; | ||
} |
34 changes: 34 additions & 0 deletions
34
clients/java/src/main/java/marquez/client/models/JobNodeData.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.client.models; | ||
|
||
import java.net.URL; | ||
import java.time.Instant; | ||
import java.util.Set; | ||
import javax.annotation.Nullable; | ||
import lombok.AllArgsConstructor; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.NonNull; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
@EqualsAndHashCode | ||
public class JobNodeData implements NodeData { | ||
@NonNull private final JobId id; | ||
@NonNull private final JobType type; | ||
@NonNull private final String name; | ||
@NonNull private final String simpleName; | ||
@Nullable private final String parentJobName; | ||
@NonNull private final Instant createdAt; | ||
@NonNull private final Instant updatedAt; | ||
@NonNull private final String namespace; | ||
@NonNull private final Set<DatasetId> inputs; | ||
@NonNull private final Set<DatasetId> outputs; | ||
@Nullable private final URL location; | ||
@Nullable private final String description; | ||
@Nullable private final Run latestRun; | ||
} |
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.