@InterfaceAudience.Public @InterfaceStability.Unstable public abstract class BlockAliasMap<T extends BlockAlias> extends Object
| Constructor and Description | 
|---|
| BlockAliasMap() | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract void | close() | 
| abstract org.apache.hadoop.hdfs.server.common.blockaliasmap.BlockAliasMap.Reader<T> | getReader(org.apache.hadoop.hdfs.server.common.blockaliasmap.BlockAliasMap.Reader.Options opts,
         String blockPoolID)Returns a reader to the alias map. | 
| abstract org.apache.hadoop.hdfs.server.common.blockaliasmap.BlockAliasMap.Writer<T> | getWriter(org.apache.hadoop.hdfs.server.common.blockaliasmap.BlockAliasMap.Writer.Options opts,
         String blockPoolID)Returns the writer for the alias map. | 
| abstract void | refresh()Refresh the alias map. | 
public abstract org.apache.hadoop.hdfs.server.common.blockaliasmap.BlockAliasMap.Reader<T> getReader(org.apache.hadoop.hdfs.server.common.blockaliasmap.BlockAliasMap.Reader.Options opts, String blockPoolID) throws IOException
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.IOExceptionpublic abstract org.apache.hadoop.hdfs.server.common.blockaliasmap.BlockAliasMap.Writer<T> getWriter(org.apache.hadoop.hdfs.server.common.blockaliasmap.BlockAliasMap.Writer.Options opts, String blockPoolID) throws IOException
opts - writer options.blockPoolID - block pool id to useBlockAliasMap.Writer to the alias map.IOExceptionpublic abstract void refresh()
                      throws IOException
IOExceptionpublic abstract void close()
                    throws IOException
IOExceptionCopyright © 2025 Apache Software Foundation. All rights reserved.