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


Java BytesRefHash类代码示例

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


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

示例1: FreqTermsEnum

import org.elasticsearch.common.util.BytesRefHash; //导入依赖的package包/类
public FreqTermsEnum(IndexReader reader, String field, boolean needDocFreq, boolean needTotalTermFreq, @Nullable Query filter, BigArrays bigArrays) throws IOException {
    super(reader, field, needTotalTermFreq ? PostingsEnum.FREQS : PostingsEnum.NONE, filter);
    this.bigArrays = bigArrays;
    this.needDocFreqs = needDocFreq;
    this.needTotalTermFreqs = needTotalTermFreq;
    if (needDocFreq) {
        termDocFreqs = bigArrays.newIntArray(INITIAL_NUM_TERM_FREQS_CACHED, false);
    } else {
        termDocFreqs = null;
    }
    if (needTotalTermFreq) {
        termsTotalFreqs = bigArrays.newLongArray(INITIAL_NUM_TERM_FREQS_CACHED, false);
    } else {
        termsTotalFreqs = null;
    }
    cachedTermOrds = new BytesRefHash(INITIAL_NUM_TERM_FREQS_CACHED, bigArrays);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:18,代码来源:FreqTermsEnum.java

示例2: StringTermsAggregator

import org.elasticsearch.common.util.BytesRefHash; //导入依赖的package包/类
public StringTermsAggregator(String name, AggregatorFactories factories, ValuesSource valuesSource,
        Terms.Order order, DocValueFormat format, BucketCountThresholds bucketCountThresholds,
        IncludeExclude.StringFilter includeExclude, SearchContext context,
        Aggregator parent, SubAggCollectionMode collectionMode, boolean showTermDocCountError,
        List<PipelineAggregator> pipelineAggregators, Map<String, Object> metaData) throws IOException {

    super(name, factories, context, parent, order, format, bucketCountThresholds, collectionMode, showTermDocCountError,
            pipelineAggregators, metaData);
    this.valuesSource = valuesSource;
    this.includeExclude = includeExclude;
    bucketOrds = new BytesRefHash(1, context.bigArrays());
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:13,代码来源:StringTermsAggregator.java

示例3: DiversifiedMapSamplerAggregator

import org.elasticsearch.common.util.BytesRefHash; //导入依赖的package包/类
DiversifiedMapSamplerAggregator(String name, int shardSize, AggregatorFactories factories,
        SearchContext context, Aggregator parent, List<PipelineAggregator> pipelineAggregators, Map<String, Object> metaData,
        ValuesSource valuesSource, int maxDocsPerValue) throws IOException {
    super(name, shardSize, factories, context, parent, pipelineAggregators, metaData);
    this.valuesSource = valuesSource;
    this.maxDocsPerValue = maxDocsPerValue;
    bucketOrds = new BytesRefHash(shardSize, context.bigArrays());

}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:10,代码来源:DiversifiedMapSamplerAggregator.java

示例4: StringTermsAggregator

import org.elasticsearch.common.util.BytesRefHash; //导入依赖的package包/类
public StringTermsAggregator(String name, AggregatorFactories factories, ValuesSource valuesSource,
        Terms.Order order, BucketCountThresholds bucketCountThresholds,
        IncludeExclude.StringFilter includeExclude, AggregationContext aggregationContext,
        Aggregator parent, SubAggCollectionMode collectionMode, boolean showTermDocCountError, List<PipelineAggregator> pipelineAggregators,
        Map<String, Object> metaData) throws IOException {

    super(name, factories, aggregationContext, parent, order, bucketCountThresholds, collectionMode, showTermDocCountError, pipelineAggregators,
            metaData);
    this.valuesSource = valuesSource;
    this.includeExclude = includeExclude;
    bucketOrds = new BytesRefHash(1, aggregationContext.bigArrays());
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:13,代码来源:StringTermsAggregator.java

示例5: DiversifiedMapSamplerAggregator

import org.elasticsearch.common.util.BytesRefHash; //导入依赖的package包/类
public DiversifiedMapSamplerAggregator(String name, int shardSize, AggregatorFactories factories,
        AggregationContext aggregationContext, Aggregator parent, List<PipelineAggregator> pipelineAggregators, Map<String, Object> metaData,
        ValuesSource valuesSource, int maxDocsPerValue) throws IOException {
    super(name, shardSize, factories, aggregationContext, parent, pipelineAggregators, metaData);
    this.valuesSource = valuesSource;
    this.maxDocsPerValue = maxDocsPerValue;
    bucketOrds = new BytesRefHash(shardSize, aggregationContext.bigArrays());

}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:10,代码来源:DiversifiedMapSamplerAggregator.java

示例6: PathAggregator

import org.elasticsearch.common.util.BytesRefHash; //导入依赖的package包/类
public PathAggregator(String name,
                      AggregatorFactories factories,
                      ValuesSource valuesSource,
                      AggregationContext context,
                      Aggregator parent,
                      List<PipelineAggregator> pipelineAggregators,
                      Map<String, Object> metaData,
                      BytesRef separator,
                      Path.Order order) throws IOException {
    super(name, factories, context, parent, pipelineAggregators, metaData);
    this.valuesSource = valuesSource;
    this.bucketOrds = new BytesRefHash(1, context.bigArrays());
    this.separator = separator;
    this.order = order;
}
 
开发者ID:jprante,项目名称:elasticsearch-aggregations,代码行数:16,代码来源:PathAggregator.java

示例7: ParentIdsFilter

import org.elasticsearch.common.util.BytesRefHash; //导入依赖的package包/类
private ParentIdsFilter(String parentType, BitSetProducer nonNestedDocsFilter, BytesRefHash parentIds) {
    this.nonNestedDocsFilter = nonNestedDocsFilter;
    this.parentTypeBr = new BytesRef(parentType);
    this.parentIds = parentIds;
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:6,代码来源:ParentIdsFilter.java


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