Examples of readLong()


Examples of be.bagofwords.util.WrappedSocketConnection.readLong()

                connection.writeInt(keys.length);
                for (Long key : keys) {
                    connection.writeLong(key);
                }
                connection.flush();
                long response = connection.readLong();
                if (response != LONG_OK) {
                    throw new RuntimeException("Unexpected response " + response + " from " + connection.getInetAddress());
                }
            } catch (IOException exp) {
                IOUtils.closeQuietly(connection);
View Full Code Here

Examples of ch.ethz.inf.vs.scandium.util.DatagramReader.readLong()

      int major = reader.read(VERSION_BITS);
      int minor = reader.read(VERSION_BITS);
      ProtocolVersion version = new ProtocolVersion(major, minor);
 
      int epoch = reader.read(EPOCH_BITS);
      long sequenceNumber = reader.readLong(SEQUENCE_NUMBER_BITS);
 
      int length = reader.read(LENGTH_BITS);
 
      // delay decryption/interpretation of fragment
      byte[] fragmentBytes = reader.readBytes(length);
View Full Code Here

Examples of co.cask.cdap.common.io.BinaryDecoder.readLong()

    try {
      StreamEventData data = StreamEventDataCodec.decode(decoder);

      // Read the timestamp
      long timestamp = decoder.readLong();
      return new DefaultStreamEvent(data, timestamp);

    } catch (IOException e) {
      // It should never happens, otherwise something very wrong.
      throw Throwables.propagate(e);
View Full Code Here

Examples of co.cask.cdap.common.io.Decoder.readLong()

    try {
      StreamEventData data = StreamEventDataCodec.decode(decoder);

      // Read the timestamp
      long timestamp = decoder.readLong();
      return new DefaultStreamEvent(data, timestamp);

    } catch (IOException e) {
      // It should never happens, otherwise something very wrong.
      throw Throwables.propagate(e);
View Full Code Here

Examples of co.cask.tephra.snapshot.BinaryDecoder.readLong()

  @Override
  public TransactionSnapshot decode(InputStream in) {
    BinaryDecoder decoder = new BinaryDecoder(in);

    try {
      long timestamp = decoder.readLong();
      long readPointer = decoder.readLong();
      long writePointer = decoder.readLong();
      // some attributes where removed during format change, luckily those stored at the end, so we just give a chance
      // to skip them
      decodeObsoleteAttributes(decoder);
View Full Code Here

Examples of com.alibaba.dubbo.common.serialize.ObjectInput.readLong()

        ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(
                byteArrayOutputStream.toByteArray());
        ObjectInput deserialize = serialization.deserialize(url, byteArrayInputStream);

        assertEquals(123L, deserialize.readLong());

        try {
            deserialize.readLong();
            fail();
        } catch (IOException expected) {
View Full Code Here

Examples of com.alibaba.fastjson.JSONReader.readLong()

        reader.startObject();

        int count = 0;
        while (reader.hasNext()) {
            String key = (String) reader.readObject();
            Long value = reader.readLong();
            count++;
        }
        Assert.assertEquals(10, count);

        reader.endObject();
View Full Code Here

Examples of com.caucho.hessian.io.Hessian2Input.readLong()

        break;
      }

    case QUERY:
      {
        long id = hIn.readLong();
        Serializable value = (Serializable) hIn.readObject();

        if (log.isLoggable(Level.FINEST)) {
          log.finest(this + " query " + value
                    + " {id:" + id + ", to:" + to + ", from:" + from + "}");
View Full Code Here

Examples of com.caucho.json.JsonInput.readLong()

        break;
      }

    case QUERY:
      {
        long id = in.readLong();
        Serializable value = (Serializable) in.readObject();
        in.endPacket();

        if (log.isLoggable(Level.FINER)) {
          log.finer(this + " query " + value
View Full Code Here

Examples of com.esotericsoftware.kryo.io.Input.readLong()

    assertEquals(8, write.writeLong(-134217728, true));
    assertEquals(8, write.writeLong(-134217729, false));
    assertEquals(8, write.writeLong(-134217729, true));

    Input read = new UnsafeMemoryInput(write.toBytes());
    assertEquals(0, read.readLong());
    assertEquals(63, read.readLong());
    assertEquals(64, read.readLong());
    assertEquals(127, read.readLong());
    assertEquals(128, read.readLong());
    assertEquals(8192, read.readLong());
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.