Re: IDE indicates the data type error of my Filter operator in Scala

2015-03-10 Thread Till Rohrmann
Great :-) Then you can forget my mail I just sent you. On Tue, Mar 10, 2015 at 9:12 PM, HungChang wrote: > Got it. Problem solved by changing the "map" > val pldIndex = GraphUtils.readVertices(PLDIndexFile).map { vertex => > AnnotatedVertex(vertex.annotation, vertex.id) } > > > > -- > View this

Re: IDE complains my Filter operator in Scala

2015-03-10 Thread Till Rohrmann
Hi Hung, the problem is that the data set pIdIndex contains elements of type Tuple2[String, Int] whereas the defined filter function expects AnnotatedVertex elements. Removing the trailing map operation where you read the vertices should solve this problem. Another problem is that in the open met

IDE complains my Filter operator in Scala

2015-03-10 Thread HungChang
Hi, My Filter operator in Scala encounters that IDE complains about the data type: "overloaded method value filter with alternatives: (fun: ((String, Int)) ⇒ Boolean cannot be applied..." Scala for me is quite new. I'm thinking the problem comes from the type doesn't match each other in map opera