Package com.gpudb.protocol
Class CreateCatalogRequest
java.lang.Object
com.gpudb.protocol.CreateCatalogRequest
All Implemented Interfaces:
org.apache.avro.generic.GenericContainer, org.apache.avro.generic.IndexedRecordA set of parameters for
GPUdb.createCatalog.
Creates a catalog, which contains the location and connection information for a deltalake catalog that is external to the database.
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA set of string constants for theCreateCatalogRequestparameteroptions.Constructor Summary
ConstructorsConstructorDescriptionConstructs a CreateCatalogRequest object with default parameters.CreateCatalogRequest(String name, String tableFormat, String location, String type, String credential, String datasource, Map<String, String> options) Constructs a CreateCatalogRequest object with the specified parameters.Method Summary
Modifier and TypeMethodDescriptionbooleanget(int index) This method supports the Avro framework and is not intended to be called directly by the user.static org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.Name of the credential object to be used in catalog.Password for the remote system user; may be an empty string.Location of the catalog in ‘http[s]://[server[:port]]]’ format.getName()Name of the catalog to be created.Optional parameters.org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.Table format (iceberg, hudi, deltalake).getType()Type of the catalog (REST (unity, polaris, tabular), nessie, hive, glue).inthashCode()voidThis method supports the Avro framework and is not intended to be called directly by the user.setCredential(String credential) Name of the credential object to be used in catalog.setDatasource(String datasource) Password for the remote system user; may be an empty string.setLocation(String location) Location of the catalog in ‘http[s]://[server[:port]]]’ format.Name of the catalog to be created.setOptions(Map<String, String> options) Optional parameters.setTableFormat(String tableFormat) Table format (iceberg, hudi, deltalake).Type of the catalog (REST (unity, polaris, tabular), nessie, hive, glue).toString()
Constructor Details
CreateCatalogRequest
public CreateCatalogRequest()Constructs a CreateCatalogRequest object with default parameters.CreateCatalogRequest
public CreateCatalogRequest(String name, String tableFormat, String location, String type, String credential, String datasource, Map<String, String> options) Constructs a CreateCatalogRequest object with the specified parameters.Parameters:name- Name of the catalog to be created.tableFormat- Table format (iceberg, hudi, deltalake).location- Location of the catalog in ‘http[s]://[server[:port]]]’ format.type- Type of the catalog (REST (unity, polaris, tabular), nessie, hive, glue).credential- Name of the credential object to be used in catalog.datasource- Password for the remote system user; may be an empty string.options- Optional parameters.ACCESS_DELEGATION: Use access delegation for object store. Supported values:The default value isDATASOURCE_CREDENTIALS.SKIP_VALIDATION: Bypass validation of connection to remote source. Supported values:The default value isFALSE.
Map.
Method Details
getClassSchema
public static org.apache.avro.Schema getClassSchema()This method supports the Avro framework and is not intended to be called directly by the user.Returns:The schema for the class.setName
Name of the catalog to be created.Parameters:name- The new value forname.Returns:thisto mimic the builder pattern.setTableFormat
Table format (iceberg, hudi, deltalake).Parameters:tableFormat- The new value fortableFormat.Returns:thisto mimic the builder pattern.setLocation
Location of the catalog in ‘http[s]://[server[:port]]]’ format.Parameters:location- The new value forlocation.Returns:thisto mimic the builder pattern.setType
Type of the catalog (REST (unity, polaris, tabular), nessie, hive, glue).Parameters:type- The new value fortype.Returns:thisto mimic the builder pattern.getCredential
Name of the credential object to be used in catalog.Returns:The current value ofcredential.setCredential
Name of the credential object to be used in catalog.Parameters:credential- The new value forcredential.Returns:thisto mimic the builder pattern.setDatasource
Password for the remote system user; may be an empty string.Parameters:datasource- The new value fordatasource.Returns:thisto mimic the builder pattern.getOptions
Optional parameters.ACCESS_DELEGATION: Use access delegation for object store. Supported values:The default value isDATASOURCE_CREDENTIALS.SKIP_VALIDATION: Bypass validation of connection to remote source. Supported values:The default value isFALSE.
Map.Returns:The current value ofoptions.setOptions
Optional parameters.ACCESS_DELEGATION: Use access delegation for object store. Supported values:The default value isDATASOURCE_CREDENTIALS.SKIP_VALIDATION: Bypass validation of connection to remote source. Supported values:The default value isFALSE.
Map.Parameters:options- The new value foroptions.Returns:thisto mimic the builder pattern.getSchema
public org.apache.avro.Schema getSchema()This method supports the Avro framework and is not intended to be called directly by the user.Specified by:getSchemain interfaceorg.apache.avro.generic.GenericContainerReturns:The schema object describing this class.get
This method supports the Avro framework and is not intended to be called directly by the user.Specified by:getin interfaceorg.apache.avro.generic.IndexedRecordParameters:index- the position of the field to getReturns:value of the field with the given index.Throws:put
This method supports the Avro framework and is not intended to be called directly by the user.Specified by:putin interfaceorg.apache.avro.generic.IndexedRecordParameters:index- the position of the field to setvalue- the value to setThrows: