public class RawGetRecordsFromCollectionResponse extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.getRecordsFromCollectionRaw
.Modifier and Type | Class and Description |
---|---|
static class |
RawGetRecordsFromCollectionResponse.Info
A set of string constants for the
RawGetRecordsFromCollectionResponse parameter info . |
Constructor and Description |
---|
RawGetRecordsFromCollectionResponse()
Constructs a RawGetRecordsFromCollectionResponse 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.
|
static org.apache.avro.Schema |
getClassSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
Map<String,String> |
getInfo()
Additional information.
|
List<String> |
getRecordIds()
If the 'return_record_ids' option of the request was 'true', then this
list contains the internal ID for each object.
|
List<ByteBuffer> |
getRecordsBinary()
If the encoding parameter of the request was 'binary' then this list
contains the binary encoded records retrieved from the table/collection.
|
List<String> |
getRecordsJson()
If the encoding parameter of the request was 'json', then this list
contains the JSON encoded records retrieved from the table/collection.
|
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
String |
getTableName()
Value of
tableName . |
List<String> |
getTypeNames()
The type IDs of the corresponding records in
recordsBinary or recordsJson . |
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.
|
RawGetRecordsFromCollectionResponse |
setInfo(Map<String,String> info)
Additional information.
|
RawGetRecordsFromCollectionResponse |
setRecordIds(List<String> recordIds)
If the 'return_record_ids' option of the request was 'true', then this
list contains the internal ID for each object.
|
RawGetRecordsFromCollectionResponse |
setRecordsBinary(List<ByteBuffer> recordsBinary)
If the encoding parameter of the request was 'binary' then this list
contains the binary encoded records retrieved from the table/collection.
|
RawGetRecordsFromCollectionResponse |
setRecordsJson(List<String> recordsJson)
If the encoding parameter of the request was 'json', then this list
contains the JSON encoded records retrieved from the table/collection.
|
RawGetRecordsFromCollectionResponse |
setTableName(String tableName)
Value of
tableName . |
RawGetRecordsFromCollectionResponse |
setTypeNames(List<String> typeNames)
The type IDs of the corresponding records in
recordsBinary or recordsJson . |
String |
toString() |
public RawGetRecordsFromCollectionResponse()
public static org.apache.avro.Schema getClassSchema()
public String getTableName()
tableName
.tableName
.public RawGetRecordsFromCollectionResponse setTableName(String tableName)
tableName
.tableName
- The new value for tableName
.this
to mimic the builder pattern.public List<String> getTypeNames()
recordsBinary
or recordsJson
. This is useful
when tableName
is a heterogeneous collection (collections containing tables
of different types).typeNames
.public RawGetRecordsFromCollectionResponse setTypeNames(List<String> typeNames)
recordsBinary
or recordsJson
. This is useful
when tableName
is a heterogeneous collection (collections containing tables
of different types).typeNames
- The new value for typeNames
.this
to mimic the builder pattern.public List<ByteBuffer> getRecordsBinary()
recordsBinary
.public RawGetRecordsFromCollectionResponse setRecordsBinary(List<ByteBuffer> recordsBinary)
recordsBinary
- The new value for recordsBinary
.this
to mimic the builder pattern.public List<String> getRecordsJson()
recordsJson
.public RawGetRecordsFromCollectionResponse setRecordsJson(List<String> recordsJson)
recordsJson
- The new value for recordsJson
.this
to mimic the builder pattern.public List<String> getRecordIds()
recordIds
.public RawGetRecordsFromCollectionResponse setRecordIds(List<String> recordIds)
recordIds
- The new value for recordIds
.this
to mimic the builder pattern.public Map<String,String> getInfo()
TOTAL_NUMBER_OF_RECORDS
:
Total number of records.
HAS_MORE_RECORDS
: Too many
records. Returned a partial set.
Supported values:
Map
.info
.public RawGetRecordsFromCollectionResponse setInfo(Map<String,String> info)
TOTAL_NUMBER_OF_RECORDS
:
Total number of records.
HAS_MORE_RECORDS
: Too many
records. Returned a partial set.
Supported values:
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.GenericContainer
public Object get(int index)
get
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to getIndexOutOfBoundsException
public void put(int index, Object value)
put
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to setvalue
- the value to setIndexOutOfBoundsException
Copyright © 2025. All rights reserved.