示例#1
0
        /// <exception cref="System.Exception"/>
        public virtual void TestAvroReflect()
        {
            string schema = "{\"type\":\"array\",\"items\":{\"type\":\"enum\"," + "\"name\":\"TestEnumSet\","
                            + "\"namespace\":\"org.apache.hadoop.io.TestEnumSetWritable$\"," + "\"symbols\":[\"CREATE\",\"OVERWRITE\",\"APPEND\"]},"
                            + "\"java-class\":\"org.apache.hadoop.io.EnumSetWritable\"}";
            Type type = typeof(TestEnumSetWritable).GetField("testField").GetGenericType();

            AvroTestUtil.TestReflect(nonEmptyFlagWritable, type, schema);
        }
示例#2
0
 /// <exception cref="System.Exception"/>
 public virtual void TestAvroReflect()
 {
     AvroTestUtil.TestReflect(new Org.Apache.Hadoop.IO.Text("foo"), "{\"type\":\"string\",\"java-class\":\"org.apache.hadoop.io.Text\"}"
                              );
 }