Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FLINK-1555] Add serializer hierarchy debug util #415

Closed
wants to merge 1 commit into from

Conversation

rmetzger
Copy link
Contributor

No description provided.

private static <T> String getSerializerTree(TypeInformation<T> ti, int indent) {
String ret = "";
if(ti instanceof CompositeType) {
ret += ti.toString()+"\n";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the toString method not already print the whole tree? Thus, the information would be redundant.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree.

I'll also update the PR to list the field types of GenericTypes as well.

@rmetzger
Copy link
Contributor Author

I've updated the PR to also print out the fields of GenericTypes.

I'm thinking to merge this in the next 24 hours.

@aljoscha
Copy link
Contributor

aljoscha commented Mar 2, 2015

I suggest putting this code into a Util, not inside the GenericTypeInfo. Also, CompositeType has a method getFields() that gives you the names of all fields. To be fair, I added this very recently. 😄

@asfgit asfgit closed this in 226e905 Mar 3, 2015
marthavk pushed a commit to marthavk/flink that referenced this pull request Jun 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants