Skip to content

Conversation

@TheNeuralBit
Copy link
Member

... so that it can be used as the java implementation of
beam:coder:row:v1 in a later change

Some of RowCoder's functionality has been removed (estimatedSizeBytes),
and some has been moved to SchemaCoder and RowCoderGenerator.

Post-Commit Tests Status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- Build Status --- --- Build Status
Java Build Status Build Status Build Status Build Status
Build Status
Build Status
Build Status Build Status Build Status
Build Status
Python Build Status
Build Status
Build Status
Build Status
--- Build Status
Build Status
Build Status --- --- Build Status
XLang --- --- --- Build Status --- --- ---

Pre-Commit Tests Status (on master branch)

--- Java Python Go Website
Non-portable Build Status Build Status Build Status Build Status
Portable --- Build Status --- ---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

@TheNeuralBit
Copy link
Member Author

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.
@TheNeuralBit
Copy link
Member Author

TheNeuralBit commented Sep 27, 2019

Rebased onto master, and split out the RowSize/estimatedSizeBytes removal into its own commit for clarity.

@reuvenlax
Copy link
Contributor

still appears to be conflicting files?

@TheNeuralBit
Copy link
Member Author

Oh probably because #9446 was just merged. I'll fix it now.

Comment on lines +276 to +293
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();
}
Copy link
Member Author

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.

@reuvenlax reuvenlax merged commit 7abf88c into apache:master Oct 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants