Package org.apache.iceberg
Class BaseReplaceSortOrder
- java.lang.Object
-
- org.apache.iceberg.BaseReplaceSortOrder
-
- All Implemented Interfaces:
PendingUpdate<SortOrder>,ReplaceSortOrder,SortOrderBuilder<ReplaceSortOrder>
public class BaseReplaceSortOrder extends java.lang.Object implements ReplaceSortOrder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SortOrderapply()Apply the pending changes and return the uncommitted changes for validation.ReplaceSortOrderasc(Term term, NullOrder nullOrder)Add an expression term to the sort, ascending with the given null order.voidcommit()Apply the pending changes and commit.ReplaceSortOrderdesc(Term term, NullOrder nullOrder)Add an expression term to the sort, ascending with the given null order.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.iceberg.PendingUpdate
updateEvent
-
-
-
-
Method Detail
-
apply
public SortOrder apply()
Description copied from interface:PendingUpdateApply the pending changes and return the uncommitted changes for validation.This does not result in a permanent update.
- Specified by:
applyin interfacePendingUpdate<SortOrder>- Returns:
- the uncommitted changes that would be committed by calling
PendingUpdate.commit()
-
commit
public void commit()
Description copied from interface:PendingUpdateApply the pending changes and commit.Changes are committed by calling the underlying table's commit method.
Once the commit is successful, the updated table will be refreshed.
- Specified by:
commitin interfacePendingUpdate<SortOrder>
-
asc
public ReplaceSortOrder asc(Term term, NullOrder nullOrder)
Description copied from interface:SortOrderBuilderAdd an expression term to the sort, ascending with the given null order.- Specified by:
ascin interfaceSortOrderBuilder<ReplaceSortOrder>- Parameters:
term- an expression termnullOrder- a null order (first or last)- Returns:
- this for method chaining
-
desc
public ReplaceSortOrder desc(Term term, NullOrder nullOrder)
Description copied from interface:SortOrderBuilderAdd an expression term to the sort, ascending with the given null order.- Specified by:
descin interfaceSortOrderBuilder<ReplaceSortOrder>- Parameters:
term- an expression termnullOrder- a null order (first or last)- Returns:
- this for method chaining
-
-