Github user omalley commented on a diff in the pull request:
https://github.com/apache/orc/pull/104#discussion_r111253053
--- Diff: site/_docs/core-java.md ---
@@ -233,14 +233,15 @@ VectorizedRowBatch batch = schema.createRowBatch();
LongColumnVector x = (LongColumnVector) batch.cols[0];
LongColumnVector y = (LongColumnVector) batch.cols[1];
for(int r=0; r < 10000; ++r) {
- int row = batch.size++;
+ int row = batch.size;
x.vector[row] = r;
--- End diff --
batch.size must be incremented before the call to writer.addRowBatch on
line 241. This change would break the example.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---