Example usage for org.apache.hadoop.hdfs.protocol HdfsConstants MEMORY_STORAGE_POLICY_NAME

List of usage examples for org.apache.hadoop.hdfs.protocol HdfsConstants MEMORY_STORAGE_POLICY_NAME

Introduction

In this page you can find the example usage for org.apache.hadoop.hdfs.protocol HdfsConstants MEMORY_STORAGE_POLICY_NAME.

Prototype

String MEMORY_STORAGE_POLICY_NAME

To view the source code for org.apache.hadoop.hdfs.protocol HdfsConstants MEMORY_STORAGE_POLICY_NAME.

Click Source Link

Usage

From source file:com.mellanox.r4h.DFSOutputStream.java

License:Apache License

private static boolean isLazyPersist(HdfsFileStatus stat) {
    final BlockStoragePolicy p = blockStoragePolicySuite.getPolicy(HdfsConstants.MEMORY_STORAGE_POLICY_NAME);
    return p != null && stat.getStoragePolicy() == p.getId();
}