mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-14 05:43:51 +00:00
(improvement)(Headless) remove queryType in dataSet (#830)
This commit is contained in:
@@ -20,12 +20,9 @@ public class DataSetModelConfig {
|
||||
|
||||
private List<Long> dimensions = Lists.newArrayList();
|
||||
|
||||
private List<Long> tagIds = Lists.newArrayList();
|
||||
|
||||
public DataSetModelConfig(Long id, List<Long> dimensions, List<Long> metrics, List<Long> tagIds) {
|
||||
public DataSetModelConfig(Long id, List<Long> dimensions, List<Long> metrics) {
|
||||
this.id = id;
|
||||
this.metrics = metrics;
|
||||
this.dimensions = dimensions;
|
||||
this.tagIds = tagIds;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,11 +47,6 @@ public class DataSetResp extends SchemaItem {
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
|
||||
public List<Long> getAllTags() {
|
||||
return getDataSetModelConfigs().stream().map(DataSetModelConfig::getTagIds)
|
||||
.flatMap(Collection::stream).collect(Collectors.toList());
|
||||
}
|
||||
|
||||
public List<Long> getAllIncludeAllModels() {
|
||||
return getDataSetModelConfigs().stream().filter(DataSetModelConfig::isIncludesAll)
|
||||
.map(DataSetModelConfig::getId)
|
||||
|
||||
Reference in New Issue
Block a user