You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is because both operators just allow for String as input and not for Iterable[File] or Seq[Iterator[Byte]].
There's also a typo in the first example >: should be BACKTICK>:BACKTICK
Also the File.append* API does not allow for an efficient concatenation of Files. To do so we need to write something like:
val chunkResults: Iterable[File] = ...
chunkResults.map(_.contentAsString).foreach(combinedFile.appendLines(_))
// or
chunkResults.map(_.bytes.toArray).foreach(combinedBlastOut.append)
Both approaches load the complete input files into memory and don't stream/iterate through them which will cause problems for larger files.
pathikrit
changed the title
Redirection operators don't work for file- and byte-iterators
Implement redirection operators for file- and byte-iterators
Nov 11, 2015
Any updates on when this this will be fixed?
Concatenating files and writing them to a new file is the most basic thing a file library should do IMO. Is there a workaround? I used unix4j in the end.
The following examples from the README.md are not working
This is because both operators just allow for
String
as input and not for Iterable[File] or Seq[Iterator[Byte]].There's also a typo in the first example
>:
should beBACKTICK>:BACKTICK
Also the File.append* API does not allow for an efficient concatenation of
File
s. To do so we need to write something like:Both approaches load the complete input files into memory and don't stream/iterate through them which will cause problems for larger files.
Suggestion:
The text was updated successfully, but these errors were encountered: