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 class
SequenceFileReader.Offset
-
Field Summary
Fields Modifier and Type Field Description static String
BUFFER_SIZE
static 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 void
close()
boolean
equals(Object o)
SequenceFileReader.Offset
getFileOffset()
org.apache.hadoop.fs.Path
getFilePath()
int
hashCode()
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:
IOException
ParseException
-
close
public void close()
-
getFileOffset
public SequenceFileReader.Offset getFileOffset()
-
getFilePath
public org.apache.hadoop.fs.Path getFilePath()
-
-