Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Some minor fixes and refactoring. #126

Merged
merged 6 commits into from
Mar 13, 2017
Merged

Some minor fixes and refactoring. #126

merged 6 commits into from
Mar 13, 2017

Conversation

FlorianLautenschlager
Copy link
Member

No description provided.


FunctionValueMap functionValues = null;

if (typeFunctions != null) {
Copy link
Collaborator

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()) {
Copy link
Collaborator

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()) {
Copy link
Collaborator

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()) {
Copy link
Collaborator

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()) {
Copy link
Collaborator

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) {
Copy link
Collaborator

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 {
Copy link
Collaborator

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).

@coveralls
Copy link

Coverage Status

Coverage remained the same at 88.87% when pulling d04ad79 on FlorianLautenschlager:master into c87333a on ChronixDB:master.

3 similar comments
@coveralls
Copy link

Coverage Status

Coverage remained the same at 88.87% when pulling d04ad79 on FlorianLautenschlager:master into c87333a on ChronixDB:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 88.87% when pulling d04ad79 on FlorianLautenschlager:master into c87333a on ChronixDB:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 88.87% when pulling d04ad79 on FlorianLautenschlager:master into c87333a on ChronixDB:master.

@FlorianLautenschlager FlorianLautenschlager merged commit 52e954c into ChronixDB:master Mar 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants