public bool next(NullWritable nullWritable,
                  VectorizedRowBatch vectorizedRowBatch
                  )
 {
     vectorizedRowBatch.reset();
     buffer.reset();
     if (!innerReader.next(key, value))
     {
         return(false);
     }
     try
     {
         rowBatchCtx.addPartitionColsToBatch(vectorizedRowBatch);
     }
     catch (HiveException e)
     {
         throw new IOException("Problem adding partition column", e);
     }
     try
     {
         VectorizedBatchUtil.acidAddRowToBatch(value,
                                               (StructObjectInspector)objectInspector,
                                               vectorizedRowBatch.size++, vectorizedRowBatch, rowBatchCtx, buffer);
         while (vectorizedRowBatch.size < vectorizedRowBatch.selected.length &&
                innerReader.next(key, value))
         {
             VectorizedBatchUtil.acidAddRowToBatch(value,
                                                   (StructObjectInspector)objectInspector,
                                                   vectorizedRowBatch.size++, vectorizedRowBatch, rowBatchCtx, buffer);
         }
     }
     catch (HiveException he)
     {
         throw new IOException("error iterating", he);
     }
     return(true);
 }