How to use Vector without knowing the length #9043
-
I am using Velox internally to implement TEXTFILE reader. I have implemented a
I encountered a problem when implementing the
In the above implementation, I use Later, I called My question is, I called |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@wypb : Is If yes, then your code above is fine. Though I would make it a bit more readable by naming |
Beta Was this translation helpful? Give feedback.
-
@wypb It will be great if you can contribute your TextFile reader to Velox :). |
Beta Was this translation helpful? Give feedback.
@wypb : Is
size
parameter to TextFileRowReader::next the max number of rows we could output ?If yes, then your code above is fine. Though I would make it a bit more readable by naming
rowsToRead
tonumRowsLeft
.