Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,15 @@ object FileCommitProtocol extends Logging {

object EmptyTaskCommitMessage extends TaskCommitMessage(null)

/**
* The specification for Spark output file name.
* This is used by [[FileCommitProtocol]] to create full path of file.
*
* @param prefix Prefix of file.
* @param suffix Suffix of file.
*/
final case class FileNameSpec(prefix: String, suffix: String)

/**
* Instantiates a FileCommitProtocol using the given className.
*/
Expand Down Expand Up @@ -231,12 +240,3 @@ object FileCommitProtocol extends Logging {
new Path(path, ".spark-staging-" + jobId)
}
}

/**
* The specification for Spark output file name.
* This is used by [[FileCommitProtocol]] to create full path of file.
*
* @param prefix Prefix of file.
* @param suffix Suffix of file.
*/
final case class FileNameSpec(prefix: String, suffix: String)
Copy link
Contributor

Choose a reason for hiding this comment

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

isn't this a public class?

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 think because the companion object is defined here, so it cannot be imported in other files.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually wait a second, let me double check. Sorry for the rush.