Class DataNodeLayoutSubLockStrategy
java.lang.Object
org.apache.hadoop.hdfs.server.datanode.DataNodeLayoutSubLockStrategy
- All Implemented Interfaces:
DataSetSubLockStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblockIdToSubLock(long blockid) Generate sub lock name for the given blockid.
-
Constructor Details
-
DataNodeLayoutSubLockStrategy
public DataNodeLayoutSubLockStrategy()
-
-
Method Details
-
blockIdToSubLock
Description copied from interface:DataSetSubLockStrategyGenerate sub lock name for the given blockid.- Specified by:
blockIdToSubLockin interfaceDataSetSubLockStrategy- Parameters:
blockid- the block id.- Returns:
- sub lock name for the input blockid.
-
getAllSubLockNames
- Specified by:
getAllSubLockNamesin interfaceDataSetSubLockStrategy
-