public interface InputDemuxer extends Closeable
InputDemuxer dem-ultiplexes the input files into individual input
streams.| Modifier and Type | Method and Description |
|---|---|
void |
bindTo(org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf)
Bind the
InputDemuxer to a particular file. |
org.apache.hadoop.tools.rumen.Pair<String,InputStream> |
getNext()
Get the next <name, input> pair.
|
void bindTo(org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf)
throws IOException
InputDemuxer to a particular file.path - The path to the file 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.org.apache.hadoop.tools.rumen.Pair<String,InputStream> getNext() throws IOException
IOExceptionCopyright © 2008–2020 Apache Software Foundation. All rights reserved.