@InterfaceAudience.Public @InterfaceStability.Unstable public abstract class BlockAliasMap<T extends BlockAlias> extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
BlockAliasMap.ImmutableIterator
ImmutableIterator is an Iterator that does not support the remove
operation.
|
static class |
BlockAliasMap.Reader<U extends BlockAlias>
An abstract class that is used to read
BlockAliases
for provided blocks. |
static class |
BlockAliasMap.Writer<U extends BlockAlias>
An abstract class used as a writer for the provided block map.
|
| Constructor and Description |
|---|
BlockAliasMap() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close() |
abstract BlockAliasMap.Reader<T> |
getReader(BlockAliasMap.Reader.Options opts,
String blockPoolID)
Returns a reader to the alias map.
|
abstract BlockAliasMap.Writer<T> |
getWriter(BlockAliasMap.Writer.Options opts,
String blockPoolID)
Returns the writer for the alias map.
|
abstract void |
refresh()
Refresh the alias map.
|
public abstract BlockAliasMap.Reader<T> getReader(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 BlockAliasMap.Writer<T> getWriter(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 © 2008–2024 Apache Software Foundation. All rights reserved.