Class AbstractRecordsInspector
java.lang.Object
org.apache.drill.exec.store.hive.readers.inspectors.AbstractRecordsInspector
- Direct Known Subclasses:
SkipFooterRecordsInspector
Parent class for records inspectors which responsible for counting of processed records
and managing free and used value holders.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Object
int
abstract Object
Returns value holder where next value will be written.void
Increments current number of processed records.boolean
Checks if current number of processed records does not exceed max batch size.void
reset()
When batch of data was sent, number of processed records should be reset.
-
Constructor Details
-
AbstractRecordsInspector
public AbstractRecordsInspector()
-
-
Method Details
-
isBatchFull
public boolean isBatchFull()Checks if current number of processed records does not exceed max batch size.- Returns:
- true if reached max number of records in batch
-
getProcessedRecordCount
public int getProcessedRecordCount()- Returns:
- number of processed records
-
incrementProcessedRecordCount
public void incrementProcessedRecordCount()Increments current number of processed records. -
reset
public void reset()When batch of data was sent, number of processed records should be reset. -
getValueHolder
Returns value holder where next value will be written.- Returns:
- value holder
-
getNextValue
- Returns:
- value holder with written value
-