public class DefaultInputDemuxer extends Object implements InputDemuxer
DefaultInputDemuxer acts as a pass-through demuxer. It just opens
each file and returns back the input stream. If the input is compressed, it
would return a decompression stream.| 构造器和说明 |
|---|
DefaultInputDemuxer() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
bindTo(Path path,
Configuration conf)
Bind the
InputDemuxer to a particular file. |
void |
close() |
org.apache.hadoop.tools.rumen.Pair<String,InputStream> |
getNext()
Get the next
|
public void bindTo(Path path, Configuration conf) throws IOException
InputDemuxerInputDemuxer to a particular file.bindTo 在接口中 InputDemuxerpath - The path to the find it should bind to.conf - ConfigurationIOException - Returns true when the binding succeeds. If the file can be read
but is in the wrong format, returns false. IOException is
reserved for read errors.public org.apache.hadoop.tools.rumen.Pair<String,InputStream> getNext() throws IOException
InputDemuxergetNext 在接口中 InputDemuxerIOExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionCopyright © 2009 The Apache Software Foundation