Beispiel #1
0
        private bool IsExistsProperty(GenericRecord record)
        {
            var field = record.Schema.GetField(_fieldTop);
            if (field == null) {
                return false;
            }

            var inner = record.Get(_fieldTop);
            if (!(inner is GenericRecord)) {
                return false;
            }

            return _getter.IsExistsPropertyAvro((GenericRecord) inner);
        }
Beispiel #2
0
 public bool IsExistsProperty(EventBean eventBean)
 {
     var record = (GenericRecord) eventBean.Underlying;
     var field = record.Schema.GetField(_fieldTop);
     if (field == null)
     {
         return false;
     }
     Object inner = record.Get(_fieldTop);
     if (!(inner is GenericRecord))
     {
         return false;
     }
     return _getter.IsExistsPropertyAvro((GenericRecord) inner);
 }