Skip to content

Commit 7731d3b

Browse files
committed
Added flowfile as JSON from GTFS
1 parent 965240f commit 7731d3b

File tree

21 files changed

+1361
-317
lines changed

21 files changed

+1361
-317
lines changed

.idea/libraries/Maven__com_google_protobuf_protobuf_java_3_6_1.xml

-13
This file was deleted.

nifi-gtfs-nar/nifi-gtfs-nar.iml

+9-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,15 @@
1212
<orderEntry type="library" name="Maven: org.apache.nifi:nifi-utils:1.9.2" level="project" />
1313
<orderEntry type="library" scope="PROVIDED" name="Maven: org.apache.nifi:nifi-api:1.9.2" level="project" />
1414
<orderEntry type="library" name="Maven: io.mobilitydata.transit:gtfs-realtime-bindings:0.0.5" level="project" />
15-
<orderEntry type="library" name="Maven: com.google.protobuf:protobuf-java:3.6.1" level="project" />
15+
<orderEntry type="library" name="Maven: com.google.protobuf:protobuf-java:3.8.0" level="project" />
16+
<orderEntry type="library" name="Maven: com.google.protobuf:protobuf-java-util:3.8.0" level="project" />
17+
<orderEntry type="library" name="Maven: com.google.guava:guava:26.0-android" level="project" />
18+
<orderEntry type="library" name="Maven: com.google.code.findbugs:jsr305:3.0.2" level="project" />
19+
<orderEntry type="library" name="Maven: org.checkerframework:checker-compat-qual:2.5.2" level="project" />
20+
<orderEntry type="library" name="Maven: com.google.j2objc:j2objc-annotations:1.1" level="project" />
21+
<orderEntry type="library" name="Maven: org.codehaus.mojo:animal-sniffer-annotations:1.14" level="project" />
22+
<orderEntry type="library" name="Maven: com.google.errorprone:error_prone_annotations:2.3.2" level="project" />
23+
<orderEntry type="library" name="Maven: com.google.code.gson:gson:2.7" level="project" />
1624
<orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.12" level="project" />
1725
<orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
1826
<orderEntry type="library" scope="TEST" name="Maven: org.mockito:mockito-core:1.10.19" level="project" />

nifi-gtfs-nar/target/classes/META-INF/DEPENDENCIES

+19-3
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,34 @@ nifi-gtfs-nar
77

88

99
From: 'an unknown organization'
10+
- FindBugs-jsr305 (http://findbugs.sourceforge.net/) com.google.code.findbugs:jsr305:jar:3.0.2
11+
License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
12+
- Gson (https://github.com/google/gson/gson) com.google.code.gson:gson:jar:2.7
13+
License: Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
14+
- error-prone annotations (http://nexus.sonatype.org/oss-repository-hosting.html/error_prone_parent/error_prone_annotations) com.google.errorprone:error_prone_annotations:jar:2.3.2
15+
License: Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
16+
- Guava: Google Core Libraries for Java (https://github.com/google/guava/guava) com.google.guava:guava:bundle:26.0-android
17+
License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
18+
- J2ObjC Annotations (https://github.com/google/j2objc/) com.google.j2objc:j2objc-annotations:jar:1.1
19+
License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
20+
- Protocol Buffers [Core] (https://developers.google.com/protocol-buffers/protobuf-java/) com.google.protobuf:protobuf-java:bundle:3.8.0
21+
License: 3-Clause BSD License (https://opensource.org/licenses/BSD-3-Clause)
22+
- Protocol Buffers [Util] (https://developers.google.com/protocol-buffers/protobuf-java-util/) com.google.protobuf:protobuf-java-util:bundle:3.8.0
23+
License: 3-Clause BSD License (https://opensource.org/licenses/BSD-3-Clause)
1024
- gtfs-realtime-bindings (https://github.com/MobilityData/gtfs-realtime-bindings) io.mobilitydata.transit:gtfs-realtime-bindings:jar:0.0.5
1125
License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.html)
26+
- Checker Qual (https://checkerframework.org) org.checkerframework:checker-compat-qual:jar:2.5.2
27+
License: GNU General Public License, version 2 (GPL2), with the classpath exception (http://www.gnu.org/software/classpath/license.html) License: The MIT License (http://opensource.org/licenses/MIT)
1228

1329
From: 'Apache NiFi Project' (http://nifi.apache.org/)
1430
- nifi-gtfs-processors (http://nifi.apache.org/nifi-nar-bundles/gtfs/nifi-gtfs-processors) dev.datainmotion:nifi-gtfs-processors:jar:1.0
1531
License: Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
1632
- nifi-utils (http://nifi.apache.org/nifi-commons/nifi-utils) org.apache.nifi:nifi-utils:jar:1.9.2
1733
License: Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
1834

19-
From: 'Google' (http://www.google.com/)
20-
- Protocol Buffers [Core] (https://developers.google.com/protocol-buffers/protobuf-java/) com.google.protobuf:protobuf-java:bundle:3.6.1
21-
License: 3-Clause BSD License (https://opensource.org/licenses/BSD-3-Clause)
35+
From: 'Codehaus' (http://codehaus.org)
36+
- Animal Sniffer Annotations (http://mojo.codehaus.org/animal-sniffer/animal-sniffer-annotations) org.codehaus.mojo:animal-sniffer-annotations:jar:1.14
37+
License: MIT license (http://www.opensource.org/licenses/mit-license.php)
2238

2339

2440

Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#Generated by Maven
2-
#Tue Aug 20 15:50:50 EDT 2019
2+
#Wed Aug 21 09:09:14 EDT 2019
33
version=1.0
44
groupId=dev.datainmotion
55
artifactId=nifi-gtfs-nar

nifi-gtfs-nar/target/maven-shared-archive-resources/META-INF/DEPENDENCIES

+19-3
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,34 @@ nifi-gtfs-nar
77

88

99
From: 'an unknown organization'
10+
- FindBugs-jsr305 (http://findbugs.sourceforge.net/) com.google.code.findbugs:jsr305:jar:3.0.2
11+
License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
12+
- Gson (https://github.com/google/gson/gson) com.google.code.gson:gson:jar:2.7
13+
License: Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
14+
- error-prone annotations (http://nexus.sonatype.org/oss-repository-hosting.html/error_prone_parent/error_prone_annotations) com.google.errorprone:error_prone_annotations:jar:2.3.2
15+
License: Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
16+
- Guava: Google Core Libraries for Java (https://github.com/google/guava/guava) com.google.guava:guava:bundle:26.0-android
17+
License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
18+
- J2ObjC Annotations (https://github.com/google/j2objc/) com.google.j2objc:j2objc-annotations:jar:1.1
19+
License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
20+
- Protocol Buffers [Core] (https://developers.google.com/protocol-buffers/protobuf-java/) com.google.protobuf:protobuf-java:bundle:3.8.0
21+
License: 3-Clause BSD License (https://opensource.org/licenses/BSD-3-Clause)
22+
- Protocol Buffers [Util] (https://developers.google.com/protocol-buffers/protobuf-java-util/) com.google.protobuf:protobuf-java-util:bundle:3.8.0
23+
License: 3-Clause BSD License (https://opensource.org/licenses/BSD-3-Clause)
1024
- gtfs-realtime-bindings (https://github.com/MobilityData/gtfs-realtime-bindings) io.mobilitydata.transit:gtfs-realtime-bindings:jar:0.0.5
1125
License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.html)
26+
- Checker Qual (https://checkerframework.org) org.checkerframework:checker-compat-qual:jar:2.5.2
27+
License: GNU General Public License, version 2 (GPL2), with the classpath exception (http://www.gnu.org/software/classpath/license.html) License: The MIT License (http://opensource.org/licenses/MIT)
1228

1329
From: 'Apache NiFi Project' (http://nifi.apache.org/)
1430
- nifi-gtfs-processors (http://nifi.apache.org/nifi-nar-bundles/gtfs/nifi-gtfs-processors) dev.datainmotion:nifi-gtfs-processors:jar:1.0
1531
License: Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
1632
- nifi-utils (http://nifi.apache.org/nifi-commons/nifi-utils) org.apache.nifi:nifi-utils:jar:1.9.2
1733
License: Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
1834

19-
From: 'Google' (http://www.google.com/)
20-
- Protocol Buffers [Core] (https://developers.google.com/protocol-buffers/protobuf-java/) com.google.protobuf:protobuf-java:bundle:3.6.1
21-
License: 3-Clause BSD License (https://opensource.org/licenses/BSD-3-Clause)
35+
From: 'Codehaus' (http://codehaus.org)
36+
- Animal Sniffer Annotations (http://mojo.codehaus.org/animal-sniffer/animal-sniffer-annotations) org.codehaus.mojo:animal-sniffer-annotations:jar:1.14
37+
License: MIT license (http://www.opensource.org/licenses/mit-license.php)
2238

2339

2440

nifi-gtfs-nar/target/test-classes/META-INF/DEPENDENCIES

+19-3
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,34 @@ nifi-gtfs-nar
77

88

99
From: 'an unknown organization'
10+
- FindBugs-jsr305 (http://findbugs.sourceforge.net/) com.google.code.findbugs:jsr305:jar:3.0.2
11+
License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
12+
- Gson (https://github.com/google/gson/gson) com.google.code.gson:gson:jar:2.7
13+
License: Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
14+
- error-prone annotations (http://nexus.sonatype.org/oss-repository-hosting.html/error_prone_parent/error_prone_annotations) com.google.errorprone:error_prone_annotations:jar:2.3.2
15+
License: Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
16+
- Guava: Google Core Libraries for Java (https://github.com/google/guava/guava) com.google.guava:guava:bundle:26.0-android
17+
License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
18+
- J2ObjC Annotations (https://github.com/google/j2objc/) com.google.j2objc:j2objc-annotations:jar:1.1
19+
License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
20+
- Protocol Buffers [Core] (https://developers.google.com/protocol-buffers/protobuf-java/) com.google.protobuf:protobuf-java:bundle:3.8.0
21+
License: 3-Clause BSD License (https://opensource.org/licenses/BSD-3-Clause)
22+
- Protocol Buffers [Util] (https://developers.google.com/protocol-buffers/protobuf-java-util/) com.google.protobuf:protobuf-java-util:bundle:3.8.0
23+
License: 3-Clause BSD License (https://opensource.org/licenses/BSD-3-Clause)
1024
- gtfs-realtime-bindings (https://github.com/MobilityData/gtfs-realtime-bindings) io.mobilitydata.transit:gtfs-realtime-bindings:jar:0.0.5
1125
License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.html)
26+
- Checker Qual (https://checkerframework.org) org.checkerframework:checker-compat-qual:jar:2.5.2
27+
License: GNU General Public License, version 2 (GPL2), with the classpath exception (http://www.gnu.org/software/classpath/license.html) License: The MIT License (http://opensource.org/licenses/MIT)
1228

1329
From: 'Apache NiFi Project' (http://nifi.apache.org/)
1430
- nifi-gtfs-processors (http://nifi.apache.org/nifi-nar-bundles/gtfs/nifi-gtfs-processors) dev.datainmotion:nifi-gtfs-processors:jar:1.0
1531
License: Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
1632
- nifi-utils (http://nifi.apache.org/nifi-commons/nifi-utils) org.apache.nifi:nifi-utils:jar:1.9.2
1733
License: Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
1834

19-
From: 'Google' (http://www.google.com/)
20-
- Protocol Buffers [Core] (https://developers.google.com/protocol-buffers/protobuf-java/) com.google.protobuf:protobuf-java:bundle:3.6.1
21-
License: 3-Clause BSD License (https://opensource.org/licenses/BSD-3-Clause)
35+
From: 'Codehaus' (http://codehaus.org)
36+
- Animal Sniffer Annotations (http://mojo.codehaus.org/animal-sniffer/animal-sniffer-annotations) org.codehaus.mojo:animal-sniffer-annotations:jar:1.14
37+
License: MIT license (http://www.opensource.org/licenses/mit-license.php)
2238

2339

2440

nifi-gtfs-processors/nifi-gtfs-processors.iml

+10-1
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,23 @@
77
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
88
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
99
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
10+
<sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" />
1011
<excludeFolder url="file://$MODULE_DIR$/target" />
1112
</content>
1213
<orderEntry type="inheritedJdk" />
1314
<orderEntry type="sourceFolder" forTests="false" />
1415
<orderEntry type="library" scope="PROVIDED" name="Maven: org.apache.nifi:nifi-api:1.9.2" level="project" />
1516
<orderEntry type="library" name="Maven: org.apache.nifi:nifi-utils:1.9.2" level="project" />
1617
<orderEntry type="library" name="Maven: io.mobilitydata.transit:gtfs-realtime-bindings:0.0.5" level="project" />
17-
<orderEntry type="library" name="Maven: com.google.protobuf:protobuf-java:3.6.1" level="project" />
18+
<orderEntry type="library" name="Maven: com.google.protobuf:protobuf-java:3.8.0" level="project" />
19+
<orderEntry type="library" name="Maven: com.google.protobuf:protobuf-java-util:3.8.0" level="project" />
20+
<orderEntry type="library" name="Maven: com.google.guava:guava:26.0-android" level="project" />
21+
<orderEntry type="library" name="Maven: com.google.code.findbugs:jsr305:3.0.2" level="project" />
22+
<orderEntry type="library" name="Maven: org.checkerframework:checker-compat-qual:2.5.2" level="project" />
23+
<orderEntry type="library" name="Maven: com.google.j2objc:j2objc-annotations:1.1" level="project" />
24+
<orderEntry type="library" name="Maven: org.codehaus.mojo:animal-sniffer-annotations:1.14" level="project" />
25+
<orderEntry type="library" name="Maven: com.google.errorprone:error_prone_annotations:2.3.2" level="project" />
26+
<orderEntry type="library" name="Maven: com.google.code.gson:gson:2.7" level="project" />
1827
<orderEntry type="library" scope="TEST" name="Maven: org.apache.nifi:nifi-mock:1.9.2" level="project" />
1928
<orderEntry type="library" scope="PROVIDED" name="Maven: org.apache.nifi:nifi-framework-api:1.9.2" level="project" />
2029
<orderEntry type="library" scope="TEST" name="Maven: org.apache.nifi:nifi-expression-language:1.9.2" level="project" />

nifi-gtfs-processors/pom.xml

+11
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,17 @@
4040
<artifactId>gtfs-realtime-bindings</artifactId>
4141
<version>0.0.5</version>
4242
</dependency>
43+
<dependency>
44+
<groupId>com.google.protobuf</groupId>
45+
<artifactId>protobuf-java</artifactId>
46+
<version>3.8.0</version>
47+
</dependency>
48+
<dependency>
49+
<groupId>com.google.protobuf</groupId>
50+
<artifactId>protobuf-java-util</artifactId>
51+
<version>3.8.0</version>
52+
</dependency>
53+
4354
<dependency>
4455
<groupId>org.apache.nifi</groupId>
4556
<artifactId>nifi-mock</artifactId>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
package dev.datainmotion.gtfs;
2+
3+
import java.util.List;
4+
5+
/**
6+
*
7+
*/
8+
public class GTFS {
9+
10+
private String gtfsString;
11+
private List<Result> attributes;
12+
private String status;
13+
private int statusCode;
14+
15+
16+
public GTFS() {
17+
super();
18+
}
19+
20+
public GTFS(String gtfsString, List<Result> attributes) {
21+
super();
22+
this.gtfsString = gtfsString;
23+
this.attributes = attributes;
24+
}
25+
26+
public GTFS(String gtfsString, List<Result> attributes, String status, int statusCode) {
27+
this.gtfsString = gtfsString;
28+
this.attributes = attributes;
29+
this.status = status;
30+
this.statusCode = statusCode;
31+
}
32+
33+
public String getStatus() {
34+
return status;
35+
}
36+
37+
public void setStatus(String status) {
38+
this.status = status;
39+
}
40+
41+
public int getStatusCode() {
42+
return statusCode;
43+
}
44+
45+
public void setStatusCode(int statusCode) {
46+
this.statusCode = statusCode;
47+
}
48+
49+
public String getGtfsString() {
50+
return gtfsString;
51+
}
52+
53+
public void setGtfsString(String gtfsString) {
54+
this.gtfsString = gtfsString;
55+
}
56+
57+
public List<Result> getAttributes() {
58+
return attributes;
59+
}
60+
61+
public void setAttributes(List<Result> attributes) {
62+
this.attributes = attributes;
63+
}
64+
65+
@Override
66+
public String toString() {
67+
final StringBuilder sb = new StringBuilder("GTFS{");
68+
sb.append("gtfsString='").append(gtfsString).append('\'');
69+
sb.append(", attributes=").append(attributes);
70+
sb.append(", status='").append(status).append('\'');
71+
sb.append(", statusCode=").append(statusCode);
72+
sb.append('}');
73+
return sb.toString();
74+
}
75+
}

0 commit comments

Comments
 (0)