示例#1
0
 @Override
 public void write(org.apache.thrift.protocol.TProtocol prot, THashJoinNode struct)
     throws org.apache.thrift.TException {
   TTupleProtocol oprot = (TTupleProtocol) prot;
   oprot.writeI32(struct.join_op.getValue());
   {
     oprot.writeI32(struct.eq_join_conjuncts.size());
     for (TEqJoinCondition _iter16 : struct.eq_join_conjuncts) {
       _iter16.write(oprot);
     }
   }
   BitSet optionals = new BitSet();
   if (struct.isSetOther_join_conjuncts()) {
     optionals.set(0);
   }
   oprot.writeBitSet(optionals, 1);
   if (struct.isSetOther_join_conjuncts()) {
     {
       oprot.writeI32(struct.other_join_conjuncts.size());
       for (com.cloudera.impala.thrift.TExpr _iter17 : struct.other_join_conjuncts) {
         _iter17.write(oprot);
       }
     }
   }
 }
示例#2
0
    public void write(org.apache.thrift.protocol.TProtocol oprot, THashJoinNode struct)
        throws org.apache.thrift.TException {
      struct.validate();

      oprot.writeStructBegin(STRUCT_DESC);
      if (struct.join_op != null) {
        oprot.writeFieldBegin(JOIN_OP_FIELD_DESC);
        oprot.writeI32(struct.join_op.getValue());
        oprot.writeFieldEnd();
      }
      if (struct.eq_join_conjuncts != null) {
        oprot.writeFieldBegin(EQ_JOIN_CONJUNCTS_FIELD_DESC);
        {
          oprot.writeListBegin(
              new org.apache.thrift.protocol.TList(
                  org.apache.thrift.protocol.TType.STRUCT, struct.eq_join_conjuncts.size()));
          for (TEqJoinCondition _iter14 : struct.eq_join_conjuncts) {
            _iter14.write(oprot);
          }
          oprot.writeListEnd();
        }
        oprot.writeFieldEnd();
      }
      if (struct.other_join_conjuncts != null) {
        if (struct.isSetOther_join_conjuncts()) {
          oprot.writeFieldBegin(OTHER_JOIN_CONJUNCTS_FIELD_DESC);
          {
            oprot.writeListBegin(
                new org.apache.thrift.protocol.TList(
                    org.apache.thrift.protocol.TType.STRUCT, struct.other_join_conjuncts.size()));
            for (com.cloudera.impala.thrift.TExpr _iter15 : struct.other_join_conjuncts) {
              _iter15.write(oprot);
            }
            oprot.writeListEnd();
          }
          oprot.writeFieldEnd();
        }
      }
      oprot.writeFieldStop();
      oprot.writeStructEnd();
    }