Class TextFileRegionAliasMap.TextReader
java.lang.Object
org.apache.hadoop.hdfs.server.common.blockaliasmap.BlockAliasMap.Reader<FileRegion>
org.apache.hadoop.hdfs.server.common.blockaliasmap.impl.TextFileRegionAliasMap.TextReader
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterable<FileRegion>
- Enclosing class:
- TextFileRegionAliasMap
This class is used as a reader for block maps which
are stored as delimited text files.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTextReader(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path file, org.apache.hadoop.io.compress.CompressionCodec codec, String delim) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
TextReader
protected TextReader(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path file, org.apache.hadoop.io.compress.CompressionCodec codec, String delim)
-
-
Method Details
-
defaults
-
resolve
- Specified by:
resolvein classBlockAliasMap.Reader<FileRegion>- Parameters:
ident- block to resolve- Returns:
- BlockAlias corresponding to the provided block.
- Throws:
IOException
-
createStream
- Throws:
IOException
-
iterator
-
close
- Throws:
IOException
-