mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-28 23:07:11 +00:00
Implemented a stub for a function converter
Committing to be able to push the changes
This commit is contained in:
1 parent
1319bf390b
commit
02a07f0bb6
4 files changed
+103
-7
No files matched your search
-43
@@ -1,43 +0,0 @@
|
||||
package com.sap.sailing.datamining.shared;
|
||||
|
||||
import java.util.Map.Entry;
|
||||
|
||||
import com.sap.sailing.datamining.shared.impl.QueryDefinitionImpl;
|
||||
import com.sap.sse.datamining.shared.dto.FunctionDTO;
|
||||
|
||||
public class QueryDefinitionConverter {
|
||||
|
||||
public static QueryDefinition convertDeprecatedQueryDefinition(QueryDefinitionDeprecated queryDefinitionDeprecated) {
|
||||
//TODO implement the statistic type to function conversion
|
||||
QueryDefinitionImpl queryDefinition = new QueryDefinitionImpl(queryDefinitionDeprecated.getLocaleInfoName(),
|
||||
convertToFunctionDTO(queryDefinitionDeprecated.getStatisticType()), queryDefinitionDeprecated.getAggregatorType());
|
||||
|
||||
for (Entry<DimensionIdentifier, Iterable<?>> filterSelectionEntry : queryDefinitionDeprecated.getSelection().entrySet()) {
|
||||
//TODO implement the dimension identifier to function conversion
|
||||
queryDefinition.setFilterSelectionFor(convertToFunctionDTO(filterSelectionEntry.getKey()),
|
||||
filterSelectionEntry.getValue());
|
||||
}
|
||||
|
||||
for (DimensionIdentifier dimensionIdentifier : queryDefinitionDeprecated.getDimensionsToGroupBy()) {
|
||||
queryDefinition.appenDimensionToGroupBy(convertToFunctionDTO(dimensionIdentifier));
|
||||
}
|
||||
|
||||
return queryDefinition;
|
||||
}
|
||||
|
||||
private static FunctionDTO convertToFunctionDTO(StatisticType statisticType) {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Not yet implemented");
|
||||
// return null;
|
||||
}
|
||||
|
||||
private static FunctionDTO convertToFunctionDTO(DimensionIdentifier dimensionIdentifier) {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Not yet implemented");
|
||||
// return null;
|
||||
}
|
||||
|
||||
private QueryDefinitionConverter() {
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user