Skip to content

Commit fbfe7ba

Browse files
Parse Large Json File Jackson Example
1 parent ec90fc8 commit fbfe7ba

File tree

8 files changed

+467
-0
lines changed

8 files changed

+467
-0
lines changed

ParseLargeJsonFileJacksonExample/.idea/compiler.xml

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ParseLargeJsonFileJacksonExample/.idea/encodings.xml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ParseLargeJsonFileJacksonExample/.idea/misc.xml

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ParseLargeJsonFileJacksonExample/.idea/workspace.xml

Lines changed: 235 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4" />
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>ParseLargeJsonFileJacksonExample</groupId>
8+
<artifactId>ParseLargeJsonFileJacksonExample</artifactId>
9+
<version>1.0-SNAPSHOT</version>
10+
<description>Parse Large Json File Jackson Example</description>
11+
<build>
12+
<finalName>ParseLargeJsonFileJacksonExample</finalName>
13+
<plugins>
14+
<plugin>
15+
<groupId>org.apache.maven.plugins</groupId>
16+
<artifactId>maven-compiler-plugin</artifactId>
17+
<configuration>
18+
<source>1.8</source>
19+
<target>1.8</target>
20+
</configuration>
21+
</plugin>
22+
</plugins>
23+
</build>
24+
<dependencies>
25+
<dependency>
26+
<groupId>org.codehaus.jackson</groupId>
27+
<artifactId>jackson-xc</artifactId>
28+
<version>1.9.12</version>
29+
</dependency>
30+
</dependencies>
31+
</project>
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
package com.javadeveloperzone;
2+
3+
import java.util.List;
4+
5+
public class Document {
6+
int documentId,parentDocId;
7+
String docType,docAuthor,docTitle;
8+
boolean isParent;
9+
List<String> docLanguage;
10+
11+
public int getDocumentId() {
12+
return documentId;
13+
}
14+
15+
@Override
16+
public String toString() {
17+
return "Document{" +
18+
"documentId=" + documentId +
19+
", parentDocId=" + parentDocId +
20+
", docType='" + docType + '\'' +
21+
", docAuthor='" + docAuthor + '\'' +
22+
", docTitle='" + docTitle + '\'' +
23+
", isParent=" + isParent +
24+
", docLanguage=" + docLanguage +
25+
'}';
26+
}
27+
28+
public void setDocumentId(int documentId) {
29+
this.documentId = documentId;
30+
}
31+
32+
public int getParentDocId() {
33+
return parentDocId;
34+
}
35+
36+
public void setParentDocId(int parentDocId) {
37+
this.parentDocId = parentDocId;
38+
}
39+
40+
public String getDocType() {
41+
return docType;
42+
}
43+
44+
public void setDocType(String docType) {
45+
this.docType = docType;
46+
}
47+
48+
public String getDocAuthor() {
49+
return docAuthor;
50+
}
51+
52+
public void setDocAuthor(String docAuthor) {
53+
this.docAuthor = docAuthor;
54+
}
55+
56+
public String getDocTitle() {
57+
return docTitle;
58+
}
59+
60+
public void setDocTitle(String docTitle) {
61+
this.docTitle = docTitle;
62+
}
63+
64+
public boolean isParent() {
65+
return isParent;
66+
}
67+
68+
public void setParent(boolean parent) {
69+
isParent = parent;
70+
}
71+
72+
public List<String> getDocLanguage() {
73+
return docLanguage;
74+
}
75+
76+
public void setDocLanguage(List<String> docLanguage) {
77+
this.docLanguage = docLanguage;
78+
}
79+
}

0 commit comments

Comments
 (0)