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 |
|---|
RecordAggregate.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 RecordAggregate.PositionTrackingVisitor(RecordAggregate.RecordVisitor rv, int initialPosition)
public void visitRecord(Record r)
RecordAggregate.RecordVisitorvisitRecord in interface RecordAggregate.RecordVisitorr - must not be nullpublic void setPosition(int position)
public int getPosition()
Copyright 2014 The Apache Software Foundation or its licensors, as applicable.