Class StreamingRow

  • All Implemented Interfaces:
    Iterable<org.apache.poi.ss.usermodel.Cell>, org.apache.poi.ss.usermodel.Row

    public class StreamingRow
    extends Object
    implements org.apache.poi.ss.usermodel.Row
    • Constructor Detail

      • StreamingRow

        public StreamingRow​(org.apache.poi.ss.usermodel.Sheet sheet,
                            int rowIndex,
                            boolean isHidden)
    • Method Detail

      • getCellMap

        public Map<Integer,​org.apache.poi.ss.usermodel.Cell> getCellMap()
      • setCellMap

        public void setCellMap​(TreeMap<Integer,​org.apache.poi.ss.usermodel.Cell> cellMap)
      • getRowNum

        public int getRowNum()
        Get row number this row represents
        Specified by:
        getRowNum in interface org.apache.poi.ss.usermodel.Row
        Returns:
        the row number (0 based)
      • cellIterator

        public Iterator<org.apache.poi.ss.usermodel.Cell> cellIterator()
        Specified by:
        cellIterator in interface org.apache.poi.ss.usermodel.Row
        Returns:
        Cell iterator of the physically defined cells for this row.
      • iterator

        public Iterator<org.apache.poi.ss.usermodel.Cell> iterator()
        Specified by:
        iterator in interface Iterable<org.apache.poi.ss.usermodel.Cell>
        Returns:
        Cell iterator of the physically defined cells for this row.
      • getSheet

        public org.apache.poi.ss.usermodel.Sheet getSheet()
        Specified by:
        getSheet in interface org.apache.poi.ss.usermodel.Row
      • getCell

        public org.apache.poi.ss.usermodel.Cell getCell​(int cellnum)
        Get the cell representing a given column (logical cell) 0-based. If you ask for a cell that is not defined, you get a null.
        Specified by:
        getCell in interface org.apache.poi.ss.usermodel.Row
        Parameters:
        cellnum - 0 based column number
        Returns:
        Cell representing that column or null if undefined.
      • getLastCellNum

        public short getLastCellNum()
        Gets the index of the last cell contained in this row PLUS ONE.
        Specified by:
        getLastCellNum in interface org.apache.poi.ss.usermodel.Row
        Returns:
        short representing the last logical cell in the row PLUS ONE, or -1 if the row does not contain any cells.
      • getZeroHeight

        public boolean getZeroHeight()
        Get whether or not to display this row with 0 height
        Specified by:
        getZeroHeight in interface org.apache.poi.ss.usermodel.Row
        Returns:
        - zHeight height is zero or not.
      • getPhysicalNumberOfCells

        public int getPhysicalNumberOfCells()
        Gets the number of defined cells (NOT number of cells in the actual row!). That is to say if only columns 0,4,5 have values then there would be 3.
        Specified by:
        getPhysicalNumberOfCells in interface org.apache.poi.ss.usermodel.Row
        Returns:
        int representing the number of defined cells in the row.
      • getFirstCellNum

        public short getFirstCellNum()
        Specified by:
        getFirstCellNum in interface org.apache.poi.ss.usermodel.Row
      • getCell

        public org.apache.poi.ss.usermodel.Cell getCell​(int cellnum,
                                                        org.apache.poi.ss.usermodel.Row.MissingCellPolicy policy)
        Specified by:
        getCell in interface org.apache.poi.ss.usermodel.Row
      • createCell

        public org.apache.poi.ss.usermodel.Cell createCell​(int column)
        Not supported
        Specified by:
        createCell in interface org.apache.poi.ss.usermodel.Row
      • createCell

        public org.apache.poi.ss.usermodel.Cell createCell​(int i,
                                                           org.apache.poi.ss.usermodel.CellType cellType)
        Not supported
        Specified by:
        createCell in interface org.apache.poi.ss.usermodel.Row
      • removeCell

        public void removeCell​(org.apache.poi.ss.usermodel.Cell cell)
        Not supported
        Specified by:
        removeCell in interface org.apache.poi.ss.usermodel.Row
      • setRowNum

        public void setRowNum​(int rowNum)
        Not supported
        Specified by:
        setRowNum in interface org.apache.poi.ss.usermodel.Row
      • setHeight

        public void setHeight​(short height)
        Not supported
        Specified by:
        setHeight in interface org.apache.poi.ss.usermodel.Row
      • setZeroHeight

        public void setZeroHeight​(boolean zHeight)
        Not supported
        Specified by:
        setZeroHeight in interface org.apache.poi.ss.usermodel.Row
      • setHeightInPoints

        public void setHeightInPoints​(float height)
        Not supported
        Specified by:
        setHeightInPoints in interface org.apache.poi.ss.usermodel.Row
      • getHeight

        public short getHeight()
        Not supported
        Specified by:
        getHeight in interface org.apache.poi.ss.usermodel.Row
      • getHeightInPoints

        public float getHeightInPoints()
        Not supported
        Specified by:
        getHeightInPoints in interface org.apache.poi.ss.usermodel.Row
      • isFormatted

        public boolean isFormatted()
        Not supported
        Specified by:
        isFormatted in interface org.apache.poi.ss.usermodel.Row
      • getRowStyle

        public org.apache.poi.ss.usermodel.CellStyle getRowStyle()
        Not supported
        Specified by:
        getRowStyle in interface org.apache.poi.ss.usermodel.Row
      • setRowStyle

        public void setRowStyle​(org.apache.poi.ss.usermodel.CellStyle style)
        Not supported
        Specified by:
        setRowStyle in interface org.apache.poi.ss.usermodel.Row
      • getOutlineLevel

        public int getOutlineLevel()
        Not supported
        Specified by:
        getOutlineLevel in interface org.apache.poi.ss.usermodel.Row
      • shiftCellsRight

        public void shiftCellsRight​(int firstShiftColumnIndex,
                                    int lastShiftColumnIndex,
                                    int step)
        Not supported
        Specified by:
        shiftCellsRight in interface org.apache.poi.ss.usermodel.Row
      • shiftCellsLeft

        public void shiftCellsLeft​(int firstShiftColumnIndex,
                                   int lastShiftColumnIndex,
                                   int step)
        Not supported
        Specified by:
        shiftCellsLeft in interface org.apache.poi.ss.usermodel.Row