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

[SPARK-9031] Merge BlockObjectWriter and DiskBlockObject writer to remove abstract class #7391

Closed

Conversation

JoshRosen
Copy link
Contributor

BlockObjectWriter has only one concrete non-test class, DiskBlockObjectWriter. In order to simplify the code in preparation for other refactorings, I think that we should remove this base class and have only DiskBlockObjectWriter.

While at one time we may have planned to have multiple BlockObjectWriter implementations, that doesn't seem to have happened, so the extra abstraction seems unnecessary.

@JoshRosen
Copy link
Contributor Author

/cc @rxin

@SparkQA
Copy link

SparkQA commented Jul 14, 2015

Test build #37209 has finished for PR 7391 at commit 89dc797.

  • This patch fails to build.
  • This patch merges cleanly.
  • This patch adds no public classes.

@@ -26,55 +26,15 @@ import org.apache.spark.executor.ShuffleWriteMetrics
import org.apache.spark.util.Utils

/**
* An interface for writing JVM objects to some underlying storage. This interface allows
* An interface for writing JVM objects directly to a file on disk. This interface allows
Copy link
Contributor

Choose a reason for hiding this comment

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

interface -> class

@rxin
Copy link
Contributor

rxin commented Jul 14, 2015

LGTM (although compilation is broken)

@SparkQA
Copy link

SparkQA commented Jul 14, 2015

Test build #37234 has finished for PR 7391 at commit c418e33.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@rxin
Copy link
Contributor

rxin commented Jul 14, 2015

Thanks - merged.

@asfgit asfgit closed this in d267c28 Jul 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants