Esempio n. 1
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                if (isset.row_set)
                {
                    hashcode = (hashcode * 397) + Row_set.GetHashCode();
                }
                if (isset.execution_time_ms)
                {
                    hashcode = (hashcode * 397) + Execution_time_ms.GetHashCode();
                }
                if (isset.total_time_ms)
                {
                    hashcode = (hashcode * 397) + Total_time_ms.GetHashCode();
                }
                if (isset.nonce)
                {
                    hashcode = (hashcode * 397) + Nonce.GetHashCode();
                }
                if (isset.debug)
                {
                    hashcode = (hashcode * 397) + Debug.GetHashCode();
                }
            }
            return(hashcode);
        }
Esempio n. 2
0
        public override string ToString()
        {
            var  sb      = new StringBuilder("TDetectResult(");
            bool __first = true;

            if (Row_set != null && isset.row_set)
            {
                if (!__first)
                {
                    sb.Append(", ");
                }
                __first = false;
                sb.Append("Row_set: ");
                sb.Append(Row_set == null ? "<null>" : Row_set.ToString());
            }
            if (Copy_params != null && isset.copy_params)
            {
                if (!__first)
                {
                    sb.Append(", ");
                }
                __first = false;
                sb.Append("Copy_params: ");
                sb.Append(Copy_params == null ? "<null>" : Copy_params.ToString());
            }
            sb.Append(")");
            return(sb.ToString());
        }
Esempio n. 3
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                if (isset.pixel)
                {
                    hashcode = (hashcode * 397) + Pixel.GetHashCode();
                }
                if (isset.vega_table_name)
                {
                    hashcode = (hashcode * 397) + Vega_table_name.GetHashCode();
                }
                if (isset.table_id)
                {
                    hashcode = (hashcode * 397) + TCollections.GetHashCode(Table_id);
                }
                if (isset.row_id)
                {
                    hashcode = (hashcode * 397) + TCollections.GetHashCode(Row_id);
                }
                if (isset.row_set)
                {
                    hashcode = (hashcode * 397) + Row_set.GetHashCode();
                }
                if (isset.nonce)
                {
                    hashcode = (hashcode * 397) + Nonce.GetHashCode();
                }
            }
            return(hashcode);
        }
Esempio n. 4
0
        public override string ToString()
        {
            var  sb      = new StringBuilder("TQueryResult(");
            bool __first = true;

            if (Row_set != null && isset.row_set)
            {
                if (!__first)
                {
                    sb.Append(", ");
                }
                __first = false;
                sb.Append("Row_set: ");
                sb.Append(Row_set == null ? "<null>" : Row_set.ToString());
            }
            if (isset.execution_time_ms)
            {
                if (!__first)
                {
                    sb.Append(", ");
                }
                __first = false;
                sb.Append("Execution_time_ms: ");
                sb.Append(Execution_time_ms);
            }
            if (isset.total_time_ms)
            {
                if (!__first)
                {
                    sb.Append(", ");
                }
                __first = false;
                sb.Append("Total_time_ms: ");
                sb.Append(Total_time_ms);
            }
            if (Nonce != null && isset.nonce)
            {
                if (!__first)
                {
                    sb.Append(", ");
                }
                __first = false;
                sb.Append("Nonce: ");
                sb.Append(Nonce);
            }
            if (Debug != null && isset.debug)
            {
                if (!__first)
                {
                    sb.Append(", ");
                }
                __first = false;
                sb.Append("Debug: ");
                sb.Append(Debug);
            }
            sb.Append(")");
            return(sb.ToString());
        }
Esempio n. 5
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                if (isset.row_set)
                {
                    hashcode = (hashcode * 397) + Row_set.GetHashCode();
                }
                if (isset.copy_params)
                {
                    hashcode = (hashcode * 397) + Copy_params.GetHashCode();
                }
            }
            return(hashcode);
        }
Esempio n. 6
0
        public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken)
        {
            oprot.IncrementRecursionDepth();
            try
            {
                var struc = new TStruct("TDetectResult");
                await oprot.WriteStructBeginAsync(struc, cancellationToken);

                var field = new TField();
                if (Row_set != null && isset.row_set)
                {
                    field.Name = "row_set";
                    field.Type = TType.Struct;
                    field.ID   = 1;
                    await oprot.WriteFieldBeginAsync(field, cancellationToken);

                    await Row_set.WriteAsync(oprot, cancellationToken);

                    await oprot.WriteFieldEndAsync(cancellationToken);
                }
                if (Copy_params != null && isset.copy_params)
                {
                    field.Name = "copy_params";
                    field.Type = TType.Struct;
                    field.ID   = 2;
                    await oprot.WriteFieldBeginAsync(field, cancellationToken);

                    await Copy_params.WriteAsync(oprot, cancellationToken);

                    await oprot.WriteFieldEndAsync(cancellationToken);
                }
                await oprot.WriteFieldStopAsync(cancellationToken);

                await oprot.WriteStructEndAsync(cancellationToken);
            }
            finally
            {
                oprot.DecrementRecursionDepth();
            }
        }
Esempio n. 7
0
        public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken)
        {
            oprot.IncrementRecursionDepth();
            try
            {
                var struc = new TStruct("TQueryResult");
                await oprot.WriteStructBeginAsync(struc, cancellationToken);

                var field = new TField();
                if (Row_set != null && isset.row_set)
                {
                    field.Name = "row_set";
                    field.Type = TType.Struct;
                    field.ID   = 1;
                    await oprot.WriteFieldBeginAsync(field, cancellationToken);

                    await Row_set.WriteAsync(oprot, cancellationToken);

                    await oprot.WriteFieldEndAsync(cancellationToken);
                }
                if (isset.execution_time_ms)
                {
                    field.Name = "execution_time_ms";
                    field.Type = TType.I64;
                    field.ID   = 2;
                    await oprot.WriteFieldBeginAsync(field, cancellationToken);

                    await oprot.WriteI64Async(Execution_time_ms, cancellationToken);

                    await oprot.WriteFieldEndAsync(cancellationToken);
                }
                if (isset.total_time_ms)
                {
                    field.Name = "total_time_ms";
                    field.Type = TType.I64;
                    field.ID   = 3;
                    await oprot.WriteFieldBeginAsync(field, cancellationToken);

                    await oprot.WriteI64Async(Total_time_ms, cancellationToken);

                    await oprot.WriteFieldEndAsync(cancellationToken);
                }
                if (Nonce != null && isset.nonce)
                {
                    field.Name = "nonce";
                    field.Type = TType.String;
                    field.ID   = 4;
                    await oprot.WriteFieldBeginAsync(field, cancellationToken);

                    await oprot.WriteStringAsync(Nonce, cancellationToken);

                    await oprot.WriteFieldEndAsync(cancellationToken);
                }
                if (Debug != null && isset.debug)
                {
                    field.Name = "debug";
                    field.Type = TType.String;
                    field.ID   = 5;
                    await oprot.WriteFieldBeginAsync(field, cancellationToken);

                    await oprot.WriteStringAsync(Debug, cancellationToken);

                    await oprot.WriteFieldEndAsync(cancellationToken);
                }
                await oprot.WriteFieldStopAsync(cancellationToken);

                await oprot.WriteStructEndAsync(cancellationToken);
            }
            finally
            {
                oprot.DecrementRecursionDepth();
            }
        }
Esempio n. 8
0
        public override string ToString()
        {
            var  sb      = new StringBuilder("TPixelTableRowResult(");
            bool __first = true;

            if (Pixel != null && isset.pixel)
            {
                if (!__first)
                {
                    sb.Append(", ");
                }
                __first = false;
                sb.Append("Pixel: ");
                sb.Append(Pixel == null ? "<null>" : Pixel.ToString());
            }
            if (Vega_table_name != null && isset.vega_table_name)
            {
                if (!__first)
                {
                    sb.Append(", ");
                }
                __first = false;
                sb.Append("Vega_table_name: ");
                sb.Append(Vega_table_name);
            }
            if (Table_id != null && isset.table_id)
            {
                if (!__first)
                {
                    sb.Append(", ");
                }
                __first = false;
                sb.Append("Table_id: ");
                sb.Append(Table_id);
            }
            if (Row_id != null && isset.row_id)
            {
                if (!__first)
                {
                    sb.Append(", ");
                }
                __first = false;
                sb.Append("Row_id: ");
                sb.Append(Row_id);
            }
            if (Row_set != null && isset.row_set)
            {
                if (!__first)
                {
                    sb.Append(", ");
                }
                __first = false;
                sb.Append("Row_set: ");
                sb.Append(Row_set == null ? "<null>" : Row_set.ToString());
            }
            if (Nonce != null && isset.nonce)
            {
                if (!__first)
                {
                    sb.Append(", ");
                }
                __first = false;
                sb.Append("Nonce: ");
                sb.Append(Nonce);
            }
            sb.Append(")");
            return(sb.ToString());
        }
Esempio n. 9
0
        public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken)
        {
            oprot.IncrementRecursionDepth();
            try
            {
                var struc = new TStruct("TPixelTableRowResult");
                await oprot.WriteStructBeginAsync(struc, cancellationToken);

                var field = new TField();
                if (Pixel != null && isset.pixel)
                {
                    field.Name = "pixel";
                    field.Type = TType.Struct;
                    field.ID   = 1;
                    await oprot.WriteFieldBeginAsync(field, cancellationToken);

                    await Pixel.WriteAsync(oprot, cancellationToken);

                    await oprot.WriteFieldEndAsync(cancellationToken);
                }
                if (Vega_table_name != null && isset.vega_table_name)
                {
                    field.Name = "vega_table_name";
                    field.Type = TType.String;
                    field.ID   = 2;
                    await oprot.WriteFieldBeginAsync(field, cancellationToken);

                    await oprot.WriteStringAsync(Vega_table_name, cancellationToken);

                    await oprot.WriteFieldEndAsync(cancellationToken);
                }
                if (Table_id != null && isset.table_id)
                {
                    field.Name = "table_id";
                    field.Type = TType.List;
                    field.ID   = 3;
                    await oprot.WriteFieldBeginAsync(field, cancellationToken);

                    {
                        await oprot.WriteListBeginAsync(new TList(TType.I64, Table_id.Count), cancellationToken);

                        foreach (long _iter54 in Table_id)
                        {
                            await oprot.WriteI64Async(_iter54, cancellationToken);
                        }
                        await oprot.WriteListEndAsync(cancellationToken);
                    }
                    await oprot.WriteFieldEndAsync(cancellationToken);
                }
                if (Row_id != null && isset.row_id)
                {
                    field.Name = "row_id";
                    field.Type = TType.List;
                    field.ID   = 4;
                    await oprot.WriteFieldBeginAsync(field, cancellationToken);

                    {
                        await oprot.WriteListBeginAsync(new TList(TType.I64, Row_id.Count), cancellationToken);

                        foreach (long _iter55 in Row_id)
                        {
                            await oprot.WriteI64Async(_iter55, cancellationToken);
                        }
                        await oprot.WriteListEndAsync(cancellationToken);
                    }
                    await oprot.WriteFieldEndAsync(cancellationToken);
                }
                if (Row_set != null && isset.row_set)
                {
                    field.Name = "row_set";
                    field.Type = TType.Struct;
                    field.ID   = 5;
                    await oprot.WriteFieldBeginAsync(field, cancellationToken);

                    await Row_set.WriteAsync(oprot, cancellationToken);

                    await oprot.WriteFieldEndAsync(cancellationToken);
                }
                if (Nonce != null && isset.nonce)
                {
                    field.Name = "nonce";
                    field.Type = TType.String;
                    field.ID   = 6;
                    await oprot.WriteFieldBeginAsync(field, cancellationToken);

                    await oprot.WriteStringAsync(Nonce, cancellationToken);

                    await oprot.WriteFieldEndAsync(cancellationToken);
                }
                await oprot.WriteFieldStopAsync(cancellationToken);

                await oprot.WriteStructEndAsync(cancellationToken);
            }
            finally
            {
                oprot.DecrementRecursionDepth();
            }
        }