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


Java InternalAggregations.readAggregations方法代码示例

本文整理汇总了Java中org.elasticsearch.search.aggregations.InternalAggregations.readAggregations方法的典型用法代码示例。如果您正苦于以下问题:Java InternalAggregations.readAggregations方法的具体用法?Java InternalAggregations.readAggregations怎么用?Java InternalAggregations.readAggregations使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.elasticsearch.search.aggregations.InternalAggregations的用法示例。


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

示例1: Bucket

import org.elasticsearch.search.aggregations.InternalAggregations; //导入方法依赖的package包/类
private Bucket(StreamInput in, DocValueFormat format, boolean keyed) throws IOException {
    this.format = format;
    this.keyed = keyed;
    key = in.readOptionalString();
    if (in.readBoolean()) {
        from = in.readBytesRef();
    } else {
        from = null;
    }
    if (in.readBoolean()) {
        to = in.readBytesRef();
    } else {
        to = null;
    }
    docCount = in.readLong();
    aggregations = InternalAggregations.readAggregations(in);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:18,代码来源:InternalBinaryRange.java

示例2: readFrom

import org.elasticsearch.search.aggregations.InternalAggregations; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    hits = readSearchHits(in);
    if (in.readBoolean()) {
        aggregations = InternalAggregations.readAggregations(in);
    }
    if (in.readBoolean()) {
        suggest = Suggest.readSuggest(Suggest.Fields.SUGGEST, in);
    }
    timedOut = in.readBoolean();

    terminatedEarly = in.readOptionalBoolean();

    if (in.getVersion().onOrAfter(Version.V_2_2_0) && in.readBoolean()) {
        profileResults = new InternalProfileShardResults(in);
    } else {
        profileResults = null;
    }
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:20,代码来源:InternalSearchResponse.java

示例3: Bucket

import org.elasticsearch.search.aggregations.InternalAggregations; //导入方法依赖的package包/类
/**
 * Read from a stream.
 */
public Bucket(StreamInput in, long subsetSize, long supersetSize, DocValueFormat format) throws IOException {
    super(in, subsetSize, supersetSize, format);
    termBytes = in.readBytesRef();
    subsetDf = in.readVLong();
    supersetDf = in.readVLong();
    score = in.readDouble();
    aggregations = InternalAggregations.readAggregations(in);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:12,代码来源:SignificantStringTerms.java

示例4: Bucket

import org.elasticsearch.search.aggregations.InternalAggregations; //导入方法依赖的package包/类
/**
 * Read from a stream.
 */
protected Bucket(StreamInput in, DocValueFormat formatter, boolean showDocCountError) throws IOException {
    this.showDocCountError = showDocCountError;
    this.format = formatter;
    docCount = in.readVLong();
    docCountError = -1;
    if (showDocCountError) {
        docCountError = in.readLong();
    }
    aggregations = InternalAggregations.readAggregations(in);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:14,代码来源:InternalTerms.java

示例5: Bucket

import org.elasticsearch.search.aggregations.InternalAggregations; //导入方法依赖的package包/类
/**
 * Read from a stream.
 */
public Bucket(StreamInput in, boolean keyed, DocValueFormat format) throws IOException {
    this.format = format;
    this.keyed = keyed;
    key = in.readDouble();
    docCount = in.readVLong();
    aggregations = InternalAggregations.readAggregations(in);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:11,代码来源:InternalHistogram.java

示例6: Bucket

import org.elasticsearch.search.aggregations.InternalAggregations; //导入方法依赖的package包/类
/**
 * Read from a stream.
 */
public Bucket(StreamInput in, boolean keyed, DocValueFormat format) throws IOException {
    this.format = format;
    this.keyed = keyed;
    key = in.readLong();
    docCount = in.readVLong();
    aggregations = InternalAggregations.readAggregations(in);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:11,代码来源:InternalDateHistogram.java

示例7: InternalBucket

import org.elasticsearch.search.aggregations.InternalAggregations; //导入方法依赖的package包/类
/**
 * Read from a stream.
 */
public InternalBucket(StreamInput in, boolean keyed) throws IOException {
    this.keyed = keyed;
    key = in.readOptionalString();
    docCount = in.readVLong();
    aggregations = InternalAggregations.readAggregations(in);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:10,代码来源:InternalFilters.java

示例8: readFromWithId

import org.elasticsearch.search.aggregations.InternalAggregations; //导入方法依赖的package包/类
public void readFromWithId(long id, StreamInput in) throws IOException {
    this.id = id;
    from = in.readVInt();
    size = in.readVInt();
    int numSortFieldsPlus1 = in.readVInt();
    if (numSortFieldsPlus1 == 0) {
        sortValueFormats = null;
    } else {
        sortValueFormats = new DocValueFormat[numSortFieldsPlus1 - 1];
        for (int i = 0; i < sortValueFormats.length; ++i) {
            sortValueFormats[i] = in.readNamedWriteable(DocValueFormat.class);
        }
    }
    topDocs = readTopDocs(in);
    if (hasAggs = in.readBoolean()) {
        aggregations = InternalAggregations.readAggregations(in);
    }
    pipelineAggregators = in.readNamedWriteableList(PipelineAggregator.class).stream().map(a -> (SiblingPipelineAggregator) a)
            .collect(Collectors.toList());
    if (in.readBoolean()) {
        suggest = Suggest.readSuggest(in);
    }
    searchTimedOut = in.readBoolean();
    terminatedEarly = in.readOptionalBoolean();
    profileShardResults = in.readOptionalWriteable(ProfileShardResult::new);
    hasProfileResults = profileShardResults != null;
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:28,代码来源:QuerySearchResult.java

示例9: readFrom

import org.elasticsearch.search.aggregations.InternalAggregations; //导入方法依赖的package包/类
public static EmptyBucketInfo readFrom(StreamInput in) throws IOException {
    Rounding rounding = Rounding.Streams.read(in);
    InternalAggregations aggs = InternalAggregations.readAggregations(in);
    if (in.readBoolean()) {
        return new EmptyBucketInfo(rounding, aggs, ExtendedBounds.readFrom(in));
    }
    return new EmptyBucketInfo(rounding, aggs);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:9,代码来源:InternalHistogram.java

示例10: readFrom

import org.elasticsearch.search.aggregations.InternalAggregations; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    subsetDf = in.readVLong();
    supersetDf = in.readVLong();
    term = in.readLong();
    score = in.readDouble();
    aggregations = InternalAggregations.readAggregations(in);

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

示例11: readFrom

import org.elasticsearch.search.aggregations.InternalAggregations; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    termBytes = in.readBytesRef();
    subsetDf = in.readVLong();
    supersetDf = in.readVLong();
    score = in.readDouble();
    aggregations = InternalAggregations.readAggregations(in);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:9,代码来源:SignificantStringTerms.java

示例12: readFrom

import org.elasticsearch.search.aggregations.InternalAggregations; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    term = in.readLong();
    docCount = in.readVLong();
    docCountError = -1;
    if (showDocCountError) {
        docCountError = in.readLong();
    }
    aggregations = InternalAggregations.readAggregations(in);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:11,代码来源:LongTerms.java

示例13: readFrom

import org.elasticsearch.search.aggregations.InternalAggregations; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    termBytes = in.readBytesRef();
    docCount = in.readVLong();
    docCountError = -1;
    if (showDocCountError) {
        docCountError = in.readLong();
    }
    aggregations = InternalAggregations.readAggregations(in);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:11,代码来源:StringTerms.java

示例14: readFrom

import org.elasticsearch.search.aggregations.InternalAggregations; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    term = in.readDouble();
    docCount = in.readVLong();
    docCountError = -1;
    if (showDocCountError) {
        docCountError = in.readLong();
    }
    aggregations = InternalAggregations.readAggregations(in);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:11,代码来源:DoubleTerms.java

示例15: readFrom

import org.elasticsearch.search.aggregations.InternalAggregations; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    key = in.readOptionalString();
    docCount = in.readVLong();
    aggregations = InternalAggregations.readAggregations(in);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:7,代码来源:InternalFilters.java


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