Package com.gpudb.protocol
Class ShowTablesByTypeRequest
java.lang.Object
com.gpudb.protocol.ShowTablesByTypeRequest
All Implemented Interfaces:
org.apache.avro.generic.GenericContainer, org.apache.avro.generic.IndexedRecordpublic class ShowTablesByTypeRequest extends Object implements org.apache.avro.generic.IndexedRecord
A set of parameters for
GPUdb.showTablesByType.
Gets names of the tables whose type matches the given criteria. Each table has a particular type. This type comprises the schema and properties of the table and sometimes a type label. This function allows a look up of the existing tables based on full or partial type information. The operation is synchronous.
Constructor Summary
ConstructorsConstructorDescriptionConstructs a ShowTablesByTypeRequest object with default parameters.Constructs a ShowTablesByTypeRequest 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()Optional user supplied label which can be used instead of the type_id to retrieve all tables with the given label.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 by a call toGPUdb.createType.inthashCode()voidThis method supports the Avro framework and is not intended to be called directly by the user.Optional user supplied label which can be used instead of the type_id to retrieve all tables with the given label.setOptions(Map<String, String> options) Optional parameters.Type id returned by a call toGPUdb.createType.toString()
Constructor Details
ShowTablesByTypeRequest
public ShowTablesByTypeRequest()Constructs a ShowTablesByTypeRequest object with default parameters.ShowTablesByTypeRequest
Constructs a ShowTablesByTypeRequest object with the specified parameters.Parameters:typeId- Type id returned by a call toGPUdb.createType.label- Optional user supplied label which can be used instead of the type_id to retrieve all tables with the given label.options- Optional parameters. The default value is an emptyMap.
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.setTypeId
Type id returned by a call toGPUdb.createType.Parameters:typeId- The new value fortypeId.Returns:thisto mimic the builder pattern.setLabel
Optional user supplied label which can be used instead of the type_id to retrieve all tables with the given label.Parameters:label- The new value forlabel.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: