Package com.gpudb.protocol
Class RawGpudbResponse
java.lang.Object
com.gpudb.protocol.RawGpudbResponse
All Implemented Interfaces:
org.apache.avro.generic.GenericContainer, org.apache.avro.generic.IndexedRecordA set of parameters for the raw wrapper for GPUdb responses.
Constructor Summary
ConstructorsConstructorDescriptionConstructs a RawGpudbResponse object with default 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.getData()The Avro binary-encoded response payload; populated when binary encoding was requested.The JSON-encoded response payload; populated when JSON encoding was requested.The fully-qualified name of the response’s data type, or “none” if there is no data payload.Empty on success; otherwise the error message describing the failure.org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.Indicates the success (“OK”) or failure (“ERROR”) of the request.inthashCode()voidThis method supports the Avro framework and is not intended to be called directly by the user.setData(ByteBuffer data) The Avro binary-encoded response payload; populated when binary encoding was requested.setDataStr(String dataStr) The JSON-encoded response payload; populated when JSON encoding was requested.setDataType(String dataType) The fully-qualified name of the response’s data type, or “none” if there is no data payload.setMessage(String message) Empty on success; otherwise the error message describing the failure.Indicates the success (“OK”) or failure (“ERROR”) of the request.toString()
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.setStatus
Indicates the success (“OK”) or failure (“ERROR”) of the request.Parameters:status- The new value forstatus.Returns:thisto mimic the builder pattern.setMessage
Empty on success; otherwise the error message describing the failure.Parameters:message- The new value formessage.Returns:thisto mimic the builder pattern.setDataType
The fully-qualified name of the response’s data type, or “none” if there is no data payload.Parameters:dataType- The new value fordataType.Returns:thisto mimic the builder pattern.getData
The Avro binary-encoded response payload; populated when binary encoding was requested.Returns:The current value ofdata.setData
The Avro binary-encoded response payload; populated when binary encoding was requested.Parameters:data- The new value fordata.Returns:thisto mimic the builder pattern.setDataStr
The JSON-encoded response payload; populated when JSON encoding was requested.Parameters:dataStr- The new value fordataStr.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: