Skip to content

Commit 6d0257d

Browse files
author
Jan Lolling (Klöckner
committed
Log4J removed
1 parent dc47aa5 commit 6d0257d

File tree

10 files changed

+24
-11
lines changed

10 files changed

+24
-11
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>de.jlo.talendcomp.google</groupId>
66
<artifactId>jlo-talendcomp-google-analytics4</artifactId>
7-
<version>2.3</version>
7+
<version>2.4</version>
88
<name>GoogleAnalytics Talend Component for GA4</name>
99
<properties>
1010
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

src/main/components/tGoogleAnalytics4Input/tGoogleAnalytics4Input_begin.javajet

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@
198198
}
199199
// next row from results
200200
java.util.List<String> dataset_<%=cid%> = <%=cid%>.getNextPlainRecord();
201+
globalMap.put("<%=cid%>_ROW_NUM", <%=cid%>.getOverAllCountRows());
201202
countLines_<%=cid%>++;
202203
<% if (conn != null) { %>
203204
// create a new row, thats avoid the need of setting attributes to null

src/main/components/tGoogleAnalytics4Input/tGoogleAnalytics4Input_java.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@
147147
<RETURN AVAILABILITY="AFTER" NAME="NB_LINE_METRICS" TYPE="id_Integer"/>
148148
<RETURN AVAILABILITY="AFTER" NAME="TOTAL_AFFECTED_ROWS" TYPE="id_Integer"/>
149149
<RETURN AVAILABILITY="FLOW" NAME="CURRENT_DATE" TYPE="id_Date"/>
150+
<RETURN AVAILABILITY="FLOW" NAME="ROW_NUM" TYPE="id_Integer"/>
150151
<RETURN AVAILABILITY="AFTER" NAME="ERROR_CODE" TYPE="id_Integer"/>
151152
</RETURNS>
152153
</COMPONENT>

src/main/components/tGoogleAnalytics4Input/tGoogleAnalytics4Input_messages.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ NB_LINE.NAME=Number of fetched lines
1414
ERROR_MESSAGE.NAME=Error Message
1515
NUMBERFORMAT_LOCALE.NAME=Locale for Numbers (2-char-ISO code)
1616
TOTAL_AFFECTED_ROWS.NAME=Total affected rows used to calculate result
17+
ROW_NUM.NAME=Current received Row Index
1718
KEEP_CLIENT.NAME=Keep client for repeated processing
1819
FETCH_SIZE.NAME=Max. rows (empty or 0 for no limit which means also no pagination)
1920
DIE_ON_ERROR.NAME=Die on Error

src/main/java/de/jlo/talendcomp/google/analytics/ga4/DimensionValue.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package de.jlo.talendcomp.google.analytics.ga4;
22

33
/**
4-
* Copyright 2015 Jan Lolling [email protected]
4+
* Copyright 2022 Jan Lolling [email protected]
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

src/main/java/de/jlo/talendcomp/google/analytics/ga4/GoogleAnalyticsBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2015 Jan Lolling [email protected]
2+
* Copyright 2022 Jan Lolling [email protected]
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/de/jlo/talendcomp/google/analytics/ga4/MetricValue.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2015 Jan Lolling [email protected]
2+
* Copyright 2022 Jan Lolling [email protected]
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/de/jlo/talendcomp/google/analytics/ga4/Util.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2015 Jan Lolling [email protected]
2+
* Copyright 2022 Jan Lolling [email protected]
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/**
2+
* Copyright 2023 Jan Lolling [email protected]
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package de.jlo.talendcomp.google.analytics.ga4.v1;
217

318
import org.apache.logging.log4j.LogManager;

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2015 Jan Lolling [email protected]
2+
* Copyright 2023 Jan Lolling [email protected]
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -24,9 +24,6 @@
2424
import java.util.Locale;
2525
import java.util.Map;
2626

27-
import org.apache.logging.log4j.LogManager;
28-
import org.apache.logging.log4j.Logger;
29-
3027
import com.google.analytics.data.v1beta.DateRange;
3128
import com.google.analytics.data.v1beta.Dimension;
3229
import com.google.analytics.data.v1beta.FilterExpression;
@@ -44,11 +41,9 @@
4441
import de.jlo.talendcomp.google.analytics.ga4.GoogleAnalyticsBase;
4542
import de.jlo.talendcomp.google.analytics.ga4.MetricValue;
4643
import de.jlo.talendcomp.google.analytics.ga4.Util;
47-
import io.grpc.StatusRuntimeException;
4844

4945
public class GoogleAnalyticsInput extends GoogleAnalyticsBase {
5046

51-
private static Logger log = LogManager.getLogger(GoogleAnalyticsInput.class);
5247
private static final Map<String, GoogleAnalyticsInput> clientCache = new HashMap<String, GoogleAnalyticsInput>();
5348
private SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
5449
private String startDate = null;

0 commit comments

Comments
 (0)