add two member functions to recordBatch: getNumFields() and isLastChunk()