public static final class RecordAggregate.PositionTrackingVisitor extends java.lang.Object implements RecordAggregate.RecordVisitor
RecordAggregate.RecordVisitor
which accumulates the sizes of all
records visited.Constructor and Description |
---|
PositionTrackingVisitor(RecordAggregate.RecordVisitor rv,
int initialPosition) |
Modifier and Type | Method and Description |
---|---|
int |
getPosition() |
void |
setPosition(int position) |
void |
visitRecord(Record r)
Implementors may call non-mutating methods on Record r.
|
public PositionTrackingVisitor(RecordAggregate.RecordVisitor rv, int initialPosition)
public void visitRecord(Record r)
RecordAggregate.RecordVisitor
visitRecord
in interface RecordAggregate.RecordVisitor
r
- must not be null
public void setPosition(int position)
public int getPosition()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.