Package org.apache.iceberg.deletes
Interface PositionDeleteIndex
-
public interface PositionDeleteIndex
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voiddelete(long position)Set a deleted row position.voiddelete(long posStart, long posEnd)Set a range of deleted row positions.static PositionDeleteIndexempty()Returns an empty immutable position delete index.booleanisDeleted(long position)Checks whether a row at the position is deleted.booleanisEmpty()Returns true if this collection contains no element.default booleanisNotEmpty()Returns true if this collection contains elements.
-
-
-
Method Detail
-
delete
void delete(long position)
Set a deleted row position.- Parameters:
position- the deleted row position
-
delete
void delete(long posStart, long posEnd)Set a range of deleted row positions.- Parameters:
posStart- inclusive beginning of position rangeposEnd- exclusive ending of position range
-
isDeleted
boolean isDeleted(long position)
Checks whether a row at the position is deleted.- Parameters:
position- deleted row position- Returns:
- whether the position is deleted
-
isEmpty
boolean isEmpty()
Returns true if this collection contains no element.
-
isNotEmpty
default boolean isNotEmpty()
Returns true if this collection contains elements.
-
empty
static PositionDeleteIndex empty()
Returns an empty immutable position delete index.
-
-