|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cloud9.io.FSLineReader
public class FSLineReader
Copied from LineRecordReader.LineReader in Hadoop 0.17.2 release.
| Constructor Summary | |
|---|---|
FSLineReader(InputStream in,
int bufferSize)
Create a line reader that reads from the given stream using the given buffer-size. |
|
FSLineReader(Path path)
|
|
FSLineReader(Path file,
FileSystem fs)
|
|
FSLineReader(String file)
|
|
FSLineReader(String file,
FileSystem fs)
|
|
| Method Summary | |
|---|---|
void |
close()
Close the underlying stream. |
int |
readLine(Text str)
Read from the InputStream into the given Text. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FSLineReader(InputStream in,
int bufferSize)
in -
IOException
public FSLineReader(Path path)
throws IOException
IOException
public FSLineReader(String file)
throws IOException
IOException
public FSLineReader(String file,
FileSystem fs)
throws IOException
IOException
public FSLineReader(Path file,
FileSystem fs)
throws IOException
IOException| Method Detail |
|---|
public void close()
throws IOException
IOException
public int readLine(Text str)
throws IOException
str - the object to store the given line
IOException - if the underlying stream throws
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||