Beispiel #1
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.cid)
            {
                hashcode = (hashcode * 397) + Cid.GetHashCode();
            }
            if ((Col_name != null) && __isset.col_name)
            {
                hashcode = (hashcode * 397) + Col_name.GetHashCode();
            }
            if ((Col_tags != null) && __isset.col_tags)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(Col_tags);
            }
            if (__isset.col_seq)
            {
                hashcode = (hashcode * 397) + Col_seq.GetHashCode();
            }
            if (__isset.col_type)
            {
                hashcode = (hashcode * 397) + Col_type.GetHashCode();
            }
            if (__isset.cell_versions)
            {
                hashcode = (hashcode * 397) + Cell_versions.GetHashCode();
            }
            if (__isset.cell_ttl)
            {
                hashcode = (hashcode * 397) + Cell_ttl.GetHashCode();
            }
            if (__isset.blk_encoding)
            {
                hashcode = (hashcode * 397) + Blk_encoding.GetHashCode();
            }
            if (__isset.blk_size)
            {
                hashcode = (hashcode * 397) + Blk_size.GetHashCode();
            }
            if (__isset.blk_cells)
            {
                hashcode = (hashcode * 397) + Blk_cells.GetHashCode();
            }
            if (__isset.cs_replication)
            {
                hashcode = (hashcode * 397) + Cs_replication.GetHashCode();
            }
            if (__isset.cs_size)
            {
                hashcode = (hashcode * 397) + Cs_size.GetHashCode();
            }
            if (__isset.cs_max)
            {
                hashcode = (hashcode * 397) + Cs_max.GetHashCode();
            }
            if (__isset.log_rollout_ratio)
            {
                hashcode = (hashcode * 397) + Log_rollout_ratio.GetHashCode();
            }
            if (__isset.log_compact_cointervaling)
            {
                hashcode = (hashcode * 397) + Log_compact_cointervaling.GetHashCode();
            }
            if (__isset.log_fragment_preload)
            {
                hashcode = (hashcode * 397) + Log_fragment_preload.GetHashCode();
            }
            if (__isset.compact_percent)
            {
                hashcode = (hashcode * 397) + Compact_percent.GetHashCode();
            }
            if (__isset.revision)
            {
                hashcode = (hashcode * 397) + Revision.GetHashCode();
            }
        }
        return(hashcode);
    }
Beispiel #2
0
    public override string ToString()
    {
        var tmp12 = new StringBuilder("Schema(");
        int tmp13 = 0;

        if (__isset.cid)
        {
            if (0 < tmp13++)
            {
                tmp12.Append(", ");
            }
            tmp12.Append("Cid: ");
            Cid.ToString(tmp12);
        }
        if ((Col_name != null) && __isset.col_name)
        {
            if (0 < tmp13++)
            {
                tmp12.Append(", ");
            }
            tmp12.Append("Col_name: ");
            Col_name.ToString(tmp12);
        }
        if ((Col_tags != null) && __isset.col_tags)
        {
            if (0 < tmp13++)
            {
                tmp12.Append(", ");
            }
            tmp12.Append("Col_tags: ");
            Col_tags.ToString(tmp12);
        }
        if (__isset.col_seq)
        {
            if (0 < tmp13++)
            {
                tmp12.Append(", ");
            }
            tmp12.Append("Col_seq: ");
            Col_seq.ToString(tmp12);
        }
        if (__isset.col_type)
        {
            if (0 < tmp13++)
            {
                tmp12.Append(", ");
            }
            tmp12.Append("Col_type: ");
            Col_type.ToString(tmp12);
        }
        if (__isset.cell_versions)
        {
            if (0 < tmp13++)
            {
                tmp12.Append(", ");
            }
            tmp12.Append("Cell_versions: ");
            Cell_versions.ToString(tmp12);
        }
        if (__isset.cell_ttl)
        {
            if (0 < tmp13++)
            {
                tmp12.Append(", ");
            }
            tmp12.Append("Cell_ttl: ");
            Cell_ttl.ToString(tmp12);
        }
        if (__isset.blk_encoding)
        {
            if (0 < tmp13++)
            {
                tmp12.Append(", ");
            }
            tmp12.Append("Blk_encoding: ");
            Blk_encoding.ToString(tmp12);
        }
        if (__isset.blk_size)
        {
            if (0 < tmp13++)
            {
                tmp12.Append(", ");
            }
            tmp12.Append("Blk_size: ");
            Blk_size.ToString(tmp12);
        }
        if (__isset.blk_cells)
        {
            if (0 < tmp13++)
            {
                tmp12.Append(", ");
            }
            tmp12.Append("Blk_cells: ");
            Blk_cells.ToString(tmp12);
        }
        if (__isset.cs_replication)
        {
            if (0 < tmp13++)
            {
                tmp12.Append(", ");
            }
            tmp12.Append("Cs_replication: ");
            Cs_replication.ToString(tmp12);
        }
        if (__isset.cs_size)
        {
            if (0 < tmp13++)
            {
                tmp12.Append(", ");
            }
            tmp12.Append("Cs_size: ");
            Cs_size.ToString(tmp12);
        }
        if (__isset.cs_max)
        {
            if (0 < tmp13++)
            {
                tmp12.Append(", ");
            }
            tmp12.Append("Cs_max: ");
            Cs_max.ToString(tmp12);
        }
        if (__isset.log_rollout_ratio)
        {
            if (0 < tmp13++)
            {
                tmp12.Append(", ");
            }
            tmp12.Append("Log_rollout_ratio: ");
            Log_rollout_ratio.ToString(tmp12);
        }
        if (__isset.log_compact_cointervaling)
        {
            if (0 < tmp13++)
            {
                tmp12.Append(", ");
            }
            tmp12.Append("Log_compact_cointervaling: ");
            Log_compact_cointervaling.ToString(tmp12);
        }
        if (__isset.log_fragment_preload)
        {
            if (0 < tmp13++)
            {
                tmp12.Append(", ");
            }
            tmp12.Append("Log_fragment_preload: ");
            Log_fragment_preload.ToString(tmp12);
        }
        if (__isset.compact_percent)
        {
            if (0 < tmp13++)
            {
                tmp12.Append(", ");
            }
            tmp12.Append("Compact_percent: ");
            Compact_percent.ToString(tmp12);
        }
        if (__isset.revision)
        {
            if (0 < tmp13++)
            {
                tmp12.Append(", ");
            }
            tmp12.Append("Revision: ");
            Revision.ToString(tmp12);
        }
        tmp12.Append(')');
        return(tmp12.ToString());
    }