Example #1
0
        public virtual void Put(int fieldPos, object fieldValue)
        {
            switch (fieldPos)
            {
            case 0: this._uid = (Energistics.Etp.v12.Datatypes.DataArrayTypes.DataArrayIdentifier)fieldValue; break;

            case 1: this._array = (Energistics.Etp.v12.Datatypes.DataArrayTypes.DataArray)fieldValue; break;

            default: throw new AvroRuntimeException("Bad index " + fieldPos + " in Put()");
            }
            ;
        }
Example #2
0
        public virtual void Put(int fieldPos, object fieldValue)
        {
            switch (fieldPos)
            {
            case 0: this._uid = (Energistics.Etp.v12.Datatypes.DataArrayTypes.DataArrayIdentifier)fieldValue; break;

            case 1: this._data = (Energistics.Etp.v12.Datatypes.AnyArray)fieldValue; break;

            case 2: this._starts = (IList <System.Int64>)fieldValue; break;

            case 3: this._counts = (IList <System.Int64>)fieldValue; break;

            default: throw new AvroRuntimeException("Bad index " + fieldPos + " in Put()");
            }
            ;
        }