热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

org.elasticsearch.search.aggregations.support.ValuesSourceConfig.()方法的使用及代码示例

本文整理了Java中org.elasticsearch.search.aggregations.support.ValuesSourceConfig.()方法的一些代码示例,展示了ValuesSour

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

ValuesSourceConfig.介绍

暂无

代码示例

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

if (script == null) {
@SuppressWarnings("unchecked")
ValuesSourceConfig cOnfig= new ValuesSourceConfig<>(ValuesSourceType.ANY);
config.format(resolveFormat(null, valueType, timeZone));
return config;
ValuesSourceConfig cOnfig= new ValuesSourceConfig(valuesSourceType);
config.missing(missing);
config.timezone(timeZone);
if (fieldType == null) {
ValuesSourceType valuesSourceType = valueType != null ? valueType.getValuesSourceType() : ValuesSourceType.ANY;
ValuesSourceConfig cOnfig= new ValuesSourceConfig<>(valuesSourceType);
config.missing(missing);
config.timezone(timeZone);
if (valueType == null) {
if (indexFieldData instanceof IndexNumericFieldData) {
cOnfig= new ValuesSourceConfig<>(ValuesSourceType.NUMERIC);
} else if (indexFieldData instanceof IndexGeoPointFieldData) {
cOnfig= new ValuesSourceConfig<>(ValuesSourceType.GEOPOINT);
} else {
cOnfig= new ValuesSourceConfig<>(ValuesSourceType.BYTES);
cOnfig= new ValuesSourceConfig<>(valueType.getValuesSourceType());

代码示例来源:origin: org.codelibs.elasticsearch.module/parent-join

@Override
protected ValuesSourceConfig resolveConfig(SearchContext context) {
ValuesSourceConfig cOnfig= new ValuesSourceConfig<>(ValuesSourceType.BYTES);
joinFieldResolveConfig(context, config);
return config;
}

代码示例来源:origin: org.elasticsearch.plugin/parent-join-client

@Override
protected ValuesSourceConfig resolveConfig(SearchContext context) {
ValuesSourceConfig cOnfig= new ValuesSourceConfig<>(ValuesSourceType.BYTES);
joinFieldResolveConfig(context, config);
return config;
}

代码示例来源:origin: org.elasticsearch.plugin/aggs-matrix-stats-client

ValuesSourceConfig cOnfig= new ValuesSourceConfig<>(ValuesSourceType.ANY);
return config.format(resolveFormat(null, valueType));
ValuesSourceConfig cOnfig= new ValuesSourceConfig<>(valuesSourceType);
config.missing(missingMap.get(field));
return config.format(resolveFormat(format, valueType));
if (fieldType == null) {
ValuesSourceType valuesSourceType = valueType != null ? valueType.getValuesSourceType() : this.valuesSourceType;
ValuesSourceConfig cOnfig= new ValuesSourceConfig<>(valuesSourceType);
config.missing(missingMap.get(field));
config.format(resolveFormat(format, valueType));
if (valuesSourceType == ValuesSourceType.ANY) {
if (indexFieldData instanceof IndexNumericFieldData) {
cOnfig= new ValuesSourceConfig<>(ValuesSourceType.NUMERIC);
} else if (indexFieldData instanceof IndexGeoPointFieldData) {
cOnfig= new ValuesSourceConfig<>(ValuesSourceType.GEOPOINT);
} else {
cOnfig= new ValuesSourceConfig<>(ValuesSourceType.BYTES);
cOnfig= new ValuesSourceConfig<>(valuesSourceType);

代码示例来源:origin: org.codelibs.elasticsearch.module/aggs-matrix-stats

ValuesSourceConfig cOnfig= new ValuesSourceConfig<>(ValuesSourceType.ANY);
return config.format(resolveFormat(null, valueType));
ValuesSourceConfig cOnfig= new ValuesSourceConfig<>(valuesSourceType);
config.missing(missingMap.get(field));
return config.format(resolveFormat(format, valueType));
if (fieldType == null) {
ValuesSourceType valuesSourceType = valueType != null ? valueType.getValuesSourceType() : this.valuesSourceType;
ValuesSourceConfig cOnfig= new ValuesSourceConfig<>(valuesSourceType);
config.missing(missingMap.get(field));
config.format(resolveFormat(format, valueType));
if (valuesSourceType == ValuesSourceType.ANY) {
if (indexFieldData instanceof IndexNumericFieldData) {
cOnfig= new ValuesSourceConfig<>(ValuesSourceType.NUMERIC);
} else if (indexFieldData instanceof IndexGeoPointFieldData) {
cOnfig= new ValuesSourceConfig<>(ValuesSourceType.GEOPOINT);
} else {
cOnfig= new ValuesSourceConfig<>(ValuesSourceType.BYTES);
cOnfig= new ValuesSourceConfig<>(valuesSourceType);

代码示例来源:origin: com.strapdata.elasticsearch.plugin/parent-join

@Override
protected ValuesSourceConfig resolveConfig(SearchContext context) {
ValuesSourceConfig cOnfig= new ValuesSourceConfig<>(ValuesSourceType.BYTES);
if (context.mapperService().getIndexSettings().isSingleType()) {
joinFieldResolveConfig(context, config);
} else {
parentFieldResolveConfig(context, config);
}
return config;
}

代码示例来源:origin: org.elasticsearch.plugin/parent-join-client

@Override
protected ValuesSourceConfig resolveConfig(SearchContext context) {
ValuesSourceConfig cOnfig= new ValuesSourceConfig<>(ValuesSourceType.BYTES);
if (context.mapperService().getIndexSettings().isSingleType()) {
joinFieldResolveConfig(context, config);
} else {
parentFieldResolveConfig(context, config);
}
return config;
}

代码示例来源:origin: org.codelibs.elasticsearch.module/parent-join

@Override
protected ValuesSourceConfig resolveConfig(SearchContext context) {
ValuesSourceConfig cOnfig= new ValuesSourceConfig<>(ValuesSourceType.BYTES);
if (context.mapperService().getIndexSettings().isSingleType()) {
joinFieldResolveConfig(context, config);
} else {
parentFieldResolveConfig(context, config);
}
return config;
}

代码示例来源:origin: harbby/presto-connectors

ValuesSourceConfig cOnfig= new ValuesSourceConfig(ValuesSource.class);
config.format = resolveFormat(null, valueType);
return config;
ValuesSourceConfig cOnfig= new ValuesSourceConfig(valuesSourceType);
config.missing = input.missing;
config.format = resolveFormat(input.format, valueType);
if (fieldType == null) {
Class valuesSourceType = valueType != null ? (Class) valueType.getValuesSourceType() : this.valuesSourceType;
ValuesSourceConfig cOnfig= new ValuesSourceConfig<>(valuesSourceType);
config.missing = input.missing;
config.format = resolveFormat(input.format, valueType);
if (valuesSourceType == ValuesSource.class) {
if (indexFieldData instanceof IndexNumericFieldData) {
cOnfig= new ValuesSourceConfig<>(ValuesSource.Numeric.class);
} else if (indexFieldData instanceof IndexGeoPointFieldData) {
cOnfig= new ValuesSourceConfig<>(ValuesSource.GeoPoint.class);
} else {
cOnfig= new ValuesSourceConfig<>(ValuesSource.Bytes.class);
cOnfig= new ValuesSourceConfig(valuesSourceType);

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

if (script == null) {
@SuppressWarnings("unchecked")
ValuesSourceConfig cOnfig= new ValuesSourceConfig<>(ValuesSourceType.ANY);
config.format(resolveFormat(null, valueType, timeZone));
return config;
ValuesSourceConfig cOnfig= new ValuesSourceConfig(valuesSourceType);
config.missing(missing);
config.timezone(timeZone);
if (fieldType == null) {
ValuesSourceType valuesSourceType = valueType != null ? valueType.getValuesSourceType() : ValuesSourceType.ANY;
ValuesSourceConfig cOnfig= new ValuesSourceConfig<>(valuesSourceType);
config.missing(missing);
config.timezone(timeZone);
if (valueType == null) {
if (indexFieldData instanceof IndexNumericFieldData) {
cOnfig= new ValuesSourceConfig<>(ValuesSourceType.NUMERIC);
} else if (indexFieldData instanceof IndexGeoPointFieldData) {
cOnfig= new ValuesSourceConfig<>(ValuesSourceType.GEOPOINT);
} else {
cOnfig= new ValuesSourceConfig<>(ValuesSourceType.BYTES);
cOnfig= new ValuesSourceConfig<>(valueType.getValuesSourceType());

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

if (script == null) {
@SuppressWarnings("unchecked")
ValuesSourceConfig cOnfig= new ValuesSourceConfig<>(ValuesSourceType.ANY);
config.format(resolveFormat(null, valueType));
return config;
ValuesSourceConfig cOnfig= new ValuesSourceConfig(valuesSourceType);
config.missing(missing);
config.timezone(timeZone);
if (fieldType == null) {
ValuesSourceType valuesSourceType = valueType != null ? valueType.getValuesSourceType() : ValuesSourceType.ANY;
ValuesSourceConfig cOnfig= new ValuesSourceConfig<>(valuesSourceType);
config.missing(missing);
config.timezone(timeZone);
if (valueType == null) {
if (indexFieldData instanceof IndexNumericFieldData) {
cOnfig= new ValuesSourceConfig<>(ValuesSourceType.NUMERIC);
} else if (indexFieldData instanceof IndexGeoPointFieldData) {
cOnfig= new ValuesSourceConfig<>(ValuesSourceType.GEOPOINT);
} else {
cOnfig= new ValuesSourceConfig<>(ValuesSourceType.BYTES);
cOnfig= new ValuesSourceConfig<>(valueType.getValuesSourceType());

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

if (script == null) {
@SuppressWarnings("unchecked")
ValuesSourceConfig cOnfig= new ValuesSourceConfig<>(ValuesSourceType.ANY);
config.format(resolveFormat(null, valueType));
return config;
ValuesSourceConfig cOnfig= new ValuesSourceConfig(valuesSourceType);
config.missing(missing);
config.timezone(timeZone);
if (fieldType == null) {
ValuesSourceType valuesSourceType = valueType != null ? valueType.getValuesSourceType() : ValuesSourceType.ANY;
ValuesSourceConfig cOnfig= new ValuesSourceConfig<>(valuesSourceType);
config.missing(missing);
config.timezone(timeZone);
if (valueType == null) {
if (indexFieldData instanceof IndexNumericFieldData) {
cOnfig= new ValuesSourceConfig<>(ValuesSourceType.NUMERIC);
} else if (indexFieldData instanceof IndexGeoPointFieldData) {
cOnfig= new ValuesSourceConfig<>(ValuesSourceType.GEOPOINT);
} else {
cOnfig= new ValuesSourceConfig<>(ValuesSourceType.BYTES);
cOnfig= new ValuesSourceConfig<>(valueType.getValuesSourceType());

代码示例来源:origin: algolia/elasticsearch-topk-plugin

@Override
public AggregatorFactory parse(String aggregationName, XContentParser parser, SearchContext context) throws IOException {
ValuesSourceConfig cOnfig= new ValuesSourceConfig<>(ValuesSource.Bytes.class);

代码示例来源:origin: harbby/presto-connectors

ValuesSourceConfig cOnfig= new ValuesSourceConfig<>(ValuesSource.Bytes.WithOrdinals.ParentChild.class);
DocumentMapper childDocMapper = context.mapperService().documentMapper(childType);

推荐阅读
  • 自动轮播,反转播放的ViewPagerAdapter的使用方法和效果展示
    本文介绍了如何使用自动轮播、反转播放的ViewPagerAdapter,并展示了其效果。该ViewPagerAdapter支持无限循环、触摸暂停、切换缩放等功能。同时提供了使用GIF.gif的示例和github地址。通过LoopFragmentPagerAdapter类的getActualCount、getActualItem和getActualPagerTitle方法可以实现自定义的循环效果和标题展示。 ... [详细]
  • 开发笔记:加密&json&StringIO模块&BytesIO模块
    篇首语:本文由编程笔记#小编为大家整理,主要介绍了加密&json&StringIO模块&BytesIO模块相关的知识,希望对你有一定的参考价值。一、加密加密 ... [详细]
  • 目录实现效果:实现环境实现方法一:基本思路主要代码JavaScript代码总结方法二主要代码总结方法三基本思路主要代码JavaScriptHTML总结实 ... [详细]
  • 如何使用Java获取服务器硬件信息和磁盘负载率
    本文介绍了使用Java编程语言获取服务器硬件信息和磁盘负载率的方法。首先在远程服务器上搭建一个支持服务端语言的HTTP服务,并获取服务器的磁盘信息,并将结果输出。然后在本地使用JS编写一个AJAX脚本,远程请求服务端的程序,得到结果并展示给用户。其中还介绍了如何提取硬盘序列号的方法。 ... [详细]
  • Spring特性实现接口多类的动态调用详解
    本文详细介绍了如何使用Spring特性实现接口多类的动态调用。通过对Spring IoC容器的基础类BeanFactory和ApplicationContext的介绍,以及getBeansOfType方法的应用,解决了在实际工作中遇到的接口及多个实现类的问题。同时,文章还提到了SPI使用的不便之处,并介绍了借助ApplicationContext实现需求的方法。阅读本文,你将了解到Spring特性的实现原理和实际应用方式。 ... [详细]
  • Ihavethefollowingonhtml我在html上有以下内容<html><head><scriptsrc..3003_Tes ... [详细]
  • 本文介绍了在处理不规则数据时如何使用Python自动提取文本中的时间日期,包括使用dateutil.parser模块统一日期字符串格式和使用datefinder模块提取日期。同时,还介绍了一段使用正则表达式的代码,可以支持中文日期和一些特殊的时间识别,例如'2012年12月12日'、'3小时前'、'在2012/12/13哈哈'等。 ... [详细]
  • java drools5_Java Drools5.1 规则流基础【示例】(中)
    五、规则文件及规则流EduInfoRule.drl:packagemyrules;importsample.Employ;ruleBachelorruleflow-group ... [详细]
  • 本文详细介绍了GetModuleFileName函数的用法,该函数可以用于获取当前模块所在的路径,方便进行文件操作和读取配置信息。文章通过示例代码和详细的解释,帮助读者理解和使用该函数。同时,还提供了相关的API函数声明和说明。 ... [详细]
  • 在Docker中,将主机目录挂载到容器中作为volume使用时,常常会遇到文件权限问题。这是因为容器内外的UID不同所导致的。本文介绍了解决这个问题的方法,包括使用gosu和suexec工具以及在Dockerfile中配置volume的权限。通过这些方法,可以避免在使用Docker时出现无写权限的情况。 ... [详细]
  • 本文介绍了设计师伊振华受邀参与沈阳市智慧城市运行管理中心项目的整体设计,并以数字赋能和创新驱动高质量发展的理念,建设了集成、智慧、高效的一体化城市综合管理平台,促进了城市的数字化转型。该中心被称为当代城市的智能心脏,为沈阳市的智慧城市建设做出了重要贡献。 ... [详细]
  • Java容器中的compareto方法排序原理解析
    本文从源码解析Java容器中的compareto方法的排序原理,讲解了在使用数组存储数据时的限制以及存储效率的问题。同时提到了Redis的五大数据结构和list、set等知识点,回忆了作者大学时代的Java学习经历。文章以作者做的思维导图作为目录,展示了整个讲解过程。 ... [详细]
  • 如何用UE4制作2D游戏文档——计算篇
    篇首语:本文由编程笔记#小编为大家整理,主要介绍了如何用UE4制作2D游戏文档——计算篇相关的知识,希望对你有一定的参考价值。 ... [详细]
  • 安卓select模态框样式改变_微软Office风格的多端(Web、安卓、iOS)组件库——Fabric UI...
    介绍FabricUI是微软开源的一套Office风格的多端组件库,共有三套针对性的组件,分别适用于web、android以及iOS,Fab ... [详细]
  • 使用在线工具jsonschema2pojo根据json生成java对象
    本文介绍了使用在线工具jsonschema2pojo根据json生成java对象的方法。通过该工具,用户只需将json字符串复制到输入框中,即可自动将其转换成java对象。该工具还能解析列表式的json数据,并将嵌套在内层的对象也解析出来。本文以请求github的api为例,展示了使用该工具的步骤和效果。 ... [详细]
author-avatar
上善若水纯_310
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有