public class ExecuteSqlResponse extends Object
GPUdb.executeSql(ExecuteSqlRequest)
.Modifier and Type | Class and Description |
---|---|
static class |
ExecuteSqlResponse.HasMoreRecords
Too many records.
|
static class |
ExecuteSqlResponse.Info
Additional information.
|
Constructor and Description |
---|
ExecuteSqlResponse()
Constructs an ExecuteSqlResponse object with default parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
long |
getCountAffected() |
List<Record> |
getData() |
Type |
getDataType() |
boolean |
getHasMoreRecords() |
Map<String,String> |
getInfo() |
String |
getPagingTable() |
long |
getTotalNumberOfRecords() |
int |
hashCode() |
ExecuteSqlResponse |
setCountAffected(long countAffected) |
ExecuteSqlResponse |
setData(List<Record> data) |
ExecuteSqlResponse |
setDataType(Type dataType) |
ExecuteSqlResponse |
setHasMoreRecords(boolean hasMoreRecords) |
ExecuteSqlResponse |
setInfo(Map<String,String> info) |
ExecuteSqlResponse |
setPagingTable(String pagingTable) |
ExecuteSqlResponse |
setTotalNumberOfRecords(long totalNumberOfRecords) |
String |
toString() |
public ExecuteSqlResponse()
public long getCountAffected()
public ExecuteSqlResponse setCountAffected(long countAffected)
countAffected
- The number of objects/records affected.this
to mimic the builder pattern.public ExecuteSqlResponse setData(List<Record> data)
data
- Avro binary encoded response.this
to mimic the builder pattern.public long getTotalNumberOfRecords()
public ExecuteSqlResponse setTotalNumberOfRecords(long totalNumberOfRecords)
totalNumberOfRecords
- Total/Filtered number of records.this
to mimic the builder pattern.public boolean getHasMoreRecords()
public ExecuteSqlResponse setHasMoreRecords(boolean hasMoreRecords)
public String getPagingTable()
hasMoreRecords
is true
(Subject to
config.paging_tables_enabled)public ExecuteSqlResponse setPagingTable(String pagingTable)
pagingTable
- Name of the table that has the result records of the
query. Valid, when hasMoreRecords
is true
(Subject to config.paging_tables_enabled)this
to mimic the builder pattern.public ExecuteSqlResponse setInfo(Map<String,String> info)
public Type getDataType()
Type
object containing the type of the dynamically
generated data.public ExecuteSqlResponse setDataType(Type dataType)
dataType
- The Type
object containing the type of the
dynamically generated data.this
to mimic the builder pattern.Copyright © 2020. All rights reserved.