Implemented a stub for a function converter

Committing to be able to push the changes
This commit is contained in:
Lennart Hensler committed 2014-05-08 13:29:52 +02:00
1 parent 1319bf390b
commit 02a07f0bb6
4 files changed
+103 -7

No files matched your search

@@ -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() {
}
}