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