public class RawExecuteSqlResponse extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.executeSqlRaw.| Modifier and Type | Class and Description |
|---|---|
static class |
RawExecuteSqlResponse.HasMoreRecords
A set of string constants for the
RawExecuteSqlResponse
parameter hasMoreRecords. |
static class |
RawExecuteSqlResponse.Info
A set of string constants for the
RawExecuteSqlResponse
parameter info. |
| Constructor and Description |
|---|
RawExecuteSqlResponse()
Constructs a RawExecuteSqlResponse object with default parameters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Object |
get(int index)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
ByteBuffer |
getBinaryEncodedResponse()
Avro binary encoded response.
|
static org.apache.avro.Schema |
getClassSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
long |
getCountAffected()
The number of objects/records affected.
|
boolean |
getHasMoreRecords()
Too many records.
|
Map<String,String> |
getInfo()
Additional information.
|
String |
getJsonEncodedResponse()
Avro JSON encoded response.
|
String |
getPagingTable()
Name of the table that has the result records of the query.
|
String |
getResponseSchemaStr()
Avro schema of
binaryEncodedResponse
or jsonEncodedResponse. |
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
long |
getTotalNumberOfRecords()
Total/Filtered number of records.
|
int |
hashCode() |
void |
put(int index,
Object value)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
RawExecuteSqlResponse |
setBinaryEncodedResponse(ByteBuffer binaryEncodedResponse)
Avro binary encoded response.
|
RawExecuteSqlResponse |
setCountAffected(long countAffected)
The number of objects/records affected.
|
RawExecuteSqlResponse |
setHasMoreRecords(boolean hasMoreRecords)
Too many records.
|
RawExecuteSqlResponse |
setInfo(Map<String,String> info)
Additional information.
|
RawExecuteSqlResponse |
setJsonEncodedResponse(String jsonEncodedResponse)
Avro JSON encoded response.
|
RawExecuteSqlResponse |
setPagingTable(String pagingTable)
Name of the table that has the result records of the query.
|
RawExecuteSqlResponse |
setResponseSchemaStr(String responseSchemaStr)
Avro schema of
binaryEncodedResponse
or jsonEncodedResponse. |
RawExecuteSqlResponse |
setTotalNumberOfRecords(long totalNumberOfRecords)
Total/Filtered number of records.
|
String |
toString() |
public RawExecuteSqlResponse()
public static org.apache.avro.Schema getClassSchema()
public long getCountAffected()
countAffected.public RawExecuteSqlResponse setCountAffected(long countAffected)
countAffected - The new value for countAffected.this to mimic the builder pattern.public String getResponseSchemaStr()
binaryEncodedResponse
or jsonEncodedResponse.responseSchemaStr.public RawExecuteSqlResponse setResponseSchemaStr(String responseSchemaStr)
binaryEncodedResponse
or jsonEncodedResponse.responseSchemaStr - The new value for responseSchemaStr.this to mimic the builder pattern.public ByteBuffer getBinaryEncodedResponse()
binaryEncodedResponse.public RawExecuteSqlResponse setBinaryEncodedResponse(ByteBuffer binaryEncodedResponse)
binaryEncodedResponse - The new value for binaryEncodedResponse.this to mimic the builder pattern.public String getJsonEncodedResponse()
jsonEncodedResponse.public RawExecuteSqlResponse setJsonEncodedResponse(String jsonEncodedResponse)
jsonEncodedResponse - The new value for jsonEncodedResponse.this to mimic the builder pattern.public long getTotalNumberOfRecords()
totalNumberOfRecords.public RawExecuteSqlResponse setTotalNumberOfRecords(long totalNumberOfRecords)
totalNumberOfRecords - The new value for totalNumberOfRecords.this to mimic the builder pattern.public boolean getHasMoreRecords()
true
false
hasMoreRecords.public RawExecuteSqlResponse setHasMoreRecords(boolean hasMoreRecords)
true
false
hasMoreRecords - The new value for hasMoreRecords.this to mimic the builder pattern.public String getPagingTable()
hasMoreRecords is TRUE. The caller should clear this and all tables
in RESULT_TABLE_LIST when they are done
querying.pagingTable.public RawExecuteSqlResponse setPagingTable(String pagingTable)
hasMoreRecords is TRUE. The caller should clear this and all tables
in RESULT_TABLE_LIST when they are done
querying.pagingTable - The new value for pagingTable.this to mimic the builder pattern.public Map<String,String> getInfo()
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.
Map.info.public RawExecuteSqlResponse setInfo(Map<String,String> info)
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.
Map.info - The new value for info.this to mimic the builder pattern.public org.apache.avro.Schema getSchema()
getSchema in interface org.apache.avro.generic.GenericContainerpublic Object get(int index)
get in interface org.apache.avro.generic.IndexedRecordindex - the position of the field to getIndexOutOfBoundsExceptionpublic void put(int index,
Object value)
put in interface org.apache.avro.generic.IndexedRecordindex - the position of the field to setvalue - the value to setIndexOutOfBoundsExceptionCopyright © 2025. All rights reserved.