Skip to main content

Class ExecuteSqlResponse

java.lang.Object
com.gpudb.protocol.ExecuteSqlResponse

public class ExecuteSqlResponse extends Object
A set of results returned by GPUdb.executeSql.
  • Constructor Details

    • ExecuteSqlResponse

      public ExecuteSqlResponse()
      Constructs an ExecuteSqlResponse object with default parameters.
  • Method Details

    • getCountAffected

      public long getCountAffected()
      The number of objects/records affected.
      Returns:
      The current value of countAffected.
    • setCountAffected

      public ExecuteSqlResponse setCountAffected(long countAffected)
      The number of objects/records affected.
      Parameters:
      countAffected - The new value for countAffected.
      Returns:
      this to mimic the builder pattern.
    • getData

      public List<Record> getData()
      Avro binary encoded response.
      Returns:
      The current value of data.
    • setData

      public ExecuteSqlResponse setData(List<Record> data)
      Avro binary encoded response.
      Parameters:
      data - The new value for data.
      Returns:
      this to mimic the builder pattern.
    • getTotalNumberOfRecords

      public long getTotalNumberOfRecords()
      Total/Filtered number of records.
      Returns:
      The current value of totalNumberOfRecords.
    • setTotalNumberOfRecords

      public ExecuteSqlResponse setTotalNumberOfRecords(long totalNumberOfRecords)
      Total/Filtered number of records.
      Parameters:
      totalNumberOfRecords - The new value for totalNumberOfRecords.
      Returns:
      this to mimic the builder pattern.
    • getHasMoreRecords

      public boolean getHasMoreRecords()
      Too many records. Returned a partial set. Supported values:
      • true
      • false
      Returns:
      The current value of hasMoreRecords.
    • setHasMoreRecords

      public ExecuteSqlResponse setHasMoreRecords(boolean hasMoreRecords)
      Too many records. Returned a partial set. Supported values:
      • true
      • false
      Parameters:
      hasMoreRecords - The new value for hasMoreRecords.
      Returns:
      this to mimic the builder pattern.
    • getPagingTable

      public String getPagingTable()
      Name of the table that has the result records of the query. Valid, when hasMoreRecords is TRUE. The caller should clear this and all tables in RESULT_TABLE_LIST when they are done querying.
      Returns:
      The current value of pagingTable.
    • setPagingTable

      public ExecuteSqlResponse setPagingTable(String pagingTable)
      Name of the table that has the result records of the query. Valid, when hasMoreRecords is TRUE. The caller should clear this and all tables in RESULT_TABLE_LIST when they are done querying.
      Parameters:
      pagingTable - The new value for pagingTable.
      Returns:
      this to mimic the builder pattern.
    • getInfo

      public Map<String,String> getInfo()
      Additional information.
      • COUNT: Number of records without final limits applied.
      • RESULT_TABLE_LIST: List of tables, comma-separated, in addition to the pagingTable, created as result of the query. These should be cleared by the caller when they are done querying.
      The default value is an empty Map.
      Returns:
      The current value of info.
    • setInfo

      public ExecuteSqlResponse setInfo(Map<String,String> info)
      Additional information.
      • COUNT: Number of records without final limits applied.
      • RESULT_TABLE_LIST: List of tables, comma-separated, in addition to the pagingTable, created as result of the query. These should be cleared by the caller when they are done querying.
      The default value is an empty Map.
      Parameters:
      info - The new value for info.
      Returns:
      this to mimic the builder pattern.
    • getDataType

      public Type getDataType()
      The Type object containing the type of the dynamically generated data.
      Returns:
      The current value of dataType.
    • setDataType

      public ExecuteSqlResponse setDataType(Type dataType)
      The Type object containing the type of the dynamically generated data.
      Parameters:
      dataType - The new value for dataType.
      Returns:
      this to mimic the builder pattern.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object