forked from datahub-project/datahub
-
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.
feat(platform): timeseries - Server & Client side changes to support …
…timeseries aspect deletion & rollback. (datahub-project#4756)
- Loading branch information
Showing
26 changed files
with
1,101 additions
and
86 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
23 changes: 23 additions & 0 deletions
23
entity-registry/src/main/java/com/linkedin/metadata/models/EntitySpecUtils.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,23 @@ | ||
package com.linkedin.metadata.models; | ||
|
||
import com.linkedin.metadata.models.registry.EntityRegistry; | ||
import java.util.List; | ||
import java.util.stream.Collectors; | ||
import javax.annotation.Nonnull; | ||
|
||
|
||
public class EntitySpecUtils { | ||
private EntitySpecUtils() { | ||
} | ||
|
||
public static List<String> getEntityTimeseriesAspectNames(@Nonnull EntityRegistry entityRegistry, | ||
@Nonnull String entityName) { | ||
final EntitySpec entitySpec = entityRegistry.getEntitySpec(entityName); | ||
final List<String> timeseriesAspectNames = entitySpec.getAspectSpecs() | ||
.stream() | ||
.filter(x -> x.isTimeseries()) | ||
.map(x -> x.getName()) | ||
.collect(Collectors.toList()); | ||
return timeseriesAspectNames; | ||
} | ||
} |
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.