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.IndexedRecord
public class CreateCatalogRequest extends Object implements org.apache.avro.generic.IndexedRecord
A set of parameters forGPUdb.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 Classes Modifier and Type Class Description static classCreateCatalogRequest.OptionsA set of string constants for theCreateCatalogRequestparameteroptions.
-
Constructor Summary
Constructors Constructor Description CreateCatalogRequest()Constructs 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Objectget(int index)This method supports the Avro framework and is not intended to be called directly by the user.static org.apache.avro.SchemagetClassSchema()This method supports the Avro framework and is not intended to be called directly by the user.StringgetCredential()Name of the credential object to be used in catalogStringgetDatasource()Password for the remote system user; may be an empty stringStringgetLocation()Location of the catalog in 'http[s]://[server[:port]]]' format.StringgetName()Name of the catalog to be created.Map<String,String>getOptions()Optional parameters.org.apache.avro.SchemagetSchema()This method supports the Avro framework and is not intended to be called directly by the user.StringgetTableFormat()Table format (iceberg, hudi, deltalake)StringgetType()Type of the catalog (REST (unity, polaris, tabular), nessie, hive, glue)inthashCode()voidput(int index, Object value)This method supports the Avro framework and is not intended to be called directly by the user.CreateCatalogRequestsetCredential(String credential)Name of the credential object to be used in catalogCreateCatalogRequestsetDatasource(String datasource)Password for the remote system user; may be an empty stringCreateCatalogRequestsetLocation(String location)Location of the catalog in 'http[s]://[server[:port]]]' format.CreateCatalogRequestsetName(String name)Name of the catalog to be created.CreateCatalogRequestsetOptions(Map<String,String> options)Optional parameters.CreateCatalogRequestsetTableFormat(String tableFormat)Table format (iceberg, hudi, deltalake)CreateCatalogRequestsetType(String type)Type of the catalog (REST (unity, polaris, tabular), nessie, hive, glue)StringtoString()
-
-
-
Constructor Detail
-
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 catalogdatasource- Password for the remote system user; may be an empty stringoptions- 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 Detail
-
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.
-
getName
public String getName()
Name of the catalog to be created.- Returns:
- The current value of
name.
-
setName
public CreateCatalogRequest setName(String name)
Name of the catalog to be created.- Parameters:
name- The new value forname.- Returns:
thisto mimic the builder pattern.
-
getTableFormat
public String getTableFormat()
Table format (iceberg, hudi, deltalake)- Returns:
- The current value of
tableFormat.
-
setTableFormat
public CreateCatalogRequest setTableFormat(String tableFormat)
Table format (iceberg, hudi, deltalake)- Parameters:
tableFormat- The new value fortableFormat.- Returns:
thisto mimic the builder pattern.
-
getLocation
public String getLocation()
Location of the catalog in 'http[s]://[server[:port]]]' format.- Returns:
- The current value of
location.
-
setLocation
public CreateCatalogRequest setLocation(String location)
Location of the catalog in 'http[s]://[server[:port]]]' format.- Parameters:
location- The new value forlocation.- Returns:
thisto mimic the builder pattern.
-
getType
public String getType()
Type of the catalog (REST (unity, polaris, tabular), nessie, hive, glue)- Returns:
- The current value of
type.
-
setType
public CreateCatalogRequest setType(String type)
Type of the catalog (REST (unity, polaris, tabular), nessie, hive, glue)- Parameters:
type- The new value fortype.- Returns:
thisto mimic the builder pattern.
-
getCredential
public String getCredential()
Name of the credential object to be used in catalog- Returns:
- The current value of
credential.
-
setCredential
public CreateCatalogRequest setCredential(String credential)
Name of the credential object to be used in catalog- Parameters:
credential- The new value forcredential.- Returns:
thisto mimic the builder pattern.
-
getDatasource
public String getDatasource()
Password for the remote system user; may be an empty string- Returns:
- The current value of
datasource.
-
setDatasource
public CreateCatalogRequest setDatasource(String datasource)
Password for the remote system user; may be an empty string- Parameters:
datasource- The new value fordatasource.- Returns:
thisto mimic the builder pattern.
-
getOptions
public Map<String,String> 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 of
options.
-
setOptions
public CreateCatalogRequest setOptions(Map<String,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.- 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.GenericContainer- Returns:
- The schema object describing this class.
-
get
public Object get(int index)
This method supports the Avro framework and is not intended to be called directly by the user.- Specified by:
getin interfaceorg.apache.avro.generic.IndexedRecord- Parameters:
index- the position of the field to get- Returns:
- value of the field with the given index.
- Throws:
IndexOutOfBoundsException
-
put
public void put(int index, Object value)This method supports the Avro framework and is not intended to be called directly by the user.- Specified by:
putin interfaceorg.apache.avro.generic.IndexedRecord- Parameters:
index- the position of the field to setvalue- the value to set- Throws:
IndexOutOfBoundsException
-
-