Examples of writeDouble()


Examples of javax.jms.StreamMessage.writeDouble()

      sent.writeBytes(testBytes);
      sent.writeChar('c');
      sent.writeShort((short) 31415);
      sent.writeInt(314159);
      sent.writeLong(3141592653589793238L);
      sent.writeDouble(3.1415926535897932384626433832795);
      sent.writeFloat(3.141f);
      sent.writeObject("31415926535897932384626433832795");
      sent.writeString("31415926535897932384626433832795");

      StreamMessage recv = (StreamMessage) sendRecMsg(sent);
View Full Code Here

Examples of net.timewalker.ffmq3.common.message.BytesMessageImpl.writeDouble()

        msg.writeByte((byte)1);
        msg.writeShort((short)2);
        msg.writeInt(3);
        msg.writeLong(4);
        msg.writeFloat(1.23f);
        msg.writeDouble(4.56);
        msg.writeBytes(createDummyByteArray(size));
       
        return msg;
    }
   
View Full Code Here

Examples of net.timewalker.ffmq3.common.message.StreamMessageImpl.writeDouble()

        msg.writeByte((byte)1);
        msg.writeShort((short)2);
        msg.writeInt(3);
        msg.writeLong(4);
        msg.writeFloat(1.23f);
        msg.writeDouble(4.56);
        msg.writeBytes(createDummyByteArray(size));
       
        return msg;
    }
   
View Full Code Here

Examples of org.activemq.message.ActiveMQBytesMessage.writeDouble()

    }
  }
  public void testReadDouble() {
    ActiveMQBytesMessage msg = new ActiveMQBytesMessage();
    try {
      msg.writeDouble(3.3d);
      msg.reset();
      assertTrue(msg.readDouble() == 3.3d);
    } catch (JMSException jmsEx) {
      jmsEx.printStackTrace();
      assertTrue(false);
View Full Code Here

Examples of org.activemq.message.ActiveMQStreamMessage.writeDouble()

      msg.reset();
      assertTrue(((Float)msg.readObject()).floatValue()==testFloat);
      msg.clearBody();
     
      double testDouble = 7.7d;
      msg.writeDouble(testDouble);
      msg.reset();
      assertTrue(((Double)msg.readObject()).doubleValue()==testDouble);
      msg.clearBody();
     
      char testChar = 'z';
View Full Code Here

Examples of org.apache.activemq.command.ActiveMQBytesMessage.writeDouble()

    }

    public void testReadDouble() {
        ActiveMQBytesMessage msg = new ActiveMQBytesMessage();
        try {
            msg.writeDouble(3.3d);
            msg.reset();
            assertTrue(msg.readDouble() == 3.3d);
        } catch (JMSException jmsEx) {
            jmsEx.printStackTrace();
            assertTrue(false);
View Full Code Here

Examples of org.apache.activemq.command.ActiveMQStreamMessage.writeDouble()

    public void testReadDouble() {
        ActiveMQStreamMessage msg = new ActiveMQStreamMessage();
        try {
            double test = 4.4d;
            msg.writeDouble(test);
            msg.reset();
            assertTrue(msg.readDouble() == test);
            msg.reset();
            assertTrue(msg.readString().equals(new Double(test).toString()));
            msg.reset();
View Full Code Here

Examples of org.apache.avro.io.Encoder.writeDouble()

    float readFloat = decoder.readFloat();
    assertEquals(1.1f, readFloat, 0.0001);

    byteOutputStream = new ByteArrayOutputStream();
    encoder = new ColumnEncoder(byteOutputStream);
    encoder.writeDouble(1.1d);
    encoder.flush();
    in = new ByteArrayInputStream(byteOutputStream.toByteArray());
    decoder = new ColumnDecoder(in);
    double readDouble = decoder.readDouble();
    assertEquals(1.1d, readDouble, 0.0001);
View Full Code Here

Examples of org.apache.blur.thirdparty.thrift_0_9_0.protocol.TTupleProtocol.writeDouble()

        {
          oprot.writeI32(struct.doubleMap.size());
          for (Map.Entry<String, Double> _iter185 : struct.doubleMap.entrySet())
          {
            oprot.writeString(_iter185.getKey());
            oprot.writeDouble(_iter185.getValue());
          }
        }
      }
    }
View Full Code Here

Examples of org.apache.hadoop.fs.FSDataOutputStream.writeDouble()

      String costFunctionName = "SquaredError";
      int[] layerSizeArray = new int[] { 3, 2, 3, 3 };
      int numberOfLayers = layerSizeArray.length;

      WritableUtils.writeString(output, MLPType);
      output.writeDouble(learningRate);
      output.writeDouble(regularization);
      output.writeDouble(momentum);
      output.writeInt(numberOfLayers);
      WritableUtils.writeString(output, squashingFunctionName);
      WritableUtils.writeString(output, costFunctionName);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.