public static class TextFileRegionAliasMap.TextReader extends BlockAliasMap.Reader<FileRegion>
Modifier and Type | Class and Description |
---|---|
static interface |
TextFileRegionAliasMap.TextReader.Options
Options for
TextFileRegionAliasMap.TextReader . |
Modifier | Constructor and Description |
---|---|
protected |
TextReader(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path file,
org.apache.hadoop.io.compress.CompressionCodec codec,
String delim) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
InputStream |
createStream() |
static TextFileRegionAliasMap.ReaderOptions |
defaults() |
Iterator<FileRegion> |
iterator() |
Optional<FileRegion> |
resolve(org.apache.hadoop.hdfs.protocol.Block ident) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
protected TextReader(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path file, org.apache.hadoop.io.compress.CompressionCodec codec, String delim)
public static TextFileRegionAliasMap.ReaderOptions defaults()
public Optional<FileRegion> resolve(org.apache.hadoop.hdfs.protocol.Block ident) throws IOException
resolve
in class BlockAliasMap.Reader<FileRegion>
ident
- block to resolveIOException
public InputStream createStream() throws IOException
IOException
public Iterator<FileRegion> iterator()
public void close() throws IOException
IOException
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.