Class MutableRecordAndPosition<E>
- java.lang.Object
-
- org.apache.flink.connector.file.src.util.RecordAndPosition<E>
-
- org.apache.flink.connector.file.src.util.MutableRecordAndPosition<E>
-
@PublicEvolving public class MutableRecordAndPosition<E> extends RecordAndPosition<E>
A mutable version of theRecordAndPosition.This mutable object is useful in cases where only once instance of a
RecordAndPositionis needed at a time, like for the result values of theBulkFormat.RecordIterator.
-
-
Field Summary
-
Fields inherited from class org.apache.flink.connector.file.src.util.RecordAndPosition
NO_OFFSET
-
-
Constructor Summary
Constructors Constructor Description MutableRecordAndPosition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidset(E record, long offset, long recordSkipCount)Updates the record and position in this object.voidsetNext(E record)Sets the next record of a sequence.voidsetPosition(long offset, long recordSkipCount)Sets the position without setting a record.-
Methods inherited from class org.apache.flink.connector.file.src.util.RecordAndPosition
getOffset, getRecord, getRecordSkipCount, toString
-
-
-
-
Method Detail
-
set
public void set(E record, long offset, long recordSkipCount)
Updates the record and position in this object.
-
setPosition
public void setPosition(long offset, long recordSkipCount)Sets the position without setting a record.
-
setNext
public void setNext(E record)
Sets the next record of a sequence. This increments therecordSkipCountby one.
-
-