Projection with Type Hint用法
生活随笔
收集整理的這篇文章主要介紹了
Projection with Type Hint用法
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
官方文檔原話是:
Note that the Java compiler cannot infer the return type of project operator.
This problem can be overcome by hinting the return type of project operator like this:
實(shí)驗(yàn)結(jié)構(gòu)如下:
├── dataset_api.iml
├── pom.xml
└── src
├── main
│ ├── java
│ │ └── dataset_api.java
│ └── resources
└── test
└── java
/home/appleyuchi/test.csv內(nèi)容如下:
"test1","test2","test3","test4","test5"
"test6","test7"
總結(jié)
以上是生活随笔為你收集整理的Projection with Type Hint用法的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Projection of Tuple
- 下一篇: 哪个app可以看金铲铲之战(哪个和那个怎