Class Endpoint

java.lang.Object
org.apache.iceberg.rest.Endpoint

public class Endpoint extends Object
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 Details Link icon

    • V1_LIST_NAMESPACES Link icon

      public static final Endpoint V1_LIST_NAMESPACES
    • V1_LOAD_NAMESPACE Link icon

      public static final Endpoint V1_LOAD_NAMESPACE
    • V1_CREATE_NAMESPACE Link icon

      public static final Endpoint V1_CREATE_NAMESPACE
    • V1_UPDATE_NAMESPACE Link icon

      public static final Endpoint V1_UPDATE_NAMESPACE
    • V1_DELETE_NAMESPACE Link icon

      public static final Endpoint V1_DELETE_NAMESPACE
    • V1_COMMIT_TRANSACTION Link icon

      public static final Endpoint V1_COMMIT_TRANSACTION
    • V1_LIST_TABLES Link icon

      public static final Endpoint V1_LIST_TABLES
    • V1_LOAD_TABLE Link icon

      public static final Endpoint V1_LOAD_TABLE
    • V1_CREATE_TABLE Link icon

      public static final Endpoint V1_CREATE_TABLE
    • V1_UPDATE_TABLE Link icon

      public static final Endpoint V1_UPDATE_TABLE
    • V1_DELETE_TABLE Link icon

      public static final Endpoint V1_DELETE_TABLE
    • V1_RENAME_TABLE Link icon

      public static final Endpoint V1_RENAME_TABLE
    • V1_REGISTER_TABLE Link icon

      public static final Endpoint V1_REGISTER_TABLE
    • V1_REPORT_METRICS Link icon

      public static final Endpoint V1_REPORT_METRICS
    • V1_LIST_VIEWS Link icon

      public static final Endpoint V1_LIST_VIEWS
    • V1_LOAD_VIEW Link icon

      public static final Endpoint V1_LOAD_VIEW
    • V1_CREATE_VIEW Link icon

      public static final Endpoint V1_CREATE_VIEW
    • V1_UPDATE_VIEW Link icon

      public static final Endpoint V1_UPDATE_VIEW
    • V1_DELETE_VIEW Link icon

      public static final Endpoint V1_DELETE_VIEW
    • V1_RENAME_VIEW Link icon

      public static final Endpoint V1_RENAME_VIEW
  • Method Details Link icon

    • httpMethod Link icon

      public String httpMethod()
    • path Link icon

      public String path()
    • create Link icon

      public static Endpoint create(String httpMethod, String path)
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object
    • fromString Link icon

      public static Endpoint fromString(String endpoint)
    • check Link icon

      public static void check(Set<Endpoint> supportedEndpoints, Endpoint endpoint)
      Checks if the set of endpoints support the given Endpoint.
      Parameters:
      supportedEndpoints - The set of supported endpoints to check
      endpoint - The endpoint to check against the set of supported endpoints
      Throws:
      UnsupportedOperationException - if the given Endpoint is not included in the set of endpoints.
    • check Link icon

      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 given Endpoint.
      Parameters:
      supportedEndpoints - The set of supported endpoints to check
      endpoint - The endpoint to check against the set of supported endpoints
      supplier - The supplier throwing a RuntimeException if the given Endpoint is not included in the set of endpoints.
    • equals Link icon

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode Link icon

      public int hashCode()
      Overrides:
      hashCode in class Object