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