@InterfaceAudience.Public @InterfaceStability.Unstable public class LevelDBFileRegionAliasMap extends BlockAliasMap<FileRegion> implements org.apache.hadoop.conf.Configurable
BlockAliasMap
.Modifier and Type | Class and Description |
---|---|
static class |
LevelDBFileRegionAliasMap.LevelDBOptions
Class specifying reader options for the
LevelDBFileRegionAliasMap . |
static class |
LevelDBFileRegionAliasMap.LevelDBReader
This class is used as a reader for block maps which
are stored as LevelDB files.
|
static class |
LevelDBFileRegionAliasMap.LevelDBWriter
This class is used as a writer for block maps which
are stored as LevelDB files.
|
BlockAliasMap.ImmutableIterator, BlockAliasMap.Reader<U extends BlockAlias>, BlockAliasMap.Writer<U extends BlockAlias>
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
LevelDBFileRegionAliasMap() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
org.apache.hadoop.conf.Configuration |
getConf() |
BlockAliasMap.Reader<FileRegion> |
getReader(BlockAliasMap.Reader.Options opts,
String blockPoolID)
Returns a reader to the alias map.
|
BlockAliasMap.Writer<FileRegion> |
getWriter(BlockAliasMap.Writer.Options opts,
String blockPoolID)
Returns the writer for the alias map.
|
void |
refresh()
Refresh the alias map.
|
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf
in interface org.apache.hadoop.conf.Configurable
public org.apache.hadoop.conf.Configuration getConf()
getConf
in interface org.apache.hadoop.conf.Configurable
public BlockAliasMap.Reader<FileRegion> getReader(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 BlockAliasMap.Writer<FileRegion> getWriter(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 © 2008–2024 Apache Software Foundation. All rights reserved.