Java 类org.apache.hadoop.hbase.util.JsonMapper 实例源码

项目:ditb    文件:Operation.java   
/**
 * Produces a JSON object for fingerprint and details exposure in a
 * parseable format.
 * @param maxCols a limit on the number of columns to include in the JSON
 * @return a JSONObject containing this Operation's information, as a string
 */
public String toJSON(int maxCols) throws IOException {
  return JsonMapper.writeMapAsString(toMap(maxCols));
}
项目:pbase    文件:Operation.java   
/**
 * Produces a JSON object for fingerprint and details exposure in a
 * parseable format.
 * @param maxCols a limit on the number of columns to include in the JSON
 * @return a JSONObject containing this Operation's information, as a string
 */
public String toJSON(int maxCols) throws IOException {
  return JsonMapper.writeMapAsString(toMap(maxCols));
}
项目:hbase    文件:Operation.java   
/**
 * Produces a JSON object for fingerprint and details exposure in a
 * parseable format.
 * @param maxCols a limit on the number of columns to include in the JSON
 * @return a JSONObject containing this Operation's information, as a string
 */
public String toJSON(int maxCols) throws IOException {
  return JsonMapper.writeMapAsString(toMap(maxCols));
}