Class GetRecordsResponse<T>

  • Type Parameters:
    T - The type of object being processed.

    public class GetRecordsResponse<T>
    extends Object
    A set of results returned by GPUdb.getRecords.
    • Constructor Detail

      • GetRecordsResponse

        public GetRecordsResponse()
        Constructs a GetRecordsResponse object with default parameters.
    • Method Detail

      • getTableName

        public String getTableName()
        Value of tableName.
        Returns:
        The current value of tableName.
      • setTableName

        public GetRecordsResponse<T> setTableName​(String tableName)
        Value of tableName.
        Parameters:
        tableName - The new value for tableName.
        Returns:
        this to mimic the builder pattern.
      • getTypeName

        public String getTypeName()
        Returns:
        The current value of typeName.
      • setTypeName

        public GetRecordsResponse<T> setTypeName​(String typeName)
        Parameters:
        typeName - The new value for typeName.
        Returns:
        this to mimic the builder pattern.
      • getTypeSchema

        public String getTypeSchema()
        Avro schema of data or recordsJson
        Returns:
        The current value of typeSchema.
      • setTypeSchema

        public GetRecordsResponse<T> setTypeSchema​(String typeSchema)
        Avro schema of data or recordsJson
        Parameters:
        typeSchema - The new value for typeSchema.
        Returns:
        this to mimic the builder pattern.
      • getData

        public List<T> getData()
        If the encoding was 'binary', then this list contains the binary encoded records retrieved from the table, otherwise not populated.
        Returns:
        The current value of data.
      • setData

        public GetRecordsResponse<T> setData​(List<T> data)
        If the encoding was 'binary', then this list contains the binary encoded records retrieved from the table, otherwise not populated.
        Parameters:
        data - The new value for data.
        Returns:
        this to mimic the builder pattern.
      • getTotalNumberOfRecords

        public long getTotalNumberOfRecords()
        Total/Filtered number of records.
        Returns:
        The current value of totalNumberOfRecords.
      • setTotalNumberOfRecords

        public GetRecordsResponse<T> setTotalNumberOfRecords​(long totalNumberOfRecords)
        Total/Filtered number of records.
        Parameters:
        totalNumberOfRecords - The new value for totalNumberOfRecords.
        Returns:
        this to mimic the builder pattern.
      • getHasMoreRecords

        public boolean getHasMoreRecords()
        Too many records. Returned a partial set.
        Returns:
        The current value of hasMoreRecords.
      • setHasMoreRecords

        public GetRecordsResponse<T> setHasMoreRecords​(boolean hasMoreRecords)
        Too many records. Returned a partial set.
        Parameters:
        hasMoreRecords - The new value for hasMoreRecords.
        Returns:
        this to mimic the builder pattern.
      • getInfo

        public Map<String,​String> getInfo()
        Additional information.
        Returns:
        The current value of info.
      • setInfo

        public GetRecordsResponse<T> setInfo​(Map<String,​String> info)
        Additional information.
        Parameters:
        info - The new value for info.
        Returns:
        this to mimic the builder pattern.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object