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