Skip to content

Commit 82fdbed

Browse files
committed
counter reset secured
Variable renamed more clearly
1 parent 6d0257d commit 82fdbed

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.classpath

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,18 @@
2323
<attribute name="maven.pomderived" value="true"/>
2424
</attributes>
2525
</classpathentry>
26+
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
27+
<attributes>
28+
<attribute name="maven.pomderived" value="true"/>
29+
<attribute name="optional" value="true"/>
30+
</attributes>
31+
</classpathentry>
32+
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
33+
<attributes>
34+
<attribute name="maven.pomderived" value="true"/>
35+
<attribute name="test" value="true"/>
36+
<attribute name="optional" value="true"/>
37+
</attributes>
38+
</classpathentry>
2639
<classpathentry kind="output" path="target/classes"/>
2740
</classpath>

src/main/java/de/jlo/talendcomp/google/analytics/ga4/v1/GoogleAnalyticsInput.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,8 @@ private void doExecute() throws Exception {
291291
}
292292
lastFetchedRowCount = lastResultSet.size();
293293
currentPlainRowIndex = 0;
294+
maxCountNormalizedValues = 0;
295+
currentNormalizedValueIndex = 0;
294296
}
295297

296298
/**
@@ -441,7 +443,7 @@ private List<DimensionValue> buildDimensionValues(List<String> oneRow) {
441443
return oneRowDimensionValues;
442444
}
443445

444-
private List<MetricValue> buildMetricValues(List<String> oneRow) {
446+
private List<MetricValue> buildMetricValues(List<String> onePlainRow) {
445447
int index = 0;
446448
final List<MetricValue> oneRowMetricValues = new ArrayList<MetricValue>();
447449
for (; index < listMetrics.size(); index++) {
@@ -453,7 +455,7 @@ private List<MetricValue> buildMetricValues(List<String> oneRow) {
453455
}
454456
mv.rowNum = currentOverallPlainRowCount;
455457
int countDimensions = listDimensions.size();
456-
String valueStr = oneRow.get(index + countDimensions);
458+
String valueStr = onePlainRow.get(index + countDimensions);
457459
try {
458460
mv.value = Util.convertToDouble(valueStr, Locale.ENGLISH.toString());
459461
oneRowMetricValues.add(mv);

0 commit comments

Comments
 (0)