Package org.apache.polaris.spark
Class PolarisRESTCatalog
java.lang.Object
org.apache.polaris.spark.PolarisRESTCatalog
- All Implemented Interfaces:
Closeable,AutoCloseable,PolarisCatalog
[[PolarisRESTCatalog]] talks to Polaris REST APIs, and implements the PolarisCatalog interfaces,
which are generic table related APIs at this moment. This class doesn't interact with any Spark
objects.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPolarisRESTCatalog(Function<Map<String, String>, org.apache.iceberg.rest.RESTClient> clientBuilder) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()createGenericTable(org.apache.iceberg.catalog.TableIdentifier identifier, String format, String doc, Map<String, String> props) booleandropGenericTable(org.apache.iceberg.catalog.TableIdentifier identifier) protected static org.apache.iceberg.rest.responses.ConfigResponsefetchConfig(org.apache.iceberg.rest.RESTClient client, Map<String, String> headers, Map<String, String> properties) voidinitialize(Map<String, String> unresolved, org.apache.iceberg.rest.auth.OAuth2Util.AuthSession catalogAuth) List<org.apache.iceberg.catalog.TableIdentifier> listGenericTables(org.apache.iceberg.catalog.Namespace ns) loadGenericTable(org.apache.iceberg.catalog.TableIdentifier identifier)
-
Field Details
-
REST_PAGE_SIZE
- See Also:
-
-
Constructor Details
-
PolarisRESTCatalog
public PolarisRESTCatalog() -
PolarisRESTCatalog
-
-
Method Details
-
initialize
-
fetchConfig
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
listGenericTables
public List<org.apache.iceberg.catalog.TableIdentifier> listGenericTables(org.apache.iceberg.catalog.Namespace ns) - Specified by:
listGenericTablesin interfacePolarisCatalog
-
dropGenericTable
public boolean dropGenericTable(org.apache.iceberg.catalog.TableIdentifier identifier) - Specified by:
dropGenericTablein interfacePolarisCatalog
-
createGenericTable
public GenericTable createGenericTable(org.apache.iceberg.catalog.TableIdentifier identifier, String format, String doc, Map<String, String> props) - Specified by:
createGenericTablein interfacePolarisCatalog
-
loadGenericTable
- Specified by:
loadGenericTablein interfacePolarisCatalog
-