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.void
commit()
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, wait
Methods inherited from interface org.apache.iceberg.PendingUpdate
updateEvent
-
Method Details
-
apply
Description copied from interface:PendingUpdate
Apply the pending changes and return the uncommitted changes for validation.This does not result in a permanent update.
- Specified by:
apply
in interfacePendingUpdate<SortOrder>
- Returns:
- the uncommitted changes that would be committed by calling
PendingUpdate.commit()
-
commit
public void commit()Description copied from interface:PendingUpdate
Apply 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:
commit
in interfacePendingUpdate<SortOrder>
-
asc
Description copied from interface:SortOrderBuilder
Add an expression term to the sort, ascending with the given null order.- Specified by:
asc
in interfaceSortOrderBuilder<ReplaceSortOrder>
- Parameters:
term
- an expression termnullOrder
- a null order (first or last)- Returns:
- this for method chaining
-
desc
Description copied from interface:SortOrderBuilder
Add an expression term to the sort, descending with the given null order.- Specified by:
desc
in interfaceSortOrderBuilder<ReplaceSortOrder>
- Parameters:
term
- an expression termnullOrder
- a null order (first or last)- Returns:
- this for method chaining
-
caseSensitive
Description copied from interface:SortOrderBuilder
Set case sensitivity of sort column name resolution.- Specified by:
caseSensitive
in interfaceSortOrderBuilder<ReplaceSortOrder>
- Parameters:
caseSensitive
- when true, column name resolution is case-sensitive- Returns:
- this for method chaining
-