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


Java StreamInput.readDoubleArray方法代码示例

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


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

示例1: AbstractInternalHDRPercentiles

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
/**
 * Read from a stream.
 */
protected AbstractInternalHDRPercentiles(StreamInput in) throws IOException {
    super(in);
    format = in.readNamedWriteable(DocValueFormat.class);
    keys = in.readDoubleArray();
    long minBarForHighestToLowestValueRatio = in.readLong();
    final int serializedLen = in.readVInt();
    byte[] bytes = new byte[serializedLen];
    in.readBytes(bytes, 0, serializedLen);
    ByteBuffer stateBuffer = ByteBuffer.wrap(bytes);
    try {
        state = DoubleHistogram.decodeFromCompressedByteBuffer(stateBuffer, minBarForHighestToLowestValueRatio);
    } catch (DataFormatException e) {
        throw new IOException("Failed to decode DoubleHistogram for aggregation [" + name + "]", e);
    }
    keyed = in.readBoolean();
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:20,代码来源:AbstractInternalHDRPercentiles.java

示例2: PercentileRanksAggregationBuilder

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
/**
 * Read from a stream.
 */
public PercentileRanksAggregationBuilder(StreamInput in) throws IOException {
    super(in, ValuesSourceType.NUMERIC, ValueType.NUMERIC);
    values = in.readDoubleArray();
    keyed = in.readBoolean();
    numberOfSignificantValueDigits = in.readVInt();
    compression = in.readDouble();
    method = PercentilesMethod.readFromStream(in);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:12,代码来源:PercentileRanksAggregationBuilder.java

示例3: PercentilesAggregationBuilder

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
/**
 * Read from a stream.
 */
public PercentilesAggregationBuilder(StreamInput in) throws IOException {
    super(in, ValuesSourceType.NUMERIC, ValueType.NUMERIC);
    percents = in.readDoubleArray();
    keyed = in.readBoolean();
    numberOfSignificantValueDigits = in.readVInt();
    compression = in.readDouble();
    method = PercentilesMethod.readFromStream(in);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:12,代码来源:PercentilesAggregationBuilder.java

示例4: AbstractInternalTDigestPercentiles

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
/**
 * Read from a stream.
 */
protected AbstractInternalTDigestPercentiles(StreamInput in) throws IOException {
    super(in);
    format = in.readNamedWriteable(DocValueFormat.class);
    keys = in.readDoubleArray();
    state = TDigestState.read(in);
    keyed = in.readBoolean();
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:11,代码来源:AbstractInternalTDigestPercentiles.java

示例5: InternalPercentilesBucket

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
/**
 * Read from a stream.
 */
public InternalPercentilesBucket(StreamInput in) throws IOException {
    super(in);
    format = in.readNamedWriteable(DocValueFormat.class);
    percentiles = in.readDoubleArray();
    percents = in.readDoubleArray();
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:10,代码来源:InternalPercentilesBucket.java

示例6: Cpu

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
public Cpu(StreamInput in) throws IOException {
    this.percent = in.readShort();
    if (in.readBoolean()) {
        this.loadAverage = in.readDoubleArray();
    } else {
        this.loadAverage = null;
    }
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:9,代码来源:OsStats.java

示例7: PercentilesBucketPipelineAggregationBuilder

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
/**
 * Read from a stream.
 */
public PercentilesBucketPipelineAggregationBuilder(StreamInput in)
        throws IOException {
    super(in, NAME);
    percents = in.readDoubleArray();
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:9,代码来源:PercentilesBucketPipelineAggregationBuilder.java

示例8: PercentilesBucketPipelineAggregator

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
/**
 * Read from a stream.
 */
public PercentilesBucketPipelineAggregator(StreamInput in) throws IOException {
    super(in);
    percents = in.readDoubleArray();
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:8,代码来源:PercentilesBucketPipelineAggregator.java

示例9: ModelResults

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
public ModelResults(final StreamInput in) throws IOException {
  this.coefficients = in.readDoubleArray();
}
 
开发者ID:scaleborn,项目名称:elasticsearch-linear-regression,代码行数:4,代码来源:ModelResults.java

示例10: InternalPrediction

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
public InternalPrediction(final StreamInput in) throws IOException {
  super(in, PredictionResults::new);
  this.inputs = in.readDoubleArray();
}
 
开发者ID:scaleborn,项目名称:elasticsearch-linear-regression,代码行数:5,代码来源:InternalPrediction.java

示例11: PredictionAggregationBuilder

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
public PredictionAggregationBuilder(final StreamInput in)
    throws IOException {
  super(in);
  this.inputs = in.readDoubleArray();
}
 
开发者ID:scaleborn,项目名称:elasticsearch-linear-regression,代码行数:6,代码来源:PredictionAggregationBuilder.java

示例12: doReadFrom

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
@Override
protected void doReadFrom(StreamInput in) throws IOException {
    valueFormatter = ValueFormatterStreams.readOptional(in);
    percentiles = in.readDoubleArray();
    percents = in.readDoubleArray();
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:7,代码来源:InternalPercentilesBucket.java

示例13: innerReadFrom

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
@Override
public void innerReadFrom(StreamInput in) throws IOException {
    percents = in.readDoubleArray();
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:5,代码来源:PercentilesBucketPipelineAggregator.java


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