Package org.apache.storm.hdfs.spout
Class SequenceFileReader<KeyT extends org.apache.hadoop.io.Writable,ValueT extends org.apache.hadoop.io.Writable>
- java.lang.Object
-
- org.apache.storm.hdfs.spout.SequenceFileReader<KeyT,ValueT>
-
public class SequenceFileReader<KeyT extends org.apache.hadoop.io.Writable,ValueT extends org.apache.hadoop.io.Writable> extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSequenceFileReader.Offset
-
Field Summary
Fields Modifier and Type Field Description static StringBUFFER_SIZEstatic String[]defaultFields
-
Constructor Summary
Constructors Constructor Description SequenceFileReader(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path file, Map<String,Object> conf)SequenceFileReader(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path file, Map<String,Object> conf, String offset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanequals(Object o)SequenceFileReader.OffsetgetFileOffset()org.apache.hadoop.fs.PathgetFilePath()inthashCode()List<Object>next()
-
-
-
Field Detail
-
defaultFields
public static final String[] defaultFields
-
BUFFER_SIZE
public static final String BUFFER_SIZE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SequenceFileReader
public SequenceFileReader(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path file, Map<String,Object> conf) throws IOException- Throws:
IOException
-
SequenceFileReader
public SequenceFileReader(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path file, Map<String,Object> conf, String offset) throws IOException- Throws:
IOException
-
-
Method Detail
-
next
public List<Object> next() throws IOException, ParseException
- Throws:
IOExceptionParseException
-
close
public void close()
-
getFileOffset
public SequenceFileReader.Offset getFileOffset()
-
getFilePath
public org.apache.hadoop.fs.Path getFilePath()
-
-