| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.apache.hadoop.fs.FileStatus |
getCurrentFile()
Deprecated.
Use
getCurrentPath() instead |
org.apache.hadoop.fs.Path |
getCurrentPath()
Opens the current file path prepared by the
next() method. |
boolean |
next()
Returns true iff the next temporary file exists,
and then the
getCurrentPath() and openContent() method returns it. |
InputStream |
openContent()
Opens the current file content prepared by the
next() method. |
public boolean next()
throws IOException
getCurrentPath() and openContent() method returns it.true if the next data model object exists, otherwise falseIOException - if failed to prepare the next datapublic org.apache.hadoop.fs.Path getCurrentPath()
throws IOException
next() method.IOException - if failed to get status@Deprecated public org.apache.hadoop.fs.FileStatus getCurrentFile() throws IOException
getCurrentPath() insteadnext() method.IOException - if failed to get statuspublic InputStream openContent() throws IOException
next() method.
This operation can perform only once for each temporary file.IOException - if failed to open the filepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2011–2018 Asakusa Framework Team. All rights reserved.