Exemple #1
0
 public abstract void echo(org.apache.avro.test.AllTestRecord allTest, Avro.IO.ICallback <org.apache.avro.test.AllTestRecord> callback);
 public abstract void echoParameters(bool booleanTest, int intTest, long longTest, float floatTest, double doubleTest, byte[] bytesTest, string stringTest, org.apache.avro.test.AllEnum enumTest, org.apache.avro.test.FixedTest fixedTest, IList <System.Int64> arrayTest, IDictionary <string, System.Int64> mapTest, org.apache.avro.test.AllTestRecord nestedTest, Avro.IO.ICallback <org.apache.avro.test.AllTestRecord> callback);
Exemple #3
0
		public virtual void Put(int fieldPos, object fieldValue)
		{
			switch (fieldPos)
			{
			case 0: this.booleanTest = (System.Boolean)fieldValue; break;
			case 1: this.intTest = (System.Int32)fieldValue; break;
			case 2: this.longTest = (System.Int64)fieldValue; break;
			case 3: this.floatTest = (System.Single)fieldValue; break;
			case 4: this.doubleTest = (System.Double)fieldValue; break;
			case 5: this.bytesTest = (System.Byte[])fieldValue; break;
			case 6: this.stringTest = (System.String)fieldValue; break;
			case 7: this.enumTest = (org.apache.avro.test.AllEnum)fieldValue; break;
			case 8: this.fixedTest = (org.apache.avro.test.FixedTest)fieldValue; break;
			case 9: this.arrayTest = (IList<System.Int64>)fieldValue; break;
			case 10: this.mapTest = (IDictionary<string,System.Int64>)fieldValue; break;
			case 11: this.nestedTest = (org.apache.avro.test.AllTestRecord)fieldValue; break;
			default: throw new AvroRuntimeException("Bad index " + fieldPos + " in Put()");
			};
		}
Exemple #4
0
 public abstract org.apache.avro.test.AllTestRecord echo(org.apache.avro.test.AllTestRecord allTest);