MappableBlockLoaderFactory (Apache Hadoop HDFS 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.server.datanode.fsdataset.impl, class: MappableBlockLoaderFactory

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

# Class MappableBlockLoaderFactory

java.lang.Object
org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.MappableBlockLoaderFactory

@Private @Unstable public final class MappableBlockLoaderFactory extends Object
Creates MappableBlockLoader.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static MappableBlockLoader`
  `createCacheLoader(DNConf conf)`
  Create a specific cache loader according to the configuration.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### createCacheLoader

    public static MappableBlockLoader createCacheLoader(DNConf conf)
    Create a specific cache loader according to the configuration. If persistent memory volume is not configured, return a cache loader for DRAM cache. Otherwise, return a cache loader for pmem cache.