@Override
    public HdfsFileErasureCodingPolicy getErasureCodingPolicy(Path path) throws IOException {
      ErasureCodingPolicy erasureCodingPolicy = hdfsAdmin.getErasureCodingPolicy(path);
      if (erasureCodingPolicy == null) {
        return null;
      }
      return new HdfsFileErasureCodingPolicyImpl(erasureCodingPolicy.getName());
    }
Get details of the erasure coding policy of a file or directory at the specified path.
@param path an hdfs file or directory
@return an erasure coding policy
shims/0.23/src/main/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java