Re: [Java] Constructing a list from ArrowBufs

2023-04-27 Thread Andrew Melo
Very sorry, I deleted an important part of the code. it should read: // Number of bytes each element takes up Int is 4, etc.. int itemSize = new AsDtype(dtype).memory_itemsize(); int countBufferSize = (entryStop - entryStart + 1) * INT_SIZE; ArrowBuf countsBuf =

[Java] Constructing a list from ArrowBufs

2023-04-27 Thread Andrew Melo
Hi all, I am working on a Spark datasource plugin that reads a (custom) file format and outputs arrow-backed columns. I'm having difficulty figuring out how to construct a ListVector if I have an ArrowBuf with the contents and know the width of each list. I've tried constructing the buffer with