本文整理匯總了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();
}
示例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);
}
示例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);
}
示例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();
}
示例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();
}
示例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;
}
}
示例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();
}
示例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();
}
示例9: ModelResults
import org.elasticsearch.common.io.stream.StreamInput; //導入方法依賴的package包/類
public ModelResults(final StreamInput in) throws IOException {
this.coefficients = in.readDoubleArray();
}
示例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();
}
示例11: PredictionAggregationBuilder
import org.elasticsearch.common.io.stream.StreamInput; //導入方法依賴的package包/類
public PredictionAggregationBuilder(final StreamInput in)
throws IOException {
super(in);
this.inputs = in.readDoubleArray();
}
示例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();
}
示例13: innerReadFrom
import org.elasticsearch.common.io.stream.StreamInput; //導入方法依賴的package包/類
@Override
public void innerReadFrom(StreamInput in) throws IOException {
percents = in.readDoubleArray();
}