Example usage for org.apache.hadoop.hdfs.protocol BlockStoragePolicy getId

List of usage examples for org.apache.hadoop.hdfs.protocol BlockStoragePolicy getId

Introduction

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

Prototype

public byte getId() 

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();
}