Exemplo n.º 1
0
 public ColumnOrSuperColumn(Column column, SuperColumn superColumn)
 {
     if (column != null)
     {
         Column = column;
     }
     if (superColumn != null)
     {
         Super_column = superColumn;
     }
 }
Exemplo n.º 2
0
        public void Read(TProtocol iprot)
        {
            TField field;

            iprot.ReadStructBegin();
            while (true)
            {
                field = iprot.ReadFieldBegin();
                if (field.Type == TType.Stop)
                {
                    break;
                }
                switch (field.ID)
                {
                case 1:
                    if (field.Type == TType.Struct)
                    {
                        this.column = new Column();
                        this.column.Read(iprot);
                        this.__isset.column = true;
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 2:
                    if (field.Type == TType.Struct)
                    {
                        this.super_column = new SuperColumn();
                        this.super_column.Read(iprot);
                        this.__isset.super_column = true;
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                default:
                    TProtocolUtil.Skip(iprot, field.Type);
                    break;
                }
                iprot.ReadFieldEnd();
            }
            iprot.ReadStructEnd();
        }
Exemplo n.º 3
0
 public ColumnOrSuperColumn(SuperColumn superColumn)
     : this(null, superColumn)
 {
 }