-
Notifications
You must be signed in to change notification settings - Fork 29
Some minor fixes and refactoring. #126
Some minor fixes and refactoring. #126
Conversation
|
||
FunctionValueMap functionValues = null; | ||
|
||
if (typeFunctions != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Checkstyle] ERROR: Nested if-else depth is 2 (max allowed is 1).
typeFunctions.sizeOfTransformations()); | ||
|
||
//Only if we have functions, execute the following block | ||
if (!functions.isEmpty()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Checkstyle] ERROR: Nested if-else depth is 3 (max allowed is 1).
//Only if we have functions, execute the following block | ||
if (!functions.isEmpty()) { | ||
//first we do the transformations | ||
if (typeFunctions.containsTransformations()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Checkstyle] ERROR: Nested if-else depth is 4 (max allowed is 1).
for (ChronixTransformation transformation : typeFunctions.getTransformations()) { | ||
timeSeries.applyTransformation(transformation, functionValues); | ||
//then we apply aggregations | ||
if (typeFunctions.containsAggregations()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Checkstyle] ERROR: Nested if-else depth is 4 (max allowed is 1).
} | ||
} | ||
//finally the analyses | ||
if (typeFunctions.containsAnalyses()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Checkstyle] ERROR: Nested if-else depth is 4 (max allowed is 1).
// 1) the data is explicit requested as json | ||
// 2) there are aggregations / transformations | ||
// 3) there are matching analyses | ||
if (dataAsJson || hasTransformationsOrAggregations(functionValues) || hasMatchingAnalyses(functionValues) || isJoined) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Checkstyle] ERROR: Nested if-else depth is 2 (max allowed is 1).
timeSeries.applyPairAnalysis((ChronixPairAnalysis) analysis, subQueryTimeSeries, functionValues); | ||
} | ||
}); | ||
private void applyFunctions(SolrQueryRequest req, JoinFunction key, long queryStart, long queryEnd, Map.Entry<String, List<SolrDocument>> docs, ChronixType chronixType, QueryFunctions typeFunctions, FunctionValueMap functionValues, ChronixTimeSeries timeSeries) throws ParseException, IOException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Checkstyle] ERROR: More than 7 parameters (found 9).
No description provided.