@InterfaceAudience.Public @InterfaceStability.Unstable public class NullBlockAliasMap extends BlockAliasMap<FileRegion>
Constructor and Description |
---|
NullBlockAliasMap() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
org.apache.hadoop.hdfs.server.common.blockaliasmap.BlockAliasMap.Reader<FileRegion> |
getReader(org.apache.hadoop.hdfs.server.common.blockaliasmap.BlockAliasMap.Reader.Options opts,
String blockPoolID)
Returns a reader to the alias map.
|
org.apache.hadoop.hdfs.server.common.blockaliasmap.BlockAliasMap.Writer |
getWriter(org.apache.hadoop.hdfs.server.common.blockaliasmap.BlockAliasMap.Writer.Options opts,
String blockPoolID)
Returns the writer for the alias map.
|
void |
refresh()
Refresh the alias map.
|
public org.apache.hadoop.hdfs.server.common.blockaliasmap.BlockAliasMap.Reader<FileRegion> getReader(org.apache.hadoop.hdfs.server.common.blockaliasmap.BlockAliasMap.Reader.Options opts, String blockPoolID) throws IOException
BlockAliasMap
getReader
in class BlockAliasMap<FileRegion>
opts
- reader optionsblockPoolID
- block pool id to useBlockAliasMap.Reader
to the alias map. If a Reader for the blockPoolID
cannot be created, this will return null.IOException
public org.apache.hadoop.hdfs.server.common.blockaliasmap.BlockAliasMap.Writer getWriter(org.apache.hadoop.hdfs.server.common.blockaliasmap.BlockAliasMap.Writer.Options opts, String blockPoolID) throws IOException
BlockAliasMap
getWriter
in class BlockAliasMap<FileRegion>
opts
- writer options.blockPoolID
- block pool id to useBlockAliasMap.Writer
to the alias map.IOException
public void refresh() throws IOException
BlockAliasMap
refresh
in class BlockAliasMap<FileRegion>
IOException
public void close() throws IOException
close
in class BlockAliasMap<FileRegion>
IOException
Copyright © 2023 Apache Software Foundation. All rights reserved.