Hi,

Assume the column type is of 1-Dimension ByteArray array, (definition level
- 1, and repetition - repeated).


If I want to read the column values one row at a time, I have to keep read
(i.e.
calling ReadBatch(1,...)) until getting a value of 'rep_level=0'. At that
point, I can
construct previously read ByteArrays and return it as for the row.

However, since 'ByteArray->ptr' points to the column page memory which
(based
on my understanding)  will be gone when calling 'HasNext()' and move to the
next
page.  So that means i have to maintain a copy of the 'ByteArray->ptr' for
all the
previously read values.

This really seems to me to be too complicated..
Would like to ask if there is a better way of doing:
   1. Reading 1D array in row-by-row fashion.
   2. Zero-copy 'ByteArray->ptr'

Thanks a lot,
-- 
Alex Wang,
Open vSwitch developer

Reply via email to