|
33 | 33 | import org.apache.nutch.scoring.webgraph.LinkDatum; |
34 | 34 | import org.apache.nutch.service.NutchReader; |
35 | 35 |
|
36 | | -public class LinkReader implements NutchReader{ |
| 36 | +public class LinkReader implements NutchReader { |
37 | 37 |
|
38 | 38 | @Override |
39 | | - public List read(String path) throws FileNotFoundException { |
40 | | - List<HashMap> rows= new ArrayList<>(); |
| 39 | + public List<HashMap<String, String>> read(String path) throws FileNotFoundException { |
| 40 | + List<HashMap<String, String>> rows= new ArrayList<>(); |
41 | 41 | Path file = new Path(path); |
42 | 42 | SequenceFile.Reader reader; |
43 | 43 | try{ |
@@ -69,8 +69,8 @@ public List read(String path) throws FileNotFoundException { |
69 | 69 | } |
70 | 70 |
|
71 | 71 | @Override |
72 | | - public List head(String path, int nrows) throws FileNotFoundException { |
73 | | - List<HashMap> rows= new ArrayList<>(); |
| 72 | + public List<HashMap<String, String>> head(String path, int nrows) throws FileNotFoundException { |
| 73 | + List<HashMap<String, String>> rows= new ArrayList<>(); |
74 | 74 | Path file = new Path(path); |
75 | 75 | SequenceFile.Reader reader; |
76 | 76 | try{ |
@@ -101,9 +101,9 @@ public List head(String path, int nrows) throws FileNotFoundException { |
101 | 101 | } |
102 | 102 |
|
103 | 103 | @Override |
104 | | - public List slice(String path, int start, int end) |
| 104 | + public List<HashMap<String, String>> slice(String path, int start, int end) |
105 | 105 | throws FileNotFoundException { |
106 | | - List<HashMap> rows= new ArrayList<>(); |
| 106 | + List<HashMap<String, String>> rows= new ArrayList<>(); |
107 | 107 | Path file = new Path(path); |
108 | 108 | SequenceFile.Reader reader; |
109 | 109 | try{ |
|
0 commit comments