I have this JSON file:
{
"_id": "series/cogtech/Zancanaro12",
"type": "Article",
"title": "Shared Interfaces for Co-located Interaction.",
"pages": {
"start": 71,
"end": 88
},
"year": 2012,
"booktitle": "Ubiquitous Display Environments",
"url": "db/series/cogtech/364227662.html#Zancanaro12",
"authors": [
{
"name": "Massimo Zancanaro"
}
],
"a": [
1,
3,
5,
5
]
}
I don't know how to pass data from a JSON file to a dataset without going through a dataframe. If I have to create a class, How to do that?
question from:
https://stackoverflow.com/questions/65944891/sparkcontext-dataset-json-file 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…