java.io.Closeable, java.lang.AutoCloseable, InputDemuxerpublic class DefaultInputDemuxer extends java.lang.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.| Constructor | Description |
|---|---|
DefaultInputDemuxer() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
bindTo(org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf) |
Bind the
InputDemuxer to a particular file. |
void |
close() |
|
org.apache.hadoop.tools.rumen.Pair<java.lang.String,java.io.InputStream> |
getNext() |
Get the next <name, input> pair.
|
public void bindTo(org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException
InputDemuxerInputDemuxer to a particular file.bindTo in interface InputDemuxerpath - The path to the file it should bind to.conf - Configurationjava.io.IOException - 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<java.lang.String,java.io.InputStream> getNext()
throws java.io.IOException
InputDemuxergetNext in interface InputDemuxerjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.