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
InputDemuxer
InputDemuxer
to a particular file.bindTo
在接口中 InputDemuxer
path
- 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
InputDemuxer
getNext
在接口中 InputDemuxer
IOException
public void close() throws IOException
close
在接口中 Closeable
close
在接口中 AutoCloseable
IOException
Copyright © 2009 The Apache Software Foundation