T
- The type of object being processed.public class GetRecordsFromCollectionResponse<T> extends Object
GPUdb.getRecordsFromCollection(Object,
GetRecordsFromCollectionRequest)
.Modifier and Type | Class and Description |
---|---|
static class |
GetRecordsFromCollectionResponse.Info
Additional information.
|
Constructor and Description |
---|
GetRecordsFromCollectionResponse()
Constructs a GetRecordsFromCollectionResponse object with default
parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<T> |
getData() |
Map<String,String> |
getInfo() |
List<String> |
getRecordIds() |
String |
getTableName() |
List<String> |
getTypeNames() |
int |
hashCode() |
GetRecordsFromCollectionResponse<T> |
setData(List<T> data) |
GetRecordsFromCollectionResponse<T> |
setInfo(Map<String,String> info) |
GetRecordsFromCollectionResponse<T> |
setRecordIds(List<String> recordIds) |
GetRecordsFromCollectionResponse<T> |
setTableName(String tableName) |
GetRecordsFromCollectionResponse<T> |
setTypeNames(List<String> typeNames) |
String |
toString() |
public GetRecordsFromCollectionResponse()
public String getTableName()
tableName
.public GetRecordsFromCollectionResponse<T> 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 GetRecordsFromCollectionResponse<T> 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<T> getData()
public GetRecordsFromCollectionResponse<T> setData(List<T> data)
data
- 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> getRecordIds()
public GetRecordsFromCollectionResponse<T> 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 GetRecordsFromCollectionResponse<T> 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.Copyright © 2020. All rights reserved.