scala 反射生成对象方法
【来自spark源码-kafkaRDD】本文只是记录一下val keyDecoder = classTag[U].runtimeClass.getConstructor(classOf[VerifiableProperties]) .newInstance(kc.config.props) .asInstanceOf[Decoder[K]]
·
【来自spark源码-kafkaRDD】本文只是记录一下
val keyDecoder = classTag[U].runtimeClass.getConstructor(classOf[VerifiableProperties])
.newInstance(kc.config.props)
.asInstanceOf[Decoder[K]]
更多推荐
所有评论(0)