如何在B类中访问randomStruct?
Class A
{
public:
struct randomStruct
{
// some functions and variables here
}
}
Class B
{
// and here I need to call my randomStruct from class A
}
这只是代码
的一个例子答案 0 :(得分:0)
如果您通过电话使用这可能是一个解决方案
val df2 = spark.read.json("/xxx/xxx/xxx/nested2.json")
df2.printSchema
root
|-- id: string (nullable = true)
|-- image: string (nullable = true)
|-- name: string (nullable = true)
|-- type: string (nullable = true)