Does common-csv support **sorting** large? Does it support binary search? What should I do if I have a non-csv text file?
Actually I didn't say that textfile-utils is a library for working with csv files. I just provided you with an example. On Sun, Jul 9, 2023 at 8:23 PM Gary Gregory <garydgreg...@gmail.com> wrote: > If the intent is to process CSV files, you're missing quite parameters in > order to process all of the different CSV flavors, see Apache Commons CSV. > > Gary > > > On Sun, Jul 9, 2023, 13:16 ssz <sss.z...@gmail.com> wrote: > > > text-files sort. e.g. CSV. > > > > Example: > > content: `d,420;b,42;b,21;a;21;c;"42"`, delimiter ';' > > after sort by prefix: `a:21;b,42;b,21;c:"42";d,420` > > binary search by prefix `b`: `b,42;b,21` > > > > The project is completed with tests and documentation. > > It is open source. > > Github: https://github.com/DataFabricRus/textfile-utils > > > > I think there shouldn't be any problems with reading the code. > > Kotlin - is advanced java, or you can consider it as pseudocode. > > > > Perhaps I should supplement the description in `README.md` to make it > > clearer? > > Could you please tell me what I should include? > > > > Yes, many databases have sorted files under the hood. > > But what should I do if I need to just search in a big file? > > I can't reuse database code, I can't make a particular trivial task more > > complicated by using a database. I haven't been able to find any good > > solutions in regular libraries. > > So I invented this bicycle.I think the desire to have such a library is > > understandable. > > > > Please ask any questions. > > > > > > On Sun, Jul 9, 2023 at 6:40 PM Gary Gregory <garydgreg...@gmail.com> > > wrote: > > > > > Hello, > > > > > > This seems to be me like a mismatch with Commons IO. > > > > > > What does it even mean to "sort" a file which are really a bunch of > > bytes. > > > Do you have a relevant example (Java base)? > > > > > > This feels more like a database primitive to me. What am I missing? > > > > > > Gary > > > > > > On Sun, Jul 9, 2023, 10:42 ssz <sss.z...@gmail.com> wrote: > > > > > > > It seems to be well-known and generic functionality, so it would be > > nice > > > to > > > > have it in some well-known common place. > > > > Is *apache/commons-io* this place? > > > > > > > > Here is the draft: https://github.com/DataFabricRus/textfile-utils > > > > This is my library made for DataFablic, it is written on kotlin with > > > > coroutines and Java NIO. > > > > Of course, it can be ported to java (preserving kotlin-version for > > > > multiplatform) > > > > > > > > > >