Class ResultSet


  • public class ResultSet
    extends Object
    The main class to work with a physical data representation of DataFrame.
    • Field Detail

      • cursor

        protected final Cursor cursor
    • Method Detail

      • getCursor

        protected Cursor getCursor()
      • show

        public void show()
        This method prints first 5000 rows in a human-readable format to the standard output.
      • getPayload

        public List<Map<String,​Object>> getPayload()
        Returns in-memory List containing first 5000 rows of underlying DataFrame. Each row is represented as Map<String, Object>.

        Note: To avoid OOM errors on client side, list size is limited by 5000 rows. If you need to get all rows, consider streaming approach with getIterator() method.
        Returns:
        List containing first 5000 rows of underlying DataFrame.
      • getPayload

        public <T> List<T> getPayload​(Class<T> clas)
        Typed version of getPayload() method.
        Parameters:
        clas - Class used to represent DataFrame's rows in a form of domain object.
        Returns:
        List containing first 5000 rows of underlying DataFrame.