Package com.gpudb.protocol
Class GetRecordsFromCollectionResponse<T>
java.lang.Object
com.gpudb.protocol.GetRecordsFromCollectionResponse<T>
Type Parameters:
T - The type of object being processed.A set of results returned by
GPUdb.getRecordsFromCollection.Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA set of string constants for theGetRecordsFromCollectionResponseparameterinfo.Constructor Summary
ConstructorsConstructorDescriptionConstructs a GetRecordsFromCollectionResponse object with default parameters.Method Summary
Modifier and TypeMethodDescriptionbooleangetData()If the encoding parameter of the request was ‘binary’ then this list contains the binary encoded records retrieved from the table/collection.getInfo()Additional information.If the ‘return_record_ids’ option of the request was ‘true’, then this list contains the internal ID for each object.Value oftableName.The type IDs of the corresponding records indataorrecordsJson.inthashCode()If the encoding parameter of the request was ‘binary’ then this list contains the binary encoded records retrieved from the table/collection.Additional information.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.setTableName(String tableName) Value oftableName.setTypeNames(List<String> typeNames) The type IDs of the corresponding records indataorrecordsJson.toString()
Method Details
setTableName
Value oftableName.Parameters:tableName- The new value fortableName.Returns:thisto mimic the builder pattern.setData
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.setRecordIds
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
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 ofinfo.setInfo
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.