示例#1
0
 public void toThrift(TColumnType container, TTypeNode node) {
   TStructField field = new TStructField();
   field.setName(name_);
   if (comment_ != null) field.setComment(comment_);
   node.struct_fields.add(field);
   type_.toThrift(container);
 }
示例#2
0
  public void setFieldValue(_Fields field, Object value) {
    switch (field) {
      case NAME:
        if (value == null) {
          unsetName();
        } else {
          setName((String) value);
        }
        break;

      case COMMENT:
        if (value == null) {
          unsetComment();
        } else {
          setComment((String) value);
        }
        break;
    }
  }