Package com.gpudb.protocol
Class ExecuteSqlResponse
java.lang.Object
com.gpudb.protocol.ExecuteSqlResponse
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA set of string constants for theExecuteSqlResponseparameterhasMoreRecords.static final classA set of string constants for theExecuteSqlResponseparameterinfo.Constructor Summary
ConstructorsConstructorDescriptionConstructs an ExecuteSqlResponse object with default parameters.Method Summary
Modifier and TypeMethodDescriptionbooleanlongThe number of objects/records affected.getData()Avro binary encoded response.TheTypeobject containing the type of the dynamically generated data.booleanToo many records.getInfo()Additional information.Name of the table that has the result records of the query.longTotal/Filtered number of records.inthashCode()setCountAffected(long countAffected) The number of objects/records affected.Avro binary encoded response.setDataType(Type dataType) TheTypeobject containing the type of the dynamically generated data.setHasMoreRecords(boolean hasMoreRecords) Too many records.Additional information.setPagingTable(String pagingTable) Name of the table that has the result records of the query.setTotalNumberOfRecords(long totalNumberOfRecords) Total/Filtered number of records.toString()
Method Details
getCountAffected
public long getCountAffected()The number of objects/records affected.Returns:The current value ofcountAffected.setCountAffected
The number of objects/records affected.Parameters:countAffected- The new value forcountAffected.Returns:thisto mimic the builder pattern.setData
Avro binary encoded response.Parameters:data- The new value fordata.Returns:thisto mimic the builder pattern.getTotalNumberOfRecords
public long getTotalNumberOfRecords()Total/Filtered number of records.Returns:The current value oftotalNumberOfRecords.setTotalNumberOfRecords
Total/Filtered number of records.Parameters:totalNumberOfRecords- The new value fortotalNumberOfRecords.Returns:thisto mimic the builder pattern.getHasMoreRecords
public boolean getHasMoreRecords()Too many records. Returned a partial set. Supported values:truefalse
Returns:The current value ofhasMoreRecords.setHasMoreRecords
Too many records. Returned a partial set. Supported values:truefalse
Parameters:hasMoreRecords- The new value forhasMoreRecords.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.setDataType
TheTypeobject containing the type of the dynamically generated data.Parameters:dataType- The new value fordataType.Returns:thisto mimic the builder pattern.