Package org.apache.storm.hdfs.spout
Class TextFileReader
java.lang.Object
org.apache.storm.hdfs.spout.TextFileReader
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTextFileReader
(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path file, Map<String, Object> conf) TextFileReader
(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path file, Map<String, Object> conf, String startOffset) -
Method Summary
-
Field Details
-
defaultFields
-
CHARSET
- See Also:
-
BUFFER_SIZE
- See Also:
-
-
Constructor Details
-
TextFileReader
public TextFileReader(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path file, Map<String, Object> conf) throws IOException- Throws:
IOException
-
TextFileReader
public TextFileReader(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path file, Map<String, Object> conf, String startOffset) throws IOException- Throws:
IOException
-
-
Method Details
-
getFileOffset
-
next
- Throws:
IOException
ParseException
-
close
public void close() -
getFilePath
public org.apache.hadoop.fs.Path getFilePath() -
equals
-
hashCode
public int hashCode()
-