@Test(expected=IllegalArgumentException.class) public void testConvertInvalidTypeTuple() throws Descriptors.DescriptorValidationException { Schema schema = new Schema(); schema.add(new Schema.FieldSchema("tuple", DataType.TUPLE)); PigToProtobuf.schemaToProtoDescriptor(new ResourceSchema(schema)); }
public static Descriptor schemaToProtoDescriptor(ResourceSchema schema) throws DescriptorValidationException { return schemaToProtoDescriptor(schema, null); }
PigToProtobuf { public static Descriptor schemaToProtoDescriptor(ResourceSchema schema) throws DescriptorValidationException { return schemaToProtoDescriptor(schema, null); } }
PigToProtobuf { public static Descriptor schemaToProtoDescriptor(ResourceSchema schema) throws DescriptorValidationException { return schemaToProtoDescriptor(schema, null); } PigToProtobuf(); }
PigToProtobuf { public static Descriptor schemaToProtoDescriptor(ResourceSchema schema) throws DescriptorValidationException { return schemaToProtoDescriptor(schema, null); } PigToProtobuf(); @SuppressWarnings("unchecked") static M tupleToMessage(Class<M> protoClass, Tuple tuple); static Message tupleToMessage(Builder builder, Tuple tuple); static Message tupleToMessage(Builder builder, List<FieldDescriptor> fieldDescriptors, Tuple tuple); static Descriptor schemaToProtoDescriptor(ResourceSchema schema); static Descriptor schemaToProtoDescriptor(ResourceSchema schema, List<Pair<String, Type>> extraFields); }
PigToProtobuf { public static Descriptor schemaToProtoDescriptor(ResourceSchema schema) throws DescriptorValidationException { return schemaToProtoDescriptor(schema, null); } PigToProtobuf(); @SuppressWarnings("unchecked") static M tupleToMessage(Class<M> protoClass, Tuple tuple); static Message tupleToMessage(Builder builder, Tuple tuple); static Message tupleToMessage(Builder builder, List<FieldDescriptor> fieldDescriptors, Tuple tuple); static Descriptor schemaToProtoDescriptor(ResourceSchema schema); static Descriptor schemaToProtoDescriptor(ResourceSchema schema, List<Pair<String, Type>> extraFields);  }