title: Creating a concurrent collection which does not load data in memory from Stream : Java
body: <p>I have a requirement to send each line from a Huge file to a Java Collection,Iterator,Iterable. From this collection,iterator etc an existing framework takes the data and loads into a processing system. However the requirement is to send a <strong>Concurrent</strong> Collection,iterator etc to this framework, this is the part i am facing difficulty. </p>
  
  <p>I have a <strong>java.util.stream</strong> which i got from a huge file.
  There are numerous lines in the file, i want to pass all the lines into a java <strong>Concurrent java.lang.Iterable</strong> or a <strong>Concurrent java.util.Iterator</strong> or a <strong>Concurrent java.util.Collection</strong> which does not store all the records in the memory so that i do not get Exceptions like <strong>OutOfMemory</strong> etc.,  </p>
  
  <ul>
  <li>I was able to get a Iterator implementation from the java Stream but
  it is not <strong>Concurrent</strong> </li>
  </ul>
  
  <p>. Any idea on how to make a Concurrent implementation with or without using the Stream API will will be much appreciated.</p>