Skip to main content

Class AggregateGroupByResponse

java.lang.Object
com.gpudb.protocol.AggregateGroupByResponse

public class AggregateGroupByResponse extends Object
A set of results returned by GPUdb.aggregateGroupBy.
  • Constructor Details

    • AggregateGroupByResponse

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

    • getData

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

      public AggregateGroupByResponse 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. This may be an over-estimate if a limit was applied and there are additional records (i.e., when hasMoreRecords is true).
      Returns:
      The current value of totalNumberOfRecords.
    • setTotalNumberOfRecords

      public AggregateGroupByResponse setTotalNumberOfRecords(long totalNumberOfRecords)
      Total/Filtered number of records. This may be an over-estimate if a limit was applied and there are additional records (i.e., when hasMoreRecords is true).
      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.
      Returns:
      The current value of hasMoreRecords.
    • setHasMoreRecords

      public AggregateGroupByResponse setHasMoreRecords(boolean hasMoreRecords)
      Too many records. Returned a partial set.
      Parameters:
      hasMoreRecords - The new value for hasMoreRecords.
      Returns:
      this to mimic the builder pattern.
    • getInfo

      public Map<String,String> getInfo()
      Additional information.The default value is an empty Map.
      Returns:
      The current value of info.
    • setInfo

      public AggregateGroupByResponse setInfo(Map<String,String> info)
      Additional information.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 AggregateGroupByResponse 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