public static class ParquetIO.ReadFiles.BlockTracker extends OffsetRangeTracker
RestrictionTracker.HasProgress, RestrictionTracker.IsBounded, RestrictionTracker.Progress, RestrictionTracker.TruncateResult<RestrictionT>lastAttemptedOffset, lastClaimedOffset, range| Constructor and Description |
|---|
BlockTracker(OffsetRange range,
long totalByteSize,
long recordCount) |
| Modifier and Type | Method and Description |
|---|---|
RestrictionTracker.Progress |
getProgress()
A representation for the amount of known completed and known remaining work.
|
void |
makeProgress() |
checkDone, currentRestriction, isBounded, toString, tryClaim, trySplitpublic BlockTracker(OffsetRange range, long totalByteSize, long recordCount)
public void makeProgress()
throws java.io.IOException
java.io.IOExceptionpublic RestrictionTracker.Progress getProgress()
RestrictionTracker.HasProgressIt is up to each restriction tracker to convert between their natural representation of
completed and remaining work and the double representation. For example:
message bytes that have processed and the number of
messages or number of message bytes that are outstanding.
The work completed and work remaining must be of the same scale whether that be number of messages or number of bytes and should never represent two distinct unit types.
getProgress in interface RestrictionTracker.HasProgressgetProgress in class OffsetRangeTracker