com.aerospike.client.Value.getAsGeoJSON()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(121)

本文整理了Java中com.aerospike.client.Value.getAsGeoJSON()方法的一些代码示例,展示了Value.getAsGeoJSON()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Value.getAsGeoJSON()方法的具体详情如下:
包路径:com.aerospike.client.Value
类名称:Value
方法名:getAsGeoJSON

Value.getAsGeoJSON介绍

[英]Get GeoJSON or null value instance.
[中]获取GeoJSON或空值实例。

代码示例

代码示例来源:origin: com.aerospike/aerospike-client

@Override
  protected Object getGeoJSON(String value) {
    return Value.getAsGeoJSON(value);
  }
}

代码示例来源:origin: aerospike/aerospike-client-java

@Override
  protected Object getGeoJSON(String value) {
    return Value.getAsGeoJSON(value);
  }
}

代码示例来源:origin: com.aerospike/aerospike-client

/**
 * Create bin with a GeoJSON value.
 *
 * @param name        bin name, current limit is 14 characters
 * @param value        bin value
 */
public static Bin asGeoJSON(String name, String value) {
  return new Bin(name, Value.getAsGeoJSON(value));
}

代码示例来源:origin: aerospike/aerospike-client-java

/**
 * Create bin with a GeoJSON value.
 *
 * @param name        bin name, current limit is 14 characters
 * @param value        bin value
 */
public static Bin asGeoJSON(String name, String value) {
  return new Bin(name, Value.getAsGeoJSON(value));
}

代码示例来源:origin: com.aerospike/aerospike-client

public static Object bytesToGeoJSON(byte[] buf, int offset, int len) {
  // Ignore the flags for now
  int ncells = bytesToShort(buf, offset + 1);
  int hdrsz = 1 + 2 + (ncells * 8);
  return Value.getAsGeoJSON(Buffer.utf8ToString(buf, offset + hdrsz, len - hdrsz));
}

代码示例来源:origin: aerospike/aerospike-client-java

public static Object bytesToGeoJSON(byte[] buf, int offset, int len) {
  // Ignore the flags for now
  int ncells = bytesToShort(buf, offset + 1);
  int hdrsz = 1 + 2 + (ncells * 8);
  return Value.getAsGeoJSON(Buffer.utf8ToString(buf, offset + hdrsz, len - hdrsz));
}

代码示例来源:origin: aerospike/aerospike-client-java

String geoString = generatePoint(plat, plng);
map.put(Value.getAsGeoJSON(geoString),valuePrefix+"pointkey_"+i+"_"+jj);
map.put(Value.getAsGeoJSON(geoString), valuePrefix+"regionkey_"+i+"_"+jj);

代码示例来源:origin: aerospike/aerospike-client-java

String geoString = generatePoint(plat, plng);
map.put(valuePrefix+"pointkey_"+i+"_"+jj, Value.getAsGeoJSON(geoString));
map.put(valuePrefix+"regionkey_"+i+"_"+jj, Value.getAsGeoJSON(geoString));

代码示例来源:origin: aerospike/aerospike-client-java

String geoString = generatePoint(plat, plng);
mylist.add(Value.getAsGeoJSON(geoString));
mylist.add(Value.getAsGeoJSON(geoString));

相关文章

微信公众号

最新文章

更多