@Override public double readDouble() throws IOException { return input.readDouble(); }
@Override public Double readFrom(Input input) throws IOException { return new Double(input.readDouble()); }
@Override public Double readFrom(Input input) throws IOException { return new Double(input.readDouble()); }
@Override public Double readFrom(Input input) throws IOException { return new Double(input.readDouble()); }
@Override public void transfer(Pipe pipe, Input input, Output output, int number, boolean repeated) throws IOException { output.writeDouble(number, input.readDouble(), repeated); }
@Override public void transfer(Pipe pipe, Input input, Output output, int number, boolean repeated) throws IOException { output.writeDouble(number, input.readDouble(), repeated); }
@Override public void transfer(Pipe pipe, Input input, Output output, int number, boolean repeated) throws IOException { output.writeDouble(number, input.readDouble(), repeated); }
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; }
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; }
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; }
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; }
if (message.someDouble == null) message.someDouble = new ArrayList<Double>(); message.someDouble.add(input.readDouble()); break; case 9:
@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); } } }
break; case 8: message.someDouble = input.readDouble(); break; case 9:
@Override public Object readFrom(Input input) throws IOException { return input.readDouble(); }
@Override public void mergeFrom(Input input, Object message) throws IOException { setter.set(message, input.readDouble()); }
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; } } }
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); } } }
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); } } }
@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); } } }