kennknowles commented on a change in pull request #13003:
URL: https://github.com/apache/beam/pull/13003#discussion_r499734737
##########
File path:
sdks/java/core/src/main/java/org/apache/beam/sdk/schemas/FieldValueTypeInformation.java
##########
@@ -118,6 +123,29 @@ public static FieldValueTypeInformation forField(Field
field) {
.build();
}
+ public static <T extends AnnotatedElement & Member> String getNameOverride(
+ String original, T member) {
+ SchemaFieldName fieldName = member.getAnnotation(SchemaFieldName.class);
+ SchemaCaseFormat caseFormatAnnotation =
member.getAnnotation(SchemaCaseFormat.class);
+ SchemaCaseFormat classCaseFormatAnnotation =
+ member.getDeclaringClass().getAnnotation(SchemaCaseFormat.class);
Review comment:
Worst cast, the person authoring `MyBeamObject` has to write a bunch of
trivial overrides. I'm OK with that.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]