Package com.gpudb.protocol
Class ExecuteSqlResponse
- java.lang.Object
-
- com.gpudb.protocol.ExecuteSqlResponse
-
public class ExecuteSqlResponse extends Object
A set of results returned byGPUdb.executeSql.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExecuteSqlResponse.HasMoreRecordsA set of string constants for theExecuteSqlResponseparameterhasMoreRecords.static classExecuteSqlResponse.InfoA set of string constants for theExecuteSqlResponseparameterinfo.
-
Constructor Summary
Constructors Constructor Description ExecuteSqlResponse()Constructs an ExecuteSqlResponse object with default parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)longgetCountAffected()The number of objects/records affected.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.StringgetPagingTable()Name of the table that has the result records of the query.longgetTotalNumberOfRecords()Total/Filtered number of records.inthashCode()ExecuteSqlResponsesetCountAffected(long countAffected)The number of objects/records affected.ExecuteSqlResponsesetData(List<Record> data)Avro binary encoded response.ExecuteSqlResponsesetDataType(Type dataType)TheTypeobject containing the type of the dynamically generated data.ExecuteSqlResponsesetHasMoreRecords(boolean hasMoreRecords)Too many records.ExecuteSqlResponsesetInfo(Map<String,String> info)Additional information.ExecuteSqlResponsesetPagingTable(String pagingTable)Name of the table that has the result records of the query.ExecuteSqlResponsesetTotalNumberOfRecords(long totalNumberOfRecords)Total/Filtered number of records.StringtoString()
-
-
-
Method Detail
-
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 forcountAffected.- Returns:
thisto 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 fordata.- Returns:
thisto 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 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 of
hasMoreRecords.
-
setHasMoreRecords
public ExecuteSqlResponse setHasMoreRecords(boolean hasMoreRecords)
Too many records. Returned a partial set. Supported values:truefalse
- Parameters:
hasMoreRecords- The new value forhasMoreRecords.- Returns:
thisto mimic the builder pattern.
-
getPagingTable
public String 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 of
pagingTable.
-
setPagingTable
public ExecuteSqlResponse setPagingTable(String pagingTable)
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
public Map<String,String> getInfo()
Additional information.COUNT: Number of records without final limits appliedRESULT_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 of
info.
-
setInfo
public ExecuteSqlResponse setInfo(Map<String,String> info)
Additional information.COUNT: Number of records without final limits appliedRESULT_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.
-
getDataType
public Type getDataType()
TheTypeobject containing the type of the dynamically generated data.- Returns:
- The current value of
dataType.
-
setDataType
public ExecuteSqlResponse setDataType(Type dataType)
TheTypeobject containing the type of the dynamically generated data.- Parameters:
dataType- The new value fordataType.- Returns:
thisto mimic the builder pattern.
-
-