DataSetSubLockStrategy (Apache Hadoop HDFS 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.server.datanode, interface: DataSetSubLockStrategy

Package org.apache.hadoop.hdfs.server.datanode

# Interface DataSetSubLockStrategy

All Known Implementing Classes:
  `DataNodeLayoutSubLockStrategy`

public interface DataSetSubLockStrategy
This interface is used to generate sub lock name for a blockid.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `blockIdToSubLock(long blockid)`
  Generate sub lock name for the given blockid.
  `List<String>`
  `getAllSubLockNames()`

- ## Method Details

  - ### blockIdToSubLock

    String blockIdToSubLock(long blockid)
    Generate sub lock name for the given blockid.
    Parameters:
      `blockid` - the block id.
    Returns:
      sub lock name for the input blockid.

  - ### getAllSubLockNames

    List<String> getAllSubLockNames()