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
case class Field(field: String, value: Any) | |
case class Fields(fields: List[Field], score: Double, siteId: String, id: String) | |
def hello: Unit = { | |
val rdd = sc.textFile("hello.json").map { json => | |
import org.json4s.jackson.JsonMethods._ | |
implicit val jsonFormats = DefaultFormats | |
val fields = parse(json).extract[Fields] | |
for { | |
field <- fields.fields if field.field == "body" |
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
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
// Add custom actions and keybindings to this array. | |
// To unbind a key combination from your defaults.json, set the command to "unbound". | |
// To learn more about actions and keybindings, visit https://aka.ms/terminal-keybindings | |
"actions": | |
[ | |
// Copy and paste are bound to Ctrl+Shift+C and Ctrl+Shift+V in your defaults.json. | |
// These two lines additionally bind them to Ctrl+C and Ctrl+V. | |
// To learn more about selection, visit https://aka.ms/terminal-selection |
OlderNewer