本文整理了Java中com.esotericsoftware.kryo.io.Output.writeDouble()
方法的一些代码示例,展示了Output.writeDouble()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Output.writeDouble()
方法的具体详情如下:
包路径:com.esotericsoftware.kryo.io.Output
类名称:Output
方法名:writeDouble
[英]Writes an 8 byte double.
[中]写入一个8字节的双精度。
代码示例来源:origin: apache/incubator-dubbo
@Override
public void writeDouble(double v) throws IOException {
output.writeDouble(v);
}
代码示例来源:origin: apache/incubator-dubbo
@Override
public void writeDouble(double v) throws IOException {
output.writeDouble(v);
}
代码示例来源:origin: apache/flink
@Override
public void write(Kryo kryo, Output output, PyFloat object) {
output.writeDouble(object.getValue());
}
代码示例来源:origin: apache/kylin
@Override
public void write(Kryo kryo, Output output, PercentileCounter counter) {
int length = counter.getRegisters().byteSize();
ByteBuffer buffer = ByteBuffer.allocate(length);
counter.getRegisters().asSmallBytes(buffer);
output.writeDouble(counter.getCompression());
output.writeDouble(counter.getQuantileRatio());
output.writeInt(buffer.position());
output.write(buffer.array(), 0, buffer.position());
}
代码示例来源:origin: apache/tinkerpop
@Override
public void writeDouble(final double d) {
unshadedOutput.writeDouble(d);
}
代码示例来源:origin: apache/metron
@Override
public void write(Kryo kryo, Output output) {
//storing tdigest
ByteBuffer outBuffer = ByteBuffer.allocate(digest.byteSize());
digest.asBytes(outBuffer);
byte[] tdigestSerialized = outBuffer.array();
output.writeInt(tdigestSerialized.length);
output.writeBytes(tdigestSerialized);
output.writeLong(n);
output.writeDouble(sum);
output.writeDouble(sumOfSquares);
output.writeDouble(sumOfLogs);
output.writeDouble(getMin());
output.writeDouble(getMax());
output.writeDouble(M1);
output.writeDouble(M2);
output.writeDouble(M3);
output.writeDouble(M4);
}
代码示例来源:origin: davidmoten/rtree
private void writeBounds(Output output, Rectangle mbr) {
output.writeBoolean(mbr.isDoublePrecision());
if (mbr.isDoublePrecision()) {
output.writeDouble(mbr.x1());
output.writeDouble(mbr.y1());
output.writeDouble(mbr.y1());
output.writeDouble(mbr.y2());
} else {
output.writeFloat((float) mbr.x1());
output.writeFloat((float) mbr.y1());
output.writeFloat((float) mbr.y1());
output.writeFloat((float) mbr.y2());
}
}
代码示例来源:origin: com.esotericsoftware/kryo
/** Bulk output of a double array. */
public void writeDoubles (double[] object) throws KryoException {
for (int i = 0, n = object.length; i < n; i++)
writeDouble(object[i]);
}
}
代码示例来源:origin: com.esotericsoftware/kryo-shaded
/** Bulk output of a double array. */
public void writeDoubles (double[] object) throws KryoException {
for (int i = 0, n = object.length; i < n; i++)
writeDouble(object[i]);
}
}
代码示例来源:origin: com.esotericsoftware.kryo/kryo
/** Bulk output of a double array. */
public void writeDoubles (double[] object) throws KryoException {
for (int i = 0, n = object.length; i < n; i++)
writeDouble(object[i]);
}
}
代码示例来源:origin: YahooArchive/samoa
@Override
public void write(Kryo kryo, Output output, AttributeContentEvent event) {
output.writeLong(event.learningNodeId, true);
output.writeInt(event.obsIndex, true);
output.writeDouble(event.attrVal, PRECISION, true);
output.writeInt(event.classVal, true);
output.writeDouble(event.weight, PRECISION, true);
output.writeBoolean(event.isNominal);
}
代码示例来源:origin: YahooArchive/samoa
@Override
public void write(Kryo kryo, Output output, AttributeContentEvent event) {
output.writeLong(event.learningNodeId, true);
output.writeInt(event.obsIndex, true);
output.writeDouble(event.attrVal);
output.writeInt(event.classVal, true);
output.writeDouble(event.weight);
output.writeBoolean(event.isNominal);
}
代码示例来源:origin: apache/incubator-samoa
@Override
public void write(Kryo kryo, Output output, AttributeContentEvent event) {
output.writeLong(event.learningNodeId, true);
output.writeInt(event.obsIndex, true);
output.writeDouble(event.attrVal);
output.writeInt(event.classVal, true);
output.writeDouble(event.weight);
output.writeBoolean(event.isNominal);
}
代码示例来源:origin: com.esotericsoftware/kryo
public void write (Output output, Object object) {
try {
output.writeDouble(field.getDouble(object));
} catch (Exception e) {
KryoException ex = new KryoException(e);
ex.addTrace(this + " (" + type.getName() + ")");
throw ex;
}
}
代码示例来源:origin: com.esotericsoftware.kryo/kryo
public void write (Output output, Object object) {
try {
output.writeDouble(field.getDouble(object));
} catch (Exception e) {
KryoException ex = new KryoException(e);
ex.addTrace(this + " (" + type.getName() + ")");
throw ex;
}
}
代码示例来源:origin: com.esotericsoftware/kryo-shaded
public void write (Output output, Object object) {
try {
output.writeDouble(field.getDouble(object));
} catch (Exception e) {
KryoException ex = new KryoException(e);
ex.addTrace(this + " (" + type.getName() + ")");
throw ex;
}
}
代码示例来源:origin: YahooArchive/samoa
@Override
public void write(Kryo kryo, Output output, ComputeContentEvent object) {
output.writeLong(object.splitId, true);
output.writeLong(object.learningNodeId, true);
output.writeInt(object.preSplitDist.length, true);
for(int i = 0; i < object.preSplitDist.length; i++){
output.writeDouble(object.preSplitDist[i]);
}
}
代码示例来源:origin: YahooArchive/samoa
@Override
public void write(Kryo kryo, Output output, ComputeContentEvent object) {
output.writeLong(object.splitId, true);
output.writeLong(object.learningNodeId, true);
output.writeInt(object.preSplitDist.length, true);
for(int i = 0; i < object.preSplitDist.length; i++){
output.writeDouble(object.preSplitDist[i], PRECISION, true);
}
}
代码示例来源:origin: org.apache.samoa/samoa-api
@Override
public void write(Kryo kryo, Output output, ComputeContentEvent object) {
output.writeLong(object.splitId, true);
output.writeLong(object.learningNodeId, true);
output.writeInt(object.preSplitDist.length, true);
for (int i = 0; i < object.preSplitDist.length; i++) {
output.writeDouble(object.preSplitDist[i], PRECISION, true);
}
}
代码示例来源:origin: com.yahoo.labs.samoa/samoa-api
@Override
public void write(Kryo kryo, Output output, ComputeContentEvent object) {
output.writeLong(object.splitId, true);
output.writeLong(object.learningNodeId, true);
output.writeInt(object.preSplitDist.length, true);
for(int i = 0; i < object.preSplitDist.length; i++){
output.writeDouble(object.preSplitDist[i], PRECISION, true);
}
}
内容来源于网络,如有侵权,请联系作者删除!