public class JsonUtil extends Object
构造器和说明 |
---|
JsonUtil() |
限定符和类型 | 方法和说明 |
---|---|
static ContentSummary |
toContentSummary(Map<?,?> json)
Convert a Json map to a ContentSummary.
|
static Token<DelegationTokenIdentifier> |
toDelegationToken(Map<?,?> json)
Convert a Json map to a Token of DelegationTokenIdentifier.
|
static HdfsFileStatus |
toFileStatus(Map<?,?> json,
boolean includesType)
Convert a Json map to a HdfsFileStatus object.
|
static String |
toJsonString(ContentSummary contentsummary)
Convert a ContentSummary to a Json string.
|
static String |
toJsonString(Exception e)
Convert an exception object to a Json string.
|
static String |
toJsonString(HdfsFileStatus status,
boolean includeType)
Convert a HdfsFileStatus object to a Json string.
|
static String |
toJsonString(LocatedBlocks locatedblocks)
Convert LocatedBlocks to a Json string.
|
static String |
toJsonString(MD5MD5CRC32FileChecksum checksum)
Convert a MD5MD5CRC32FileChecksum to a Json string.
|
static String |
toJsonString(String key,
Object value)
Convert a key-value pair to a Json string.
|
static String |
toJsonString(Token<? extends TokenIdentifier> token)
Convert a token object to a Json string.
|
static LocatedBlocks |
toLocatedBlocks(Map<?,?> json)
Convert a Json map to LocatedBlock.
|
static MD5MD5CRC32FileChecksum |
toMD5MD5CRC32FileChecksum(Map<?,?> json)
Convert a Json map to a MD5MD5CRC32FileChecksum.
|
static RemoteException |
toRemoteException(Map<?,?> json)
Convert a Json map to a RemoteException.
|
static Token<? extends TokenIdentifier> |
toToken(Map<?,?> m)
Convert a Json map to a Token.
|
public static String toJsonString(Token<? extends TokenIdentifier> token) throws IOException
IOException
public static Token<? extends TokenIdentifier> toToken(Map<?,?> m) throws IOException
IOException
public static Token<DelegationTokenIdentifier> toDelegationToken(Map<?,?> json) throws IOException
IOException
public static String toJsonString(Exception e)
public static RemoteException toRemoteException(Map<?,?> json)
public static String toJsonString(String key, Object value)
public static String toJsonString(HdfsFileStatus status, boolean includeType)
public static HdfsFileStatus toFileStatus(Map<?,?> json, boolean includesType)
public static String toJsonString(LocatedBlocks locatedblocks) throws IOException
IOException
public static LocatedBlocks toLocatedBlocks(Map<?,?> json) throws IOException
IOException
public static String toJsonString(ContentSummary contentsummary)
public static ContentSummary toContentSummary(Map<?,?> json)
public static String toJsonString(MD5MD5CRC32FileChecksum checksum)
public static MD5MD5CRC32FileChecksum toMD5MD5CRC32FileChecksum(Map<?,?> json) throws IOException
IOException
Copyright © 2009 The Apache Software Foundation