本文整理了Java中io.protostuff.Input.readDouble()
方法的一些代码示例,展示了Input.readDouble()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Input.readDouble()
方法的具体详情如下:
包路径:io.protostuff.Input
类名称:Input
方法名:readDouble
[英]Reads a double field value.
[中]读取双字段值。
代码示例来源:origin: protostuff/protostuff
@Override
public double readDouble() throws IOException
{
return input.readDouble();
}
代码示例来源:origin: protostuff/protostuff
@Override
public Double readFrom(Input input) throws IOException
{
return new Double(input.readDouble());
}
代码示例来源:origin: protostuff/protostuff
@Override
public Double readFrom(Input input) throws IOException
{
return new Double(input.readDouble());
}
代码示例来源:origin: protostuff/protostuff
@Override
public Double readFrom(Input input) throws IOException
{
return new Double(input.readDouble());
}
代码示例来源:origin: protostuff/protostuff
@Override
public void transfer(Pipe pipe, Input input, Output output, int number,
boolean repeated) throws IOException
{
output.writeDouble(number, input.readDouble(), repeated);
}
代码示例来源:origin: protostuff/protostuff
@Override
public void transfer(Pipe pipe, Input input, Output output, int number,
boolean repeated) throws IOException
{
output.writeDouble(number, input.readDouble(), repeated);
}
代码示例来源:origin: protostuff/protostuff
@Override
public void transfer(Pipe pipe, Input input, Output output, int number,
boolean repeated) throws IOException
{
output.writeDouble(number, input.readDouble(), repeated);
}
代码示例来源:origin: protostuff/protostuff
protected Object readPrimitiveFrom(Input input, Object owner, int len)
throws IOException
{
double[] array = new double[len];
if (input instanceof GraphInput)
{
// update the actual reference.
((GraphInput) input).updateLast(array, owner);
}
for (int i = 0; i < len; i++)
{
if (ID_ARRAY_DATA != input.readFieldNumber(this))
throw new ProtostuffException("Corrupt input.");
array[i] = input.readDouble();
}
if (0 != input.readFieldNumber(this))
throw new ProtostuffException("Corrupt input.");
return array;
}
代码示例来源:origin: protostuff/protostuff
protected Object readPrimitiveFrom(Input input, Object owner, int len)
throws IOException
{
double[] array = new double[len];
if (input instanceof GraphInput)
{
// update the actual reference.
((GraphInput) input).updateLast(array, owner);
}
for (int i = 0; i < len; i++)
{
if (ID_ARRAY_DATA != input.readFieldNumber(this))
throw new ProtostuffException("Corrupt input.");
array[i] = input.readDouble();
}
if (0 != input.readFieldNumber(this))
throw new ProtostuffException("Corrupt input.");
return array;
}
代码示例来源:origin: protostuff/protostuff
protected Object readBoxedFrom(Input input, Object owner, int len)
throws IOException
{
final Double[] array = new Double[len];
if (input instanceof GraphInput)
{
// update the actual reference.
((GraphInput) input).updateLast(array, owner);
}
for (int i = 0; i < len;)
{
switch (input.readFieldNumber(this))
{
case ID_ARRAY_DATA:
array[i++] = input.readDouble();
break;
case ID_ARRAY_NULLCOUNT:
i += input.readUInt32();
break;
default:
throw new ProtostuffException("Corrupt input.");
}
}
if (0 != input.readFieldNumber(this))
throw new ProtostuffException("Corrupt input.");
return array;
}
代码示例来源:origin: protostuff/protostuff
protected Object readBoxedFrom(Input input, Object owner, int len)
throws IOException
{
final Double[] array = new Double[len];
if (input instanceof GraphInput)
{
// update the actual reference.
((GraphInput) input).updateLast(array, owner);
}
for (int i = 0; i < len;)
{
switch (input.readFieldNumber(this))
{
case ID_ARRAY_DATA:
array[i++] = input.readDouble();
break;
case ID_ARRAY_NULLCOUNT:
i += input.readUInt32();
break;
default:
throw new ProtostuffException("Corrupt input.");
}
}
if (0 != input.readFieldNumber(this))
throw new ProtostuffException("Corrupt input.");
return array;
}
代码示例来源:origin: protostuff/protostuff
if (message.someDouble == null)
message.someDouble = new ArrayList<Double>();
message.someDouble.add(input.readDouble());
break;
case 9:
代码示例来源:origin: protostuff/protostuff
@Override
public void mergeFrom(Input input, FPNumbers message) throws IOException
{
for (int number = input.readFieldNumber(this); ; number = input.readFieldNumber(this))
{
switch (number)
{
case 0:
return;
case 1:
message.floatValue = input.readFloat();
break;
case 2:
message.doubleValue = input.readDouble();
break;
default:
input.handleUnknownField(number, this);
}
}
}
代码示例来源:origin: protostuff/protostuff
break;
case 8:
message.someDouble = input.readDouble();
break;
case 9:
代码示例来源:origin: org.apache.servicecomb/foundation-protobuf
@Override
public Object readFrom(Input input) throws IOException {
return input.readDouble();
}
代码示例来源:origin: org.apache.servicecomb/foundation-protobuf
@Override
public void mergeFrom(Input input, Object message) throws IOException {
setter.set(message, input.readDouble());
}
代码示例来源:origin: NationalSecurityAgency/datawave
public void mergeFrom(Input input, Prediction message) throws IOException {
int number;
while ((number = input.readFieldNumber(this)) != 0) {
switch (number) {
case 1:
message.name = input.readString();
break;
case 2:
message.prediction = input.readDouble();
break;
default:
input.handleUnknownField(number, this);
break;
}
}
}
代码示例来源:origin: dremio/dremio-oss
public void mergeFrom(Input input, MaterializationMetrics message) throws IOException
{
for(int number = input.readFieldNumber(this);; number = input.readFieldNumber(this))
{
switch(number)
{
case 0:
return;
case 1:
message.footprint = input.readUInt64();
break;
case 2:
message.originalCost = input.readDouble();
break;
default:
input.handleUnknownField(number, this);
}
}
}
代码示例来源:origin: dremio/dremio-oss
public void mergeFrom(Input input, Affinity message) throws IOException
{
for(int number = input.readFieldNumber(this);; number = input.readFieldNumber(this))
{
switch(number)
{
case 0:
return;
case 1:
message.host = input.readString();
break;
case 2:
message.factor = input.readDouble();
break;
default:
input.handleUnknownField(number, this);
}
}
}
代码示例来源:origin: dremio/dremio-oss
@Override
public void mergeFrom(Input input, Foo message) throws IOException {
for (int number = input.readFieldNumber(this);; number = input.readFieldNumber(this)) {
switch (number) {
case 0:
return;
case 1:
message.bar = input.readDouble();
break;
default:
input.handleUnknownField(number, this);
}
}
}
内容来源于网络,如有侵权,请联系作者删除!