Class ColumnarRowView


  • public class ColumnarRowView
    extends Object
    Memory-efficient columnar view that provides row-based access without materializing all rows. Instead of creating List>, this class provides direct access to columnar data on a per-row, per-column basis, significantly reducing memory allocations.
    • Method Detail

      • getRowCount

        public int getRowCount()
        Gets the number of rows in this view.
      • getColumnCount

        public int getColumnCount()
        Gets the number of columns in this view.
      • materializeRow

        public Object[] materializeRow​(int rowIndex)
                                throws DatabricksSQLException
        Creates a materialized row only when explicitly requested (for backward compatibility). This should be avoided in performance-critical paths.
        Throws:
        DatabricksSQLException