Package com.gpudb.protocol
Class GetRecordsResponse<T>
java.lang.Object
com.gpudb.protocol.GetRecordsResponse<T>
Type Parameters:
T - The type of object being processed.A set of results returned by
GPUdb.getRecords.Constructor Summary
ConstructorsConstructorDescriptionConstructs a GetRecordsResponse object with default parameters.Method Summary
Modifier and TypeMethodDescriptionbooleangetData()If theencodingwas ‘binary’, then this list contains the binary encoded records retrieved from the table, otherwise not populated.booleanToo many records.getInfo()Additional information.Value oftableName.longTotal/Filtered number of records.The name of the type of the returned records.Avro schema ofdataorrecordsJson.inthashCode()If theencodingwas ‘binary’, then this list contains the binary encoded records retrieved from the table, otherwise not populated.setHasMoreRecords(boolean hasMoreRecords) Too many records.Additional information.setTableName(String tableName) Value oftableName.setTotalNumberOfRecords(long totalNumberOfRecords) Total/Filtered number of records.setTypeName(String typeName) The name of the type of the returned records.setTypeSchema(String typeSchema) Avro schema ofdataorrecordsJson.toString()
Method Details
setTableName
Value oftableName.Parameters:tableName- The new value fortableName.Returns:thisto mimic the builder pattern.setTypeName
The name of the type of the returned records.Parameters:typeName- The new value fortypeName.Returns:thisto mimic the builder pattern.setTypeSchema
Avro schema ofdataorrecordsJson.Parameters:typeSchema- The new value fortypeSchema.Returns:thisto mimic the builder pattern.getTotalNumberOfRecords
public long getTotalNumberOfRecords()Total/Filtered number of records.Returns:The current value oftotalNumberOfRecords.setTotalNumberOfRecords
Total/Filtered number of records.Parameters:totalNumberOfRecords- The new value fortotalNumberOfRecords.Returns:thisto mimic the builder pattern.getHasMoreRecords
public boolean getHasMoreRecords()Too many records. Returned a partial set.Returns:The current value ofhasMoreRecords.setHasMoreRecords
Too many records. Returned a partial set.Parameters:hasMoreRecords- The new value forhasMoreRecords.Returns:thisto mimic the builder pattern.