Examples of ProtobufStructField


Examples of com.twitter.elephantbird.hive.serde.ProtobufStructObjectInspector.ProtobufStructField

    checkFields(PhoneNumber.getDescriptor().getFields(), test_pn);
  }

  private void checkFields(List<FieldDescriptor> fields, Message message) {
    for (FieldDescriptor fieldDescriptor : fields) {
      ProtobufStructField psf = new ProtobufStructField(fieldDescriptor);
      Object data = protobufOI.getStructFieldData(message, psf);
      Object target = message.getField(fieldDescriptor);
      if (fieldDescriptor.getType() == Type.ENUM) {
        assertEquals(String.class, data.getClass());
        assertEquals(data, ((EnumValueDescriptor) target).getName());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.