Package org.apache.iceberg.rest
Class Endpoint
java.lang.Object
org.apache.iceberg.rest.Endpoint
Holds an endpoint definition that consists of the HTTP method (GET, POST, DELETE, ...) and the
resource path as defined in the Iceberg OpenAPI REST specification without parameter
substitution, such as /v1/{prefix}/namespaces/{namespace}.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Endpointstatic final Endpointstatic final Endpointstatic final Endpointstatic final Endpointstatic final Endpointstatic final Endpointstatic final Endpointstatic final Endpointstatic final Endpointstatic final Endpointstatic final Endpointstatic final Endpointstatic final Endpointstatic final Endpointstatic final Endpointstatic final Endpointstatic final Endpointstatic final Endpointstatic final Endpointstatic final Endpointstatic final Endpointstatic final Endpointstatic final Endpointstatic final Endpointstatic final Endpointstatic final Endpointstatic final Endpoint -
Method Summary
Modifier and TypeMethodDescriptionstatic voidChecks if the set of endpoints support the givenEndpoint.static voidcheck(Set<Endpoint> supportedEndpoints, Endpoint endpoint, org.apache.iceberg.relocated.com.google.common.base.Supplier<RuntimeException> supplier) Checks if the set of endpoints support the givenEndpoint.static Endpointbooleanstatic EndpointfromString(String endpoint) inthashCode()path()toString()
-
Field Details
-
V1_LIST_NAMESPACES
-
V1_LOAD_NAMESPACE
-
V1_NAMESPACE_EXISTS
-
V1_CREATE_NAMESPACE
-
V1_UPDATE_NAMESPACE
-
V1_DELETE_NAMESPACE
-
V1_COMMIT_TRANSACTION
-
V1_LIST_TABLES
-
V1_LOAD_TABLE
-
V1_TABLE_EXISTS
-
V1_CREATE_TABLE
-
V1_UPDATE_TABLE
-
V1_DELETE_TABLE
-
V1_RENAME_TABLE
-
V1_REGISTER_TABLE
-
V1_REPORT_METRICS
-
V1_TABLE_CREDENTIALS
-
V1_SUBMIT_TABLE_SCAN_PLAN
-
V1_FETCH_TABLE_SCAN_PLAN
-
V1_CANCEL_TABLE_SCAN_PLAN
-
V1_FETCH_TABLE_SCAN_PLAN_TASKS
-
V1_LIST_VIEWS
-
V1_LOAD_VIEW
-
V1_VIEW_EXISTS
-
V1_CREATE_VIEW
-
V1_UPDATE_VIEW
-
V1_DELETE_VIEW
-
V1_RENAME_VIEW
-
-
Method Details
-
httpMethod
-
path
-
create
-
toString
-
fromString
-
check
Checks if the set of endpoints support the givenEndpoint.- Parameters:
supportedEndpoints- The set of supported endpoints to checkendpoint- The endpoint to check against the set of supported endpoints- Throws:
UnsupportedOperationException- if the givenEndpointis not included in the set of endpoints.
-
check
public static void check(Set<Endpoint> supportedEndpoints, Endpoint endpoint, org.apache.iceberg.relocated.com.google.common.base.Supplier<RuntimeException> supplier) Checks if the set of endpoints support the givenEndpoint.- Parameters:
supportedEndpoints- The set of supported endpoints to checkendpoint- The endpoint to check against the set of supported endpointssupplier- The supplier throwing aRuntimeExceptionif the givenEndpointis not included in the set of endpoints.
-
equals
-
hashCode
public int hashCode()
-