Skip to content

Conversation

@aokolnychyi
Copy link
Contributor

This PR adds the FileWriter interface that defines a contract for writing a number of files of a single type within one spec/partition.

@aokolnychyi
Copy link
Contributor Author

* A factory for creating data and delete writers.
*/
public interface WriterFactory<T> {
public interface FileWriterFactory<T> {
Copy link
Contributor Author

@aokolnychyi aokolnychyi Sep 18, 2021

Choose a reason for hiding this comment

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

This API was added recently and we haven't consumed it anywhere yet.

this.keyMetadata = keyMetadata != null ? keyMetadata.buffer() : null;
this.delete = PositionDelete.create();
this.pathSet = CharSequenceSet.empty();
this.referencedDataFiles = CharSequenceSet.empty();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@openinx @rdblue, it is the rename we discussed here.

@rdblue
Copy link
Contributor

rdblue commented Sep 19, 2021

Looks good overall. My only complaint is that I doubt we need separate result classes for both position and equality deletes. But that's minor and up to you. Merge when you're ready and tests are passing!

@aokolnychyi aokolnychyi merged commit 42e338d into apache:master Sep 20, 2021
@aokolnychyi
Copy link
Contributor Author

Thanks for reviewing, @rdblue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants