本文整理了Java中com.esotericsoftware.kryo.io.Input.readDouble()
方法的一些代码示例,展示了Input.readDouble()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Input.readDouble()
方法的具体详情如下:
包路径:com.esotericsoftware.kryo.io.Input
类名称:Input
方法名:readDouble
[英]Reads an 8 bytes double.
[中]读取一个8字节的双字节。
代码示例来源:origin: apache/incubator-dubbo
@Override
public double readDouble() throws IOException {
try {
return input.readDouble();
} catch (KryoException e) {
throw new IOException(e);
}
}
代码示例来源:origin: apache/incubator-dubbo
@Override
public double readDouble() throws IOException {
try {
return input.readDouble();
} catch (KryoException e) {
throw new IOException(e);
}
}
代码示例来源:origin: apache/flink
@Override
public PyFloat read(Kryo kryo, Input input, Class<PyFloat> type) {
return new PyFloat(input.readDouble());
}
}
代码示例来源:origin: apache/kylin
@Override
public PercentileCounter read(Kryo kryo, Input input, Class type) {
double compression = input.readDouble();
double quantileRatio = input.readDouble();
int length = input.readInt();
byte[] buffer = new byte[length];
input.read(buffer);
PercentileCounter counter = new PercentileCounter(compression, quantileRatio);
counter.readRegisters(ByteBuffer.wrap(buffer));
return counter;
}
}
代码示例来源:origin: apache/tinkerpop
@Override
public double readDouble() {
return unshadedInput.readDouble();
}
代码示例来源:origin: apache/metron
@Override
public void read(Kryo kryo, Input input) {
int digestSize = input.readInt();
byte[] digestBytes = input.readBytes(digestSize);
ByteBuffer digestBuff = ByteBuffer.wrap(digestBytes);
digest = AVLTreeDigest.fromBytes(digestBuff);
n = input.readLong();
sum = input.readDouble();
sumOfSquares = input.readDouble();
sumOfLogs = input.readDouble();
min = input.readDouble();
max = input.readDouble();
M1 = input.readDouble();
M2 = input.readDouble();
M3 = input.readDouble();
M4 = input.readDouble();
}
}
代码示例来源:origin: com.esotericsoftware.kryo/kryo
/** Bulk input of a double array. */
public double[] readDoubles (int length) throws KryoException {
double[] array = new double[length];
for (int i = 0; i < length; i++)
array[i] = readDouble();
return array;
}
}
代码示例来源:origin: com.esotericsoftware/kryo
/** Bulk input of a double array. */
public double[] readDoubles (int length) throws KryoException {
double[] array = new double[length];
for (int i = 0; i < length; i++)
array[i] = readDouble();
return array;
}
}
代码示例来源:origin: com.alibaba/dubbo
@Override
public double readDouble() throws IOException {
try {
return input.readDouble();
} catch (KryoException e) {
throw new IOException(e);
}
}
代码示例来源:origin: jobxhub/JobX
public double readDouble() throws IOException {
try {
return input.readDouble();
} catch (KryoException e) {
throw new IOException(e);
}
}
代码示例来源:origin: com.esotericsoftware/kryo
public void read (Input input, Object object) {
try {
field.setDouble(object, input.readDouble());
} catch (Exception e) {
KryoException ex = new KryoException(e);
ex.addTrace(this + " (" + type.getName() + ")");
throw ex;
}
}
代码示例来源:origin: com.esotericsoftware.kryo/kryo
public void read (Input input, Object object) {
try {
field.setDouble(object, input.readDouble());
} catch (Exception e) {
KryoException ex = new KryoException(e);
ex.addTrace(this + " (" + type.getName() + ")");
throw ex;
}
}
代码示例来源:origin: com.esotericsoftware/kryo
public OptionalDouble read (Kryo kryo, Input input, Class<OptionalDouble> type) {
boolean present = input.readBoolean();
return present ? OptionalDouble.of(input.readDouble()) : OptionalDouble.empty();
}
}
代码示例来源:origin: com.esotericsoftware/kryo-shaded
public OptionalDouble read (Kryo kryo, Input input, Class<OptionalDouble> type) {
boolean present = input.readBoolean();
return present ? OptionalDouble.of(input.readDouble()) : OptionalDouble.empty();
}
}
代码示例来源:origin: YahooArchive/samoa
@Override
public ComputeContentEvent read(Kryo kryo, Input input,
Class<ComputeContentEvent> type) {
long splitId = input.readLong(true);
long learningNodeId = input.readLong(true);
int dataLength = input.readInt(true);
double[] preSplitDist = new double[dataLength];
for(int i = 0; i < dataLength; i++){
preSplitDist[i] = input.readDouble();
}
return new ComputeContentEvent(splitId, learningNodeId, preSplitDist);
}
代码示例来源:origin: org.apache.samoa/samoa-api
@Override
public ComputeContentEvent read(Kryo kryo, Input input,
Class<ComputeContentEvent> type) {
long splitId = input.readLong(true);
long learningNodeId = input.readLong(true);
int dataLength = input.readInt(true);
double[] preSplitDist = new double[dataLength];
for (int i = 0; i < dataLength; i++) {
preSplitDist[i] = input.readDouble();
}
return new ComputeContentEvent(splitId, learningNodeId, preSplitDist);
}
代码示例来源:origin: com.yahoo.labs.samoa/samoa-api
@Override
public ComputeContentEvent read(Kryo kryo, Input input,
Class<ComputeContentEvent> type) {
long splitId = input.readLong(true);
long learningNodeId = input.readLong(true);
int dataLength = input.readInt(true);
double[] preSplitDist = new double[dataLength];
for(int i = 0; i < dataLength; i++){
preSplitDist[i] = input.readDouble();
}
return new ComputeContentEvent(splitId, learningNodeId, preSplitDist);
}
代码示例来源:origin: YahooArchive/samoa
@Override
public AttributeContentEvent read(Kryo kryo, Input input,
Class<AttributeContentEvent> type) {
AttributeContentEvent ace
= new AttributeContentEvent.Builder(input.readLong(true), input.readInt(true))
.attrValue(input.readDouble())
.classValue(input.readInt(true))
.weight(input.readDouble())
.isNominal(input.readBoolean())
.build();
return ace;
}
代码示例来源:origin: org.apache.samoa/samoa-api
@Override
public AttributeContentEvent read(Kryo kryo, Input input,
Class<AttributeContentEvent> type) {
AttributeContentEvent ace = new AttributeContentEvent.Builder(input.readLong(true), input.readInt(true))
.attrValue(input.readDouble())
.classValue(input.readInt(true))
.weight(input.readDouble())
.isNominal(input.readBoolean())
.build();
return ace;
}
代码示例来源:origin: org.apache.samoa/samoa-api
@Override
public AttributeContentEvent read(Kryo kryo, Input input,
Class<AttributeContentEvent> type) {
AttributeContentEvent ace = new AttributeContentEvent.Builder(input.readLong(true), input.readInt(true))
.attrValue(input.readDouble(PRECISION, true))
.classValue(input.readInt(true))
.weight(input.readDouble(PRECISION, true))
.isNominal(input.readBoolean())
.build();
return ace;
}
}
内容来源于网络,如有侵权,请联系作者删除!