org.elasticsearch.common.xcontent.XContentBuilder.latlon()方法的使用及代码示例

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

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

XContentBuilder.latlon介绍

暂无

代码示例

代码示例来源:origin: org.elasticsearch/elasticsearch

@Override
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
  return builder.latlon(lat, lon);
}

代码示例来源:origin: apache/servicemix-bundles

@Override
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
  return builder.latlon(lat, lon);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

@Override
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
  return builder.latlon(lat, lon);
}

代码示例来源:origin: com.strapdata.elasticsearch/elasticsearch

public XContentBuilder latlon(String name, double lat, double lon) throws IOException {
  return field(name).latlon(lat, lon);
}

代码示例来源:origin: org.elasticsearch/elasticsearch-x-content

public XContentBuilder latlon(String name, double lat, double lon) throws IOException {
  return field(name).latlon(lat, lon);
}

代码示例来源:origin: com.strapdata.elasticsearch/elasticsearch

public XContentBuilder value(GeoPoint value) throws IOException {
  if (value == null) {
    return nullValue();
  }
  return latlon(value.getLat(), value.getLon());
}

代码示例来源:origin: judasn/Elasticsearch-Tutorial-zh-CN

.startObject()
.field("shop_name", "麻辣香锅1")
.latlon("location", 40.12, -71.34)
.field("created_date_time", new SimpleDateFormat("yyyyMMdd'T'HHmmss.SSSZ").format(new Date()))
.field("last_modified_date_time", new SimpleDateFormat("yyyyMMdd'T'HHmmss.SSSZ").format(new Date()))
.startObject()
.field("shop_name", "麻辣香锅2")
.latlon("location", 40.12, -72.34)
.field("created_date_time", new SimpleDateFormat("yyyyMMdd'T'HHmmss.SSSZ").format(new Date()))
.field("last_modified_date_time", new SimpleDateFormat("yyyyMMdd'T'HHmmss.SSSZ").format(new Date()))
.startObject()
.field("shop_name", "麻辣香锅3")
.latlon("location", 40.12, -73.34)
.field("created_date_time", new SimpleDateFormat("yyyyMMdd'T'HHmmss.SSSZ").format(new Date()))
.field("last_modified_date_time", new SimpleDateFormat("yyyyMMdd'T'HHmmss.SSSZ").format(new Date()))

代码示例来源:origin: apache/servicemix-bundles

@FunctionalInterface
private interface Writer {
  void write(XContentBuilder builder, Object value) throws IOException;
}

相关文章

微信公众号

最新文章

更多