Package com.gpudb.protocol
Class RawExecuteSqlResponse
java.lang.Object
com.gpudb.protocol.RawExecuteSqlResponse
All Implemented Interfaces:
org.apache.avro.generic.GenericContainer, org.apache.avro.generic.IndexedRecordA set of results returned by
GPUdb.executeSqlRaw.Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA set of string constants for theRawExecuteSqlResponseparameterhasMoreRecords.static final classA set of string constants for theRawExecuteSqlResponseparameterinfo.Method Summary
Modifier and TypeMethodDescriptionbooleanget(int index) This method supports the Avro framework and is not intended to be called directly by the user.Avro binary encoded response.static org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.longThe number of objects/records affected.booleanToo many records.getInfo()Additional information.Avro JSON encoded response.Name of the table that has the result records of the query.Avro schema ofbinaryEncodedResponseorjsonEncodedResponse.org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.longTotal/Filtered number of records.inthashCode()voidThis method supports the Avro framework and is not intended to be called directly by the user.setBinaryEncodedResponse(ByteBuffer binaryEncodedResponse) Avro binary encoded response.setCountAffected(long countAffected) The number of objects/records affected.setHasMoreRecords(boolean hasMoreRecords) Too many records.Additional information.setJsonEncodedResponse(String jsonEncodedResponse) Avro JSON encoded response.setPagingTable(String pagingTable) Name of the table that has the result records of the query.setResponseSchemaStr(String responseSchemaStr) Avro schema ofbinaryEncodedResponseorjsonEncodedResponse.setTotalNumberOfRecords(long totalNumberOfRecords) Total/Filtered number of records.toString()
Method Details
getResponseSchemaStr
Avro schema ofbinaryEncodedResponseorjsonEncodedResponse.Returns:The current value ofresponseSchemaStr.setResponseSchemaStr
Avro schema ofbinaryEncodedResponseorjsonEncodedResponse.Parameters:responseSchemaStr- The new value forresponseSchemaStr.Returns:thisto mimic the builder pattern.getPagingTable
Name of the table that has the result records of the query. Valid, whenhasMoreRecordsisTRUE. The caller should clear this and all tables inRESULT_TABLE_LISTwhen they are done querying.Returns:The current value ofpagingTable.setPagingTable
Name of the table that has the result records of the query. Valid, whenhasMoreRecordsisTRUE. The caller should clear this and all tables inRESULT_TABLE_LISTwhen they are done querying.Parameters:pagingTable- The new value forpagingTable.Returns:thisto mimic the builder pattern.getInfo
Additional information.COUNT: Number of records without final limits applied.RESULT_TABLE_LIST: List of tables, comma-separated, in addition to thepagingTable, created as result of the query. These should be cleared by the caller when they are done querying.
Map.Returns:The current value ofinfo.setInfo
Additional information.COUNT: Number of records without final limits applied.RESULT_TABLE_LIST: List of tables, comma-separated, in addition to thepagingTable, created as result of the query. These should be cleared by the caller when they are done querying.
Map.Parameters:info- The new value forinfo.Returns:thisto mimic the builder pattern.