Java Code Examples for org.elasticsearch.common.io.stream.StreamOutput#writeDoubleArray()
The following examples show how to use
org.elasticsearch.common.io.stream.StreamOutput#writeDoubleArray() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: OsStats.java From crate with Apache License 2.0 | 5 votes |
@Override public void writeTo(StreamOutput out) throws IOException { out.writeShort(percent); if (loadAverage == null) { out.writeBoolean(false); } else { out.writeBoolean(true); out.writeDoubleArray(loadAverage); } }
Example 2
Source File: TDigestState.java From crate with Apache License 2.0 | 5 votes |
public static void write(TDigestState state, StreamOutput out) throws IOException { out.writeDouble(state.compression); out.writeDoubleArray(state.fractions); out.writeVInt(state.centroidCount()); for (Centroid centroid : state.centroids()) { out.writeDouble(centroid.mean()); out.writeVLong(centroid.count()); } }
Example 3
Source File: ExtendedOsStats.java From crate with Apache License 2.0 | 5 votes |
@Override public void writeTo(StreamOutput out) throws IOException { out.writeLong(timestamp); out.writeLong(uptime); out.writeDoubleArray(loadAverage); out.writeOptionalWriteable(cpu); out.writeOptionalWriteable(osStats); }
Example 4
Source File: InternalPercentilesBucket.java From Elasticsearch with Apache License 2.0 | 4 votes |
@Override protected void doWriteTo(StreamOutput out) throws IOException { ValueFormatterStreams.writeOptional(valueFormatter, out); out.writeDoubleArray(percentiles); out.writeDoubleArray(percents); }
Example 5
Source File: PercentilesBucketPipelineAggregator.java From Elasticsearch with Apache License 2.0 | 4 votes |
@Override public void innerWriteTo(StreamOutput out) throws IOException { out.writeDoubleArray(percents); }
Example 6
Source File: ModelResults.java From elasticsearch-linear-regression with Apache License 2.0 | 4 votes |
@Override public void writeTo(final StreamOutput out) throws IOException { out.writeDoubleArray(this.coefficients); }
Example 7
Source File: InternalPrediction.java From elasticsearch-linear-regression with Apache License 2.0 | 4 votes |
@Override protected void doWriteTo(final StreamOutput out) throws IOException { super.doWriteTo(out); out.writeDoubleArray(this.inputs); }
Example 8
Source File: PredictionAggregationBuilder.java From elasticsearch-linear-regression with Apache License 2.0 | 4 votes |
@Override protected void innerWriteTo(final StreamOutput out) throws IOException { super.innerWriteTo(out); out.writeDoubleArray(this.inputs); }