public class JsonUtilClient extends Object
Constructor and Description |
---|
JsonUtilClient() |
Modifier and Type | Method and Description |
---|---|
static Collection<org.apache.hadoop.hdfs.protocol.BlockStoragePolicy> |
getStoragePolicies(Map<?,?> json) |
static org.apache.hadoop.hdfs.protocol.BlockStoragePolicy |
toBlockStoragePolicy(Map<?,?> m) |
static org.apache.hadoop.hdfs.protocol.ErasureCodingPolicy |
toECPolicy(Map<?,?> m) |
static org.apache.hadoop.hdfs.protocol.HdfsFileStatus |
toFileStatus(Map<?,?> json,
boolean includesType)
Convert a Json map to a HdfsFileStatus object.
|
static org.apache.hadoop.fs.FsServerDefaults |
toFsServerDefaults(Map<?,?> json) |
static SnapshotDiffReport |
toSnapshotDiffReport(Map<?,?> json) |
static SnapshottableDirectoryStatus[] |
toSnapshottableDirectoryList(Map<?,?> json) |
public static org.apache.hadoop.hdfs.protocol.HdfsFileStatus toFileStatus(Map<?,?> json, boolean includesType)
public static Collection<org.apache.hadoop.hdfs.protocol.BlockStoragePolicy> getStoragePolicies(Map<?,?> json)
public static org.apache.hadoop.hdfs.protocol.BlockStoragePolicy toBlockStoragePolicy(Map<?,?> m)
public static org.apache.hadoop.hdfs.protocol.ErasureCodingPolicy toECPolicy(Map<?,?> m)
public static org.apache.hadoop.fs.FsServerDefaults toFsServerDefaults(Map<?,?> json)
public static SnapshotDiffReport toSnapshotDiffReport(Map<?,?> json)
public static SnapshottableDirectoryStatus[] toSnapshottableDirectoryList(Map<?,?> json)
Copyright © 2008–2020 Apache Software Foundation. All rights reserved.