@InterfaceAudience.Public @InterfaceStability.Unstable public class LevelDBFileRegionAliasMap extends BlockAliasMap<FileRegion> implements Configurable
BlockAliasMap
.Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
LevelDBFileRegionAliasMap() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Configuration |
getConf()
Return the configuration used by this object.
|
org.apache.hadoop.hdfs.server.common.blockaliasmap.BlockAliasMap.Reader<FileRegion> |
getReader(org.apache.hadoop.hdfs.server.common.blockaliasmap.BlockAliasMap.Reader.Options opts,
String blockPoolID)
Returns a reader to the alias map.
|
org.apache.hadoop.hdfs.server.common.blockaliasmap.BlockAliasMap.Writer<FileRegion> |
getWriter(org.apache.hadoop.hdfs.server.common.blockaliasmap.BlockAliasMap.Writer.Options opts,
String blockPoolID)
Returns the writer for the alias map.
|
void |
refresh()
Refresh the alias map.
|
void |
setConf(Configuration conf)
Set the configuration to be used by this object.
|
public void setConf(Configuration conf)
Configurable
setConf
in interface Configurable
conf
- configuration to be usedpublic Configuration getConf()
Configurable
getConf
in interface Configurable
public org.apache.hadoop.hdfs.server.common.blockaliasmap.BlockAliasMap.Reader<FileRegion> getReader(org.apache.hadoop.hdfs.server.common.blockaliasmap.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 org.apache.hadoop.hdfs.server.common.blockaliasmap.BlockAliasMap.Writer<FileRegion> getWriter(org.apache.hadoop.hdfs.server.common.blockaliasmap.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 © 2019 Apache Software Foundation. All rights reserved.