forked from D-Net/dnet-hadoop
Use asScala to convert java List to Scala Sequence
This commit is contained in:
parent
7f244d9a7a
commit
3c47920c78
|
@ -78,10 +78,10 @@ case class SparkModel(conf: DedupConfig) {
|
|||
uv
|
||||
|
||||
case Type.List | Type.JSON =>
|
||||
Seq(MapDocumentUtil.truncateList(
|
||||
MapDocumentUtil.truncateList(
|
||||
MapDocumentUtil.getJPathList(fdef.getPath, documentContext, fdef.getType),
|
||||
fdef.getSize
|
||||
))
|
||||
).asScala
|
||||
|
||||
case Type.StringConcat =>
|
||||
val jpaths = CONCAT_REGEX.split(fdef.getPath)
|
||||
|
|
Loading…
Reference in New Issue