当前位置: 首页>>代码示例>>Java>>正文


Java NativeScriptFactory类代码示例

本文整理汇总了Java中org.elasticsearch.script.NativeScriptFactory的典型用法代码示例。如果您正苦于以下问题:Java NativeScriptFactory类的具体用法?Java NativeScriptFactory怎么用?Java NativeScriptFactory使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


NativeScriptFactory类属于org.elasticsearch.script包,在下文中一共展示了NativeScriptFactory类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getNativeScripts

import org.elasticsearch.script.NativeScriptFactory; //导入依赖的package包/类
@Override
public List<NativeScriptFactory> getNativeScripts() {
    // add all your script instances to the list
    List<NativeScriptFactory> list = new ArrayList<>();
    list.add(new ScoreScript.Factory());
    return list;
}
 
开发者ID:ishare,项目名称:elasticsearch-native-script-template,代码行数:8,代码来源:NativeScriptPlugin.java

示例2: getNativeScripts

import org.elasticsearch.script.NativeScriptFactory; //导入依赖的package包/类
@Override
public List<NativeScriptFactory> getNativeScripts() {
    return Arrays.asList(
        new IsPrimeSearchScriptFactory(settings),
        new InitScriptFactory(),
        new MapScriptFactory(),
        new CombineScriptFactory(),
        new ReduceScriptFactory()
    );
}
 
开发者ID:imotov,项目名称:elasticsearch-native-script-example,代码行数:11,代码来源:NativeScriptExamplesPlugin.java

示例3: getNativeScripts

import org.elasticsearch.script.NativeScriptFactory; //导入依赖的package包/类
/**
 * Returns a list of {@link NativeScriptFactory} instances.
 */
default List<NativeScriptFactory> getNativeScripts() {
    return Collections.emptyList();
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:7,代码来源:ScriptPlugin.java

示例4: getNativeScripts

import org.elasticsearch.script.NativeScriptFactory; //导入依赖的package包/类
@Override
public List<NativeScriptFactory> getNativeScripts() {
    return Collections.singletonList(new CustomNativeScriptFactory());
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:5,代码来源:UpdateByNativeScriptIT.java

示例5: getNativeScripts

import org.elasticsearch.script.NativeScriptFactory; //导入依赖的package包/类
@Override
public List<NativeScriptFactory> getNativeScripts() {
    return Arrays.asList(new NativeSignificanceScoreScriptNoParams.Factory(),
            new NativeSignificanceScoreScriptWithParams.Factory());
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:6,代码来源:SignificantTermsSignificanceScoreIT.java

示例6: getNativeScripts

import org.elasticsearch.script.NativeScriptFactory; //导入依赖的package包/类
@Override
public List<NativeScriptFactory> getNativeScripts() {
    return Arrays.asList(new ExtractFieldScriptFactory(), new PlusOneMonthScriptFactory());
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:5,代码来源:DateScriptMocks.java

示例7: getNativeScripts

import org.elasticsearch.script.NativeScriptFactory; //导入依赖的package包/类
@Override
public List<NativeScriptFactory> getNativeScripts() {
    return Collections.singletonList(new DummyScriptFactory());
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:5,代码来源:IpRangeIT.java

示例8: getNativeScripts

import org.elasticsearch.script.NativeScriptFactory; //导入依赖的package包/类
@Override
public List<NativeScriptFactory> getNativeScripts() {
    return Collections.singletonList(new ExplainableScriptIT.MyNativeScriptFactory());
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:5,代码来源:ExplainableScriptPlugin.java

示例9: getNativeScripts

import org.elasticsearch.script.NativeScriptFactory; //导入依赖的package包/类
@Override
public List<NativeScriptFactory> getNativeScripts() {
    return Collections.singletonList(new NativeTestScriptedTimeout.Factory());
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:5,代码来源:SearchTimeoutIT.java

示例10: getNativeScripts

import org.elasticsearch.script.NativeScriptFactory; //导入依赖的package包/类
@Override
public List<NativeScriptFactory> getNativeScripts() {
    return Collections.singletonList(scriptedBlockFactory);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:5,代码来源:SearchCancellationIT.java

示例11: getNativeScripts

import org.elasticsearch.script.NativeScriptFactory; //导入依赖的package包/类
@Override
public List<NativeScriptFactory> getNativeScripts() {
    return Collections.singletonList(new DeletePlzFactory());
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:5,代码来源:WaitUntilRefreshIT.java

示例12: getNativeScripts

import org.elasticsearch.script.NativeScriptFactory; //导入依赖的package包/类
@Override
public List<NativeScriptFactory> getNativeScripts() {
    return Collections.singletonList(new FeatureVectorScoringSearchScript.ScriptFactory());
}
 
开发者ID:ginobefun,项目名称:elasticsearch-feature-vector-scoring,代码行数:5,代码来源:FeatureVectorScoringPlugin.java

示例13: getNativeScripts

import org.elasticsearch.script.NativeScriptFactory; //导入依赖的package包/类
@Override
public List<NativeScriptFactory> getNativeScripts() {
    return Collections.singletonList(new PayloadVectorScoreScript.Factory());
}
 
开发者ID:MLnick,项目名称:elasticsearch-vector-scoring,代码行数:5,代码来源:VectorScoringPlugin.java

示例14: getNativeScripts

import org.elasticsearch.script.NativeScriptFactory; //导入依赖的package包/类
@Override
public List<NativeScriptFactory> getNativeScripts() {
    return Collections.singletonList(new VectorScriptFactory());
}
 
开发者ID:brwe,项目名称:es-token-plugin,代码行数:5,代码来源:TokenPlugin.java


注:本文中的org.elasticsearch.script.NativeScriptFactory类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。