Package com.gpudb.protocol
Class GetRecordsFromCollectionResponse<T>
- java.lang.Object
-
- com.gpudb.protocol.GetRecordsFromCollectionResponse<T>
-
- Type Parameters:
T- The type of object being processed.
public class GetRecordsFromCollectionResponse<T> extends Object
A set of results returned byGPUdb.getRecordsFromCollection.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGetRecordsFromCollectionResponse.InfoA set of string constants for theGetRecordsFromCollectionResponseparameterinfo.
-
Constructor Summary
Constructors Constructor Description GetRecordsFromCollectionResponse()Constructs a GetRecordsFromCollectionResponse object with default parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)List<T>getData()If the encoding parameter of the request was 'binary' then this list contains the binary encoded records retrieved from the table/collection.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.StringgetTableName()Value oftableName.List<String>getTypeNames()The type IDs of the corresponding records indataorrecordsJson.inthashCode()GetRecordsFromCollectionResponse<T>setData(List<T> data)If the encoding parameter of the request was 'binary' then this list contains the binary encoded records retrieved from the table/collection.GetRecordsFromCollectionResponse<T>setInfo(Map<String,String> info)Additional information.GetRecordsFromCollectionResponse<T>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.GetRecordsFromCollectionResponse<T>setTableName(String tableName)Value oftableName.GetRecordsFromCollectionResponse<T>setTypeNames(List<String> typeNames)The type IDs of the corresponding records indataorrecordsJson.StringtoString()
-
-
-
Method Detail
-
getTableName
public String getTableName()
Value oftableName.- Returns:
- The current value of
tableName.
-
setTableName
public GetRecordsFromCollectionResponse<T> setTableName(String tableName)
Value oftableName.- Parameters:
tableName- The new value fortableName.- Returns:
thisto mimic the builder pattern.
-
getTypeNames
public List<String> getTypeNames()
The type IDs of the corresponding records indataorrecordsJson. This is useful whentableNameis a heterogeneous collection (collections containing tables of different types).- Returns:
- The current value of
typeNames.
-
setTypeNames
public GetRecordsFromCollectionResponse<T> setTypeNames(List<String> typeNames)
The type IDs of the corresponding records indataorrecordsJson. This is useful whentableNameis a heterogeneous collection (collections containing tables of different types).- Parameters:
typeNames- The new value fortypeNames.- Returns:
thisto mimic the builder pattern.
-
getData
public List<T> getData()
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.- Returns:
- The current value of
data.
-
setData
public GetRecordsFromCollectionResponse<T> setData(List<T> 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.- Parameters:
data- The new value fordata.- Returns:
thisto mimic the builder pattern.
-
getRecordIds
public List<String> getRecordIds()
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.- Returns:
- The current value of
recordIds.
-
setRecordIds
public GetRecordsFromCollectionResponse<T> 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. Otherwise it will be empty.- Parameters:
recordIds- The new value forrecordIds.- Returns:
thisto mimic the builder pattern.
-
getInfo
public Map<String,String> getInfo()
Additional information.TOTAL_NUMBER_OF_RECORDS: Total number of records.HAS_MORE_RECORDS: Too many records. Returned a partial set. Supported values:
Map.- Returns:
- The current value of
info.
-
setInfo
public GetRecordsFromCollectionResponse<T> setInfo(Map<String,String> info)
Additional information.TOTAL_NUMBER_OF_RECORDS: Total number of records.HAS_MORE_RECORDS: Too many records. Returned a partial set. Supported values:
Map.- Parameters:
info- The new value forinfo.- Returns:
thisto mimic the builder pattern.
-
-