Hi Allen!
The error looks a bit weird… We don’t have any parameter named g2 (well, it 
only takes one parameter) in the snippet you provided.

Would you be able to provide a more complete snippet and complete compile error?
Thanks!

-- 
Cheers,
Konrad 'ktoso’ Malawski
Akka @ Typesafe

On 30 March 2015 at 00:15:00, Allen Nie ([email protected]) wrote:

Hi,

     I'm trying to use Akka Stream to parallelize a sequence of operations..and 
I have those types:


     type OrdinalRow = Vector[String]
     type NamedRow = Map[String, String]
       type NormalRow= Either[OrdinalRow, NamedRow]
      type RowIterator = Either[Iterator[OrdinalRow], Iterator[NamedRow]]
   
    The RunnableFlow functions will take in NormalRow, and the iterator 
provided has the type of RowIterator.

    Then I wanted to start constructing a source:


        protected val source: Source[NormalRow, Unit] = Source(() => 
data.dataIterator)

    data.dataIterator returns a iterator with RowIterator type. However, it 
says "unspecified value parameter g2"....Can anyone let me know what's going 
on? Why is this happening and can it be fixed?

Sincerely,
Allen
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to