56 changed files with 442 additions and 62 deletions
@ -0,0 +1,10 @@ |
|||||
|
# 默认忽略的文件 |
||||
|
/shelf/ |
||||
|
/workspace.xml |
||||
|
# 已忽略包含查询文件的默认文件夹 |
||||
|
/queries/ |
||||
|
# Datasource local storage ignored files |
||||
|
/dataSources/ |
||||
|
/dataSources.local.xml |
||||
|
# 基于编辑器的 HTTP 客户端请求 |
||||
|
/httpRequests/ |
||||
@ -0,0 +1 @@ |
|||||
|
MovieMain.java |
||||
@ -0,0 +1,13 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<project version="4"> |
||||
|
<component name="CompilerConfiguration"> |
||||
|
<annotationProcessing> |
||||
|
<profile name="Maven default annotation processors profile" enabled="true"> |
||||
|
<sourceOutputDir name="target/generated-sources/annotations" /> |
||||
|
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" /> |
||||
|
<outputRelativeToContentRoot value="true" /> |
||||
|
<module name="job-crawler" /> |
||||
|
</profile> |
||||
|
</annotationProcessing> |
||||
|
</component> |
||||
|
</project> |
||||
@ -0,0 +1,7 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<project version="4"> |
||||
|
<component name="Encoding"> |
||||
|
<file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" /> |
||||
|
<file url="file://$PROJECT_DIR$/src/main/resources" charset="UTF-8" /> |
||||
|
</component> |
||||
|
</project> |
||||
@ -0,0 +1,20 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<project version="4"> |
||||
|
<component name="RemoteRepositoriesConfiguration"> |
||||
|
<remote-repository> |
||||
|
<option name="id" value="central" /> |
||||
|
<option name="name" value="Central Repository" /> |
||||
|
<option name="url" value="https://repo.maven.apache.org/maven2" /> |
||||
|
</remote-repository> |
||||
|
<remote-repository> |
||||
|
<option name="id" value="central" /> |
||||
|
<option name="name" value="Maven Central repository" /> |
||||
|
<option name="url" value="https://repo1.maven.org/maven2" /> |
||||
|
</remote-repository> |
||||
|
<remote-repository> |
||||
|
<option name="id" value="jboss.community" /> |
||||
|
<option name="name" value="JBoss Community repository" /> |
||||
|
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" /> |
||||
|
</remote-repository> |
||||
|
</component> |
||||
|
</project> |
||||
@ -0,0 +1,12 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<project version="4"> |
||||
|
<component name="ExternalStorageConfigurationManager" enabled="true" /> |
||||
|
<component name="MavenProjectsManager"> |
||||
|
<option name="originalFiles"> |
||||
|
<list> |
||||
|
<option value="$PROJECT_DIR$/pom.xml" /> |
||||
|
</list> |
||||
|
</option> |
||||
|
</component> |
||||
|
<component name="ProjectRootManager" version="2" project-jdk-name="openjdk-25" project-jdk-type="JavaSDK" /> |
||||
|
</project> |
||||
@ -0,0 +1,8 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<project version="4"> |
||||
|
<component name="ProjectModuleManager"> |
||||
|
<modules> |
||||
|
<module fileurl="file://$PROJECT_DIR$/job-crawler.iml" filepath="$PROJECT_DIR$/job-crawler.iml" /> |
||||
|
</modules> |
||||
|
</component> |
||||
|
</project> |
||||
@ -0,0 +1,6 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<project version="4"> |
||||
|
<component name="VcsDirectoryMappings"> |
||||
|
<mapping directory="$PROJECT_DIR$/.." vcs="Git" /> |
||||
|
</component> |
||||
|
</project> |
||||
@ -0,0 +1,3 @@ |
|||||
|
{ |
||||
|
"java.configuration.updateBuildConfiguration": "interactive" |
||||
|
} |
||||
|
@ -0,0 +1,8 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<module version="4"> |
||||
|
<component name="AdditionalModuleElements"> |
||||
|
<content url="file://$MODULE_DIR$" dumb="true"> |
||||
|
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> |
||||
|
</content> |
||||
|
</component> |
||||
|
</module> |
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 53 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 24 KiB |
Binary file not shown.
Binary file not shown.
@ -1,6 +1,6 @@ |
|||||
package com.crawler.analysis; |
package com.crawler.analysis; |
||||
|
|
||||
import com.crawler.model.Movie; |
import com.crawler.chart.model.Movie; |
||||
|
|
||||
import java.util.*; |
import java.util.*; |
||||
import java.util.stream.Collectors; |
import java.util.stream.Collectors; |
||||
Binary file not shown.
@ -1,6 +1,6 @@ |
|||||
package com.crawler.chart; |
package com.crawler.chart; |
||||
|
|
||||
import com.crawler.model.Movie; |
import com.crawler.chart.model.Movie; |
||||
|
|
||||
public interface ChartGenerator { |
public interface ChartGenerator { |
||||
void generateChart(Movie[] movies); |
void generateChart(Movie[] movies); |
||||
Binary file not shown.
Binary file not shown.
@ -1,10 +1,11 @@ |
|||||
package com.crawler.chart.impl; |
package com.crawler.chart.impl; |
||||
|
|
||||
import com.crawler.chart.ChartGenerator; |
import com.crawler.chart.ChartGenerator; |
||||
import com.crawler.model.Movie; |
import com.crawler.chart.model.Movie; |
||||
import com.crawler.ui.MovieResultDisplay; |
import com.crawler.ui.MovieResultDisplay; |
||||
|
|
||||
import java.io.IOException; |
import java.io.IOException; |
||||
|
import java.util.ArrayList; |
||||
import java.util.List; |
import java.util.List; |
||||
|
|
||||
public class GenreDistributionChartGenerator implements ChartGenerator { |
public class GenreDistributionChartGenerator implements ChartGenerator { |
||||
Binary file not shown.
@ -1,7 +1,7 @@ |
|||||
package com.crawler.chart.impl; |
package com.crawler.chart.impl; |
||||
|
|
||||
import com.crawler.chart.ChartGenerator; |
import com.crawler.chart.ChartGenerator; |
||||
import com.crawler.model.Movie; |
import com.crawler.chart.model.Movie; |
||||
import com.crawler.ui.MovieResultDisplay; |
import com.crawler.ui.MovieResultDisplay; |
||||
|
|
||||
import java.io.IOException; |
import java.io.IOException; |
||||
Binary file not shown.
@ -1,7 +1,7 @@ |
|||||
package com.crawler.chart.impl; |
package com.crawler.chart.impl; |
||||
|
|
||||
import com.crawler.chart.ChartGenerator; |
import com.crawler.chart.ChartGenerator; |
||||
import com.crawler.model.Movie; |
import com.crawler.chart.model.Movie; |
||||
import com.crawler.ui.MovieResultDisplay; |
import com.crawler.ui.MovieResultDisplay; |
||||
|
|
||||
import java.io.IOException; |
import java.io.IOException; |
||||
Binary file not shown.
@ -1,7 +1,7 @@ |
|||||
package com.crawler.chart.impl; |
package com.crawler.chart.impl; |
||||
|
|
||||
import com.crawler.chart.ChartGenerator; |
import com.crawler.chart.ChartGenerator; |
||||
import com.crawler.model.Movie; |
import com.crawler.chart.model.Movie; |
||||
import com.crawler.ui.MovieResultDisplay; |
import com.crawler.ui.MovieResultDisplay; |
||||
|
|
||||
import java.io.IOException; |
import java.io.IOException; |
||||
Binary file not shown.
@ -1,4 +1,4 @@ |
|||||
package com.crawler.model; |
package com.crawler.chart.model; |
||||
|
|
||||
public class Movie { |
public class Movie { |
||||
private int rank; |
private int rank; |
||||
Binary file not shown.
Binary file not shown.
@ -1,7 +1,7 @@ |
|||||
package com.crawler.ui; |
package com.crawler.ui; |
||||
|
|
||||
import com.crawler.analysis.MovieAnalyzer; |
import com.crawler.analysis.MovieAnalyzer; |
||||
import com.crawler.model.Movie; |
import com.crawler.chart.model.Movie; |
||||
import org.jfree.chart.ChartFactory; |
import org.jfree.chart.ChartFactory; |
||||
import org.jfree.chart.ChartUtils; |
import org.jfree.chart.ChartUtils; |
||||
import org.jfree.chart.JFreeChart; |
import org.jfree.chart.JFreeChart; |
||||
Binary file not shown.
@ -1,6 +1,6 @@ |
|||||
package com.crawler.utils; |
package com.crawler.utils; |
||||
|
|
||||
import com.crawler.model.Movie; |
import com.crawler.chart.model.Movie; |
||||
|
|
||||
import java.io.FileWriter; |
import java.io.FileWriter; |
||||
import java.io.IOException; |
import java.io.IOException; |
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue