Package com.infinyon.fluvio
Class Offset
java.lang.Object
com.infinyon.fluvio.Offset
Describes the position of a record in a Fluvio partition.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Offsetabsolute(long offset) Create an Offset at a specific absolute position in the partition.static OffsetCreate an Offset pointing to the very first record in the partition.voiddelete()static Offsetend()Create an Offset pointing to the very last record in the partition.protected voidfinalize()static Offsetfrom_beginning(long offset) Create an Offset pointing to the record X positions from the beginning of the partition.static Offsetfrom_end(long offset) Create an Offset pointing to the record X positions from the end of the partition.
-
Method Details
-
absolute
Create an Offset at a specific absolute position in the partition.- Throws:
Exception
-
beginning
Create an Offset pointing to the very first record in the partition. -
from_beginning
Create an Offset pointing to the record X positions from the beginning of the partition. -
end
Create an Offset pointing to the very last record in the partition. -
from_end
Create an Offset pointing to the record X positions from the end of the partition. -
delete
public void delete() -
finalize
-