Package com.gpudb.protocol
Class ShowTypesRequest
java.lang.Object
com.gpudb.protocol.ShowTypesRequest
All Implemented Interfaces:
org.apache.avro.generic.GenericContainer, org.apache.avro.generic.IndexedRecordA set of parameters for
GPUdb.showTypes.
Retrieves information for the specified data type ID or type label. For all data types that match the input criteria, the database returns the type ID, the type schema, the label (if available), and the type’s column properties.
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA set of string constants for theShowTypesRequestparameteroptions.Constructor Summary
ConstructorsConstructorDescriptionConstructs a ShowTypesRequest object with default parameters.Constructs a ShowTypesRequest 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.getLabel()Option string that was supplied by user in a call toGPUdb.createType.Optional parameters.org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.Type Id returned in response to a call toGPUdb.createType.inthashCode()voidThis method supports the Avro framework and is not intended to be called directly by the user.Option string that was supplied by user in a call toGPUdb.createType.setOptions(Map<String, String> options) Optional parameters.Type Id returned in response to a call toGPUdb.createType.toString()
Constructor Details
ShowTypesRequest
public ShowTypesRequest()Constructs a ShowTypesRequest object with default parameters.ShowTypesRequest
Constructs a ShowTypesRequest object with the specified parameters.Parameters:typeId- Type Id returned in response to a call toGPUdb.createType.label- Option string that was supplied by user in a call toGPUdb.createType.options- Optional parameters.NO_JOIN_TYPES: When set to ‘true’, no join types will be included. 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.getTypeId
Type Id returned in response to a call toGPUdb.createType.Returns:The current value oftypeId.setTypeId
Type Id returned in response to a call toGPUdb.createType.Parameters:typeId- The new value fortypeId.Returns:thisto mimic the builder pattern.getLabel
Option string that was supplied by user in a call toGPUdb.createType.Returns:The current value oflabel.setLabel
Option string that was supplied by user in a call toGPUdb.createType.Parameters:label- The new value forlabel.Returns:thisto mimic the builder pattern.setOptions
Optional parameters.NO_JOIN_TYPES: When set to ‘true’, no join types will be included. 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: