InMemoryAliasMap, InMemoryAliasMapProtocolClientSideTranslatorPB, InMemoryLevelDBAliasMapServer@Private
@Unstable
public interface InMemoryAliasMapProtocol
BlockAliasMap.| Modifier and Type | Interface | Description |
|---|---|---|
static class |
InMemoryAliasMapProtocol.IterationResult |
The result of a read from the in-memory aliasmap.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getBlockPoolId() |
Get the associated block pool id.
|
InMemoryAliasMapProtocol.IterationResult |
list(java.util.Optional<org.apache.hadoop.hdfs.protocol.Block> marker) |
List the next batch of
FileRegions in the alias map starting from
the given marker. |
java.util.Optional<org.apache.hadoop.hdfs.protocol.ProvidedStorageLocation> |
read(org.apache.hadoop.hdfs.protocol.Block block) |
Gets the
ProvidedStorageLocation associated with the
specified block. |
void |
write(org.apache.hadoop.hdfs.protocol.Block block,
org.apache.hadoop.hdfs.protocol.ProvidedStorageLocation providedStorageLocation) |
Stores the block and it's associated
ProvidedStorageLocation
in the alias map. |
InMemoryAliasMapProtocol.IterationResult list(java.util.Optional<org.apache.hadoop.hdfs.protocol.Block> marker) throws java.io.IOException
FileRegions in the alias map starting from
the given marker. To retrieve all FileRegions stored in the
alias map, multiple calls to this function might be required.marker - the next block to get fileregions from.InMemoryAliasMapProtocol.IterationResult with a set of
FileRegions and the next marker.java.io.IOException@Nonnull
java.util.Optional<org.apache.hadoop.hdfs.protocol.ProvidedStorageLocation> read(@Nonnull
org.apache.hadoop.hdfs.protocol.Block block)
throws java.io.IOException
ProvidedStorageLocation associated with the
specified block.block - the block to lookupProvidedStorageLocation.java.io.IOExceptionvoid write(@Nonnull
org.apache.hadoop.hdfs.protocol.Block block,
@Nonnull
org.apache.hadoop.hdfs.protocol.ProvidedStorageLocation providedStorageLocation)
throws java.io.IOException
ProvidedStorageLocation
in the alias map.block - providedStorageLocation - java.io.IOExceptionjava.lang.String getBlockPoolId()
throws java.io.IOException
java.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.