Package org.apache.iceberg
Class BaseReplaceSortOrder
java.lang.Object
org.apache.iceberg.BaseReplaceSortOrder
- All Implemented Interfaces:
PendingUpdate<SortOrder>,ReplaceSortOrder,SortOrderBuilder<ReplaceSortOrder>
-
Method Summary
Modifier and TypeMethodDescriptionapply()Apply the pending changes and return the uncommitted changes for validation.Add an expression term to the sort, ascending with the given null order.caseSensitive(boolean caseSensitive) Set case sensitivity of sort column name resolution.voidcommit()Apply the pending changes and commit.Add an expression term to the sort, descending with the given null order.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.iceberg.PendingUpdate
updateEvent
-
Method Details
-
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
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
Description copied from interface:SortOrderBuilderAdd an expression term to the sort, descending 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
-
caseSensitive
Description copied from interface:SortOrderBuilderSet case sensitivity of sort column name resolution.- Specified by:
caseSensitivein interfaceSortOrderBuilder<ReplaceSortOrder>- Parameters:
caseSensitive- when true, column name resolution is case-sensitive- Returns:
- this for method chaining
-