@Override
    public List<HdfsFileErasureCodingPolicy> getAllErasureCodingPolicies() throws IOException {
      ErasureCodingPolicyInfo[] erasureCodingPolicies = hdfsAdmin.getErasureCodingPolicies();
      List<HdfsFileErasureCodingPolicy> policies = new ArrayList<>(erasureCodingPolicies.length);
      for (ErasureCodingPolicyInfo erasureCodingPolicy : erasureCodingPolicies) {
        policies.add(new HdfsFileErasureCodingPolicyImpl(erasureCodingPolicy.getPolicy().getName(),
            erasureCodingPolicy.getState().toString()));
      }
      return policies;
    }
Lists all (enabled, disabled and removed) erasure coding policies registered in HDFS.
@return a list of erasure coding policies
shims/0.23/src/main/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java