Package com.gpudb.protocol
Class AggregateGroupByResponse
- java.lang.Object
-
- com.gpudb.protocol.AggregateGroupByResponse
-
public class AggregateGroupByResponse extends Object
A set of results returned byGPUdb.aggregateGroupBy.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAggregateGroupByResponse.InfoA set of string constants for theAggregateGroupByResponseparameterinfo.
-
Constructor Summary
Constructors Constructor Description AggregateGroupByResponse()Constructs an AggregateGroupByResponse object with default parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)List<Record>getData()Avro binary encoded response.TypegetDataType()TheTypeobject containing the type of the dynamically generated data.booleangetHasMoreRecords()Too many records.Map<String,String>getInfo()Additional information.longgetTotalNumberOfRecords()Total/Filtered number of records.inthashCode()AggregateGroupByResponsesetData(List<Record> data)Avro binary encoded response.AggregateGroupByResponsesetDataType(Type dataType)TheTypeobject containing the type of the dynamically generated data.AggregateGroupByResponsesetHasMoreRecords(boolean hasMoreRecords)Too many records.AggregateGroupByResponsesetInfo(Map<String,String> info)Additional information.AggregateGroupByResponsesetTotalNumberOfRecords(long totalNumberOfRecords)Total/Filtered number of records.StringtoString()
-
-
-
Method Detail
-
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 fordata.- Returns:
thisto 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., whenhasMoreRecordsis 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., whenhasMoreRecordsis true).- Parameters:
totalNumberOfRecords- The new value fortotalNumberOfRecords.- Returns:
thisto 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 forhasMoreRecords.- Returns:
thisto mimic the builder pattern.
-
getInfo
public Map<String,String> getInfo()
Additional information.QUALIFIED_RESULT_TABLE_NAME: The fully qualified name of the table (i.e. including the schema) used to store the results.
Map.- Returns:
- The current value of
info.
-
setInfo
public AggregateGroupByResponse setInfo(Map<String,String> info)
Additional information.QUALIFIED_RESULT_TABLE_NAME: The fully qualified name of the table (i.e. including the schema) used to store the results.
Map.- Parameters:
info- The new value forinfo.- Returns:
thisto mimic the builder pattern.
-
getDataType
public Type getDataType()
TheTypeobject containing the type of the dynamically generated data.- Returns:
- The current value of
dataType.
-
setDataType
public AggregateGroupByResponse setDataType(Type dataType)
TheTypeobject containing the type of the dynamically generated data.- Parameters:
dataType- The new value fordataType.- Returns:
thisto mimic the builder pattern.
-
-