The context for a QueryBatch passed to
QueryBatchListener or an exception passed to QueryFailureListener,
indicating the state at the time this event occurred.
The DatabaseClient used to retrieve this batch
(if it's a job based on a QueryDefinition). This is useful for
performing additional operations on the same host. If this job is
based on an Iterator this is just the DatabaseClient for the next
host in the round-robin rotation.
Returns:
the DatabaseClient for this batch
getJobBatchNumber
longgetJobBatchNumber()
Within the context of the job, the numeric
position of this batch.
Returns:
the batch number in this job
getJobResultsSoFar
longgetJobResultsSoFar()
Within the context of the job, the number of
uris processed including the uris in this event if this is a
QueryBatch.
Returns:
the number of results in this job up to the point of this
event
getForestBatchNumber
longgetForestBatchNumber()
Within the context of this forest within the
job, the numeric position of this batch.
Returns:
the batch number in this forest
getForestResultsSoFar
longgetForestResultsSoFar()
Within the context of this forest within the
job, the number of uris processed including the uris in this event
if this is a QueryBatch.
Returns:
the number of results in this job in this forest up to the
point of this event