Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,16 @@ private RecordsToDelete(long offset) {
/**
* Delete all the records before the given {@code offset}
*
* @param offset the offset before which all records will be deleted
* @param offset The offset before which all records will be deleted.
* Use {@code -1} to truncate to the high watermark.
*/
public static RecordsToDelete beforeOffset(long offset) {
return new RecordsToDelete(offset);
}

/**
* The offset before which all records will be deleted
* The offset before which all records will be deleted.
* Use {@code -1} to truncate to the high watermark.
*/
public long beforeOffset() {
return offset;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
{ "name": "PartitionIndex", "type": "int32", "versions": "0+",
"about": "The partition index." },
{ "name": "Offset", "type": "int64", "versions": "0+",
"about": "The deletion offset." }
"about": "The deletion offset. -1 means that records should be truncated to the high watermark." }
]}
]},
{ "name": "TimeoutMs", "type": "int32", "versions": "0+",
Expand Down