-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Make RowCoder a sub-class of SchemaCoder<Row> #9424
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
Conversation
|
R: @reuvenlax could you review this or suggest someone else? |
... so that it can be used as the java implementation of beam:coder:row:v1 in a later change All of its remaining functionality has been moved to SchemaCoder and RowCoderGenerator.
ad52f7d to
c134f0a
Compare
|
Rebased onto master, and split out the |
|
still appears to be conflicting files? |
|
Oh probably because #9446 was just merged. I'll fix it now. |
| private static class RowIdentity implements SerializableFunction<Row, Row> { | ||
| @Override | ||
| public Row apply(Row input) { | ||
| return input; | ||
| } | ||
|
|
||
| @Override | ||
| public int hashCode() { | ||
| return Objects.hash(getClass()); | ||
| } | ||
|
|
||
| @Override | ||
| public boolean equals(Object o) { | ||
| if (this == o) { | ||
| return true; | ||
| } | ||
| return o != null && getClass() == o.getClass(); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note I moved this RowIdentity class here just to make CloudObjectsTest happy until #9493 is in, and we can pass in some real SchemaCoder instances created by the providers.
... so that it can be used as the java implementation of
beam:coder:row:v1in a later changeSome of
RowCoder's functionality has been removed (estimatedSizeBytes),and some has been moved to
SchemaCoderandRowCoderGenerator.Post-Commit Tests Status (on master branch)
Pre-Commit Tests Status (on master branch)
See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.