Created
September 24, 2018 18:32
-
-
Save andr83/49d555c4204021985cc6f138b118d78a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RDDMultipleTextOutputFormat extends MultipleTextOutputFormat[Any, Any] { | |
override def generateActualKey(key: Any, value: Any): Any = | |
NullWritable.get() | |
override def generateFileNameForKeyValue(key: Any, value: Any, name: String): String = { | |
key.asInstanceOf[String] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment