Class RawGetRecordsBySeriesResponse

  • All Implemented Interfaces:
    org.apache.avro.generic.GenericContainer, org.apache.avro.generic.IndexedRecord

    public class RawGetRecordsBySeriesResponse
    extends Object
    implements org.apache.avro.generic.IndexedRecord
    A set of results returned by GPUdb.getRecordsBySeriesRaw.
    • Constructor Detail

      • RawGetRecordsBySeriesResponse

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

      • getClassSchema

        public static org.apache.avro.Schema getClassSchema()
        This method supports the Avro framework and is not intended to be called directly by the user.
        Returns:
        The schema for the class.
      • getTableNames

        public List<String> getTableNames()
        The table name (one per series/track) of the returned series/tracks.
        Returns:
        The current value of tableNames.
      • setTableNames

        public RawGetRecordsBySeriesResponse setTableNames​(List<String> tableNames)
        The table name (one per series/track) of the returned series/tracks.
        Parameters:
        tableNames - The new value for tableNames.
        Returns:
        this to mimic the builder pattern.
      • getTypeNames

        public List<String> getTypeNames()
        The type IDs (one per series/track) of the returned series/tracks.
        Returns:
        The current value of typeNames.
      • setTypeNames

        public RawGetRecordsBySeriesResponse setTypeNames​(List<String> typeNames)
        The type IDs (one per series/track) of the returned series/tracks.
        Parameters:
        typeNames - The new value for typeNames.
        Returns:
        this to mimic the builder pattern.
      • getTypeSchemas

        public List<String> getTypeSchemas()
        The type schemas (one per series/track) of the returned series/tracks.
        Returns:
        The current value of typeSchemas.
      • setTypeSchemas

        public RawGetRecordsBySeriesResponse setTypeSchemas​(List<String> typeSchemas)
        The type schemas (one per series/track) of the returned series/tracks.
        Parameters:
        typeSchemas - The new value for typeSchemas.
        Returns:
        this to mimic the builder pattern.
      • getListRecordsBinary

        public List<List<ByteBuffer>> getListRecordsBinary()
        If the encoding parameter of the request was 'binary' then this list-of-lists contains the binary encoded records for each object (inner list) in each series/track (outer list). Otherwise, empty list-of-lists.
        Returns:
        The current value of listRecordsBinary.
      • setListRecordsBinary

        public RawGetRecordsBySeriesResponse setListRecordsBinary​(List<List<ByteBuffer>> listRecordsBinary)
        If the encoding parameter of the request was 'binary' then this list-of-lists contains the binary encoded records for each object (inner list) in each series/track (outer list). Otherwise, empty list-of-lists.
        Parameters:
        listRecordsBinary - The new value for listRecordsBinary.
        Returns:
        this to mimic the builder pattern.
      • getListRecordsJson

        public List<List<String>> getListRecordsJson()
        If the encoding parameter of the request was 'json' then this list-of-lists contains the json encoded records for each object (inner list) in each series/track (outer list). Otherwise, empty list-of-lists.
        Returns:
        The current value of listRecordsJson.
      • setListRecordsJson

        public RawGetRecordsBySeriesResponse setListRecordsJson​(List<List<String>> listRecordsJson)
        If the encoding parameter of the request was 'json' then this list-of-lists contains the json encoded records for each object (inner list) in each series/track (outer list). Otherwise, empty list-of-lists.
        Parameters:
        listRecordsJson - The new value for listRecordsJson.
        Returns:
        this to mimic the builder pattern.
      • getInfo

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

        public org.apache.avro.Schema getSchema()
        This method supports the Avro framework and is not intended to be called directly by the user.
        Specified by:
        getSchema in interface org.apache.avro.generic.GenericContainer
        Returns:
        The schema object describing this class.
      • get

        public Object get​(int index)
        This method supports the Avro framework and is not intended to be called directly by the user.
        Specified by:
        get in interface org.apache.avro.generic.IndexedRecord
        Parameters:
        index - the position of the field to get
        Returns:
        value of the field with the given index.
        Throws:
        IndexOutOfBoundsException
      • put

        public void put​(int index,
                        Object value)
        This method supports the Avro framework and is not intended to be called directly by the user.
        Specified by:
        put in interface org.apache.avro.generic.IndexedRecord
        Parameters:
        index - the position of the field to set
        value - the value to set
        Throws:
        IndexOutOfBoundsException
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object