flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmetzger <...@git.apache.org>
Subject [GitHub] flink pull request: [FLINK-1555] Add serializer hierarchy debug ut...
Date Mon, 23 Feb 2015 14:08:53 GMT
Github user rmetzger commented on a diff in the pull request:

    https://github.com/apache/flink/pull/415#discussion_r25165611
  
    --- Diff: flink-core/src/main/java/org/apache/flink/api/common/typeutils/CompositeType.java
---
    @@ -132,7 +133,31 @@ public CompositeType(Class<T> typeClass) {
     		}
     		return getNewComparator(config);
     	}
    - 	
    +
    +	// --------------------------------------------------------------------------------------------
    +
    +	/**
    +	 * Debugging utility to understand the hierarchy of serializers created by the Java
API.
    +	 */
    +	public static <T> String getSerializerTree(TypeInformation<T> ti) {
    +		return getSerializerTree(ti, 0);
    +	}
    +
    +	private static <T> String getSerializerTree(TypeInformation<T> ti, int indent)
{
    +		String ret = "";
    +		if(ti instanceof CompositeType) {
    +			ret += ti.toString()+"\n";
    --- End diff --
    
    I agree.
    
    I'll also update the PR to list the field types of GenericTypes as well.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message