@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.IOException
public 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.IOException
public abstract void refresh() throws IOException
IOException
public abstract void close() throws IOException
IOException
Copyright © 2018 Apache Software Foundation. All rights reserved.