Package org.apache.thrift.protocol

Examples of org.apache.thrift.protocol.TTupleProtocol.writeI16()


      oprot.writeBitSet(optionals, 3);
      if (struct.isSetIpv4()) {
        oprot.writeI32(struct.ipv4);
      }
      if (struct.isSetPort()) {
        oprot.writeI16(struct.port);
      }
      if (struct.isSetService_name()) {
        oprot.writeString(struct.service_name);
      }
    }
View Full Code Here


      oprot.writeBitSet(optionals, 4);
      if (struct.isSetConstrainClass()) {
        oprot.writeString(struct.constrainClass);
      }
      if (struct.isSetViolationCode()) {
        oprot.writeI16(struct.violationCode);
      }
      if (struct.isSetViolationDescription()) {
        oprot.writeString(struct.violationDescription);
      }
      if (struct.isSetNumberOfViolatingMutations()) {
View Full Code Here

      oprot.writeBitSet(optionals, 4);
      if (struct.isSetConstrainClass()) {
        oprot.writeString(struct.constrainClass);
      }
      if (struct.isSetViolationCode()) {
        oprot.writeI16(struct.violationCode);
      }
      if (struct.isSetViolationDescription()) {
        oprot.writeString(struct.violationDescription);
      }
      if (struct.isSetNumberOfViolatingMutations()) {
View Full Code Here

      if (struct.isSetPort()) {
        optionals.set(3);
      }
      oprot.writeBitSet(optionals, 4);
      if (struct.isSetNodeId()) {
        oprot.writeI16(struct.nodeId);
      }
      if (struct.isSetDomainId()) {
        oprot.writeI16(struct.domainId);
      }
      if (struct.isSetHostname()) {
View Full Code Here

      oprot.writeBitSet(optionals, 4);
      if (struct.isSetNodeId()) {
        oprot.writeI16(struct.nodeId);
      }
      if (struct.isSetDomainId()) {
        oprot.writeI16(struct.domainId);
      }
      if (struct.isSetHostname()) {
        oprot.writeString(struct.hostname);
      }
      if (struct.isSetPort()) {
View Full Code Here

      if (struct.isSetAuthChallengeResponse()) {
        optionals.set(2);
      }
      oprot.writeBitSet(optionals, 3);
      if (struct.isSetNodeId()) {
        oprot.writeI16(struct.nodeId);
      }
      if (struct.isSetAuthScheme()) {
        oprot.writeI32(struct.authScheme.getValue());
      }
      if (struct.isSetAuthChallengeResponse()) {
View Full Code Here

  private static class ClockEntryTupleScheme extends TupleScheme<ClockEntry> {

    @Override
    public void write(org.apache.thrift.protocol.TProtocol prot, ClockEntry struct) throws org.apache.thrift.TException {
      TTupleProtocol oprot = (TTupleProtocol) prot;
      oprot.writeI16(struct.nodeId);
      oprot.writeI64(struct.version);
    }

    @Override
    public void read(org.apache.thrift.protocol.TProtocol prot, ClockEntry struct) throws org.apache.thrift.TException {
View Full Code Here

      if (struct.isSetNodeStore()) {
        optionals.set(1);
      }
      oprot.writeBitSet(optionals, 2);
      if (struct.isSetNewNodeId()) {
        oprot.writeI16(struct.newNodeId);
      }
      if (struct.isSetNodeStore()) {
        {
          oprot.writeI32(struct.nodeStore.size());
          for (KeyedValues _iter68 : struct.nodeStore)
View Full Code Here

      oprot.writeBitSet(optionals, 2);
      if (struct.isSetDpid()) {
        oprot.writeI64(struct.dpid);
      }
      if (struct.isSetPort()) {
        oprot.writeI16(struct.port);
      }
    }

    @Override
    public void read(org.apache.thrift.protocol.TProtocol prot, SwitchPortTuple struct) throws org.apache.thrift.TException {
View Full Code Here

      if (struct.isSetValue()) {
        optionals.set(0);
      }
      oprot.writeBitSet(optionals, 1);
      if (struct.isSetValue()) {
        oprot.writeI16(struct.value);
      }
    }

    @Override
    public void read(org.apache.thrift.protocol.TProtocol prot, TI16Value struct) throws org.apache.thrift.TException {
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.