Package org.apache.iceberg.rest.requests
Class UpdateTableRequest
- java.lang.Object
-
- org.apache.iceberg.rest.requests.UpdateTableRequest
-
- All Implemented Interfaces:
RESTMessage
,RESTRequest
public class UpdateTableRequest extends java.lang.Object implements RESTRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UpdateTableRequest.Builder
Deprecated.will be removed in 1.5.0, useUpdateRequirements
instead.static interface
UpdateTableRequest.UpdateRequirement
Deprecated.will be removed in 1.5.0, useUpdateRequirement
instead.
-
Constructor Summary
Constructors Constructor Description UpdateTableRequest()
UpdateTableRequest(java.util.List<UpdateRequirement> requirements, java.util.List<MetadataUpdate> updates)
-
Method Summary
-
-
-
Constructor Detail
-
UpdateTableRequest
public UpdateTableRequest()
-
UpdateTableRequest
public UpdateTableRequest(java.util.List<UpdateRequirement> requirements, java.util.List<MetadataUpdate> updates)
-
-
Method Detail
-
validate
public void validate()
Description copied from interface:RESTMessage
Ensures that a constructed instance of a REST message is valid according to the REST spec.This is needed when parsing data that comes from external sources and the object might have been constructed without all the required fields present.
- Specified by:
validate
in interfaceRESTMessage
-
requirements
public java.util.List<UpdateRequirement> requirements()
-
updates
public java.util.List<MetadataUpdate> updates()
-
identifier
public TableIdentifier identifier()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
create
public static UpdateTableRequest create(TableIdentifier identifier, java.util.List<UpdateRequirement> requirements, java.util.List<MetadataUpdate> updates)
-
builderForCreate
@Deprecated public static UpdateTableRequest.Builder builderForCreate()
Deprecated.will be removed in 1.5.0, useUpdateRequirements.forCreateTable(List)
instead.
-
builderForReplace
@Deprecated public static UpdateTableRequest.Builder builderForReplace(TableMetadata base)
Deprecated.will be removed in 1.5.0, useUpdateRequirements.forReplaceTable(TableMetadata, List)
instead.
-
builderFor
@Deprecated public static UpdateTableRequest.Builder builderFor(TableMetadata base)
Deprecated.will be removed in 1.5.0, useUpdateRequirements.forUpdateTable(TableMetadata, List)
instead.
-
-