Class ReadRecordsResponse

  • All Implemented Interfaces:
    AutoCloseable

    public class ReadRecordsResponse
    extends RecordResponse
    Represents the output of a ReadRecords operation.
    • Constructor Detail

      • ReadRecordsResponse

        public ReadRecordsResponse​(String catalogName,
                                   Block records)
        Constructs a new ReadRecordsResponse object.
        Parameters:
        catalogName - The catalog name the data belongs to.
        records - The records that were read.
    • Method Detail

      • getSchema

        public org.apache.arrow.vector.types.pojo.Schema getSchema()
        Convenience accessor that returns the schema of the records Block.
        Returns:
        The schema of the records Block.
      • getRecords

        public Block getRecords()
        Returns the records Block.
        Returns:
        The records Block.
      • getRecordCount

        public int getRecordCount()
        Convenience accessor that returns the number of records that were read.
        Returns:
        The number of records that were read.
      • close

        public void close()
                   throws Exception
        Frees up resources associated with the records Block.
        Throws:
        Exception
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object