add getQueryState() to recordBatch, so we can query the state of the current record batch for error handling
Merge pull request #3 from xiaom/add-queryState

add getQueryState() to recordBatch, so we can query the state of the cur...