Package org.apache.thrift.protocol

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


      TTupleProtocol oprot = (TTupleProtocol) prot;
      {
        oprot.writeI32(struct.values.size());
        for (byte _iter66 : struct.values)
        {
          oprot.writeByte(_iter66);
        }
      }
      oprot.writeBinary(struct.nulls);
    }
View Full Code Here


      }
      if (struct.isSetName()) {
        oprot.writeBinary(struct.name);
      }
      if (struct.isSetVersion()) {
        oprot.writeByte(struct.version);
      }
      if (struct.isSetServerName()) {
        oprot.writeBinary(struct.serverName);
      }
      if (struct.isSetPort()) {
View Full Code Here

      }
      if (struct.isSetName()) {
        oprot.writeBinary(struct.name);
      }
      if (struct.isSetVersion()) {
        oprot.writeByte(struct.version);
      }
      if (struct.isSetServerName()) {
        oprot.writeBinary(struct.serverName);
      }
      if (struct.isSetPort()) {
View Full Code Here

      oprot.writeBitSet(optionals, 15);
      if (struct.isSetBoolField()) {
        oprot.writeBool(struct.boolField);
      }
      if (struct.isSetByteField()) {
        oprot.writeByte(struct.byteField);
      }
      if (struct.isSetI16Field()) {
        oprot.writeI16(struct.i16Field);
      }
      if (struct.isSetI16OptionalField()) {
View Full Code Here

      oprot.writeBitSet(optionals, 20);
      if (struct.isSetMy_bool()) {
        oprot.writeBool(struct.my_bool);
      }
      if (struct.isSetMy_byte()) {
        oprot.writeByte(struct.my_byte);
      }
      if (struct.isSetMy_16bit_int()) {
        oprot.writeI16(struct.my_16bit_int);
      }
      if (struct.isSetMy_32bit_int()) {
View Full Code Here

      }
      if (struct.isSetNumMessages()) {
        oprot.writeI32(struct.numMessages);
      }
      if (struct.isSetCompression()) {
        oprot.writeByte(struct.compression);
      }
      if (struct.isSetCrc()) {
        oprot.writeI64(struct.crc);
      }
      if (struct.isSetMessages()) {
View Full Code Here

      oprot.writeBitSet(optionals, 20);
      if (struct.isSetMy_bool()) {
        oprot.writeBool(struct.my_bool);
      }
      if (struct.isSetMy_byte()) {
        oprot.writeByte(struct.my_byte);
      }
      if (struct.isSetMy_16bit_int()) {
        oprot.writeI16(struct.my_16bit_int);
      }
      if (struct.isSetMy_32bit_int()) {
View Full Code Here

      oprot.writeBitSet(optionals, 3);
      if (struct.isSetPath()) {
        oprot.writeString(struct.path);
      }
      if (struct.isSetType()) {
        oprot.writeByte(struct.type);
      }
      if (struct.isSetTxId()) {
        oprot.writeI64(struct.txId);
      }
    }
View Full Code Here

      oprot.writeBitSet(optionals, 2);
      if (struct.isSetPath()) {
        oprot.writeString(struct.path);
      }
      if (struct.isSetType()) {
        oprot.writeByte(struct.type);
      }
    }

    @Override
    public void read(org.apache.thrift.protocol.TProtocol prot, NamespaceEvent 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.