Package org.apache.nutch.service.impl
Class NodeReader
- java.lang.Object
-
- org.apache.nutch.service.impl.NodeReader
-
- All Implemented Interfaces:
NutchReader
public class NodeReader extends Object implements NutchReader
-
-
Field Summary
-
Fields inherited from interface org.apache.nutch.service.NutchReader
conf, LOG
-
-
Constructor Summary
Constructors Constructor Description NodeReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcount(String path)List<HashMap<String,String>>head(String path, int nrows)List<HashMap<String,String>>read(String path)List<HashMap<String,String>>slice(String path, int start, int end)
-
-
-
Method Detail
-
read
public List<HashMap<String,String>> read(String path) throws FileNotFoundException
- Specified by:
readin interfaceNutchReader- Throws:
FileNotFoundException
-
head
public List<HashMap<String,String>> head(String path, int nrows) throws FileNotFoundException
- Specified by:
headin interfaceNutchReader- Throws:
FileNotFoundException
-
slice
public List<HashMap<String,String>> slice(String path, int start, int end) throws FileNotFoundException
- Specified by:
slicein interfaceNutchReader- Throws:
FileNotFoundException
-
count
public int count(String path) throws FileNotFoundException
- Specified by:
countin interfaceNutchReader- Throws:
FileNotFoundException
-
-