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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Objectintabstract ObjectReturns value holder where next value will be written.voidIncrements current number of processed records.booleanChecks if current number of processed records does not exceed max batch size.voidreset()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
-