Apache.Hadoop.Hive.Order.Write C# (CSharp) Method

Write() public method

public Write ( TProtocol oprot ) : void
oprot Thrift.Protocol.TProtocol
return void
        public void Write(TProtocol oprot)
        {
            TStruct struc = new TStruct("Order");
              oprot.WriteStructBegin(struc);
              TField field = new TField();
              if (Col != null && __isset.col) {
            field.Name = "col";
            field.Type = TType.String;
            field.ID = 1;
            oprot.WriteFieldBegin(field);
            oprot.WriteString(Col);
            oprot.WriteFieldEnd();
              }
              if (__isset.order) {
            field.Name = "order";
            field.Type = TType.I32;
            field.ID = 2;
            oprot.WriteFieldBegin(field);
            oprot.WriteI32(order);
            oprot.WriteFieldEnd();
              }
              oprot.WriteFieldStop();
              oprot.WriteStructEnd();
        }