當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。