org.apache.sysds.runtime.io

## Class ReaderTextCellParallel.CellBuffer

- java.lang.Object
- - org.apache.sysds.runtime.io.ReaderTextCellParallel.CellBuffer

- Enclosing class:
    ReaderTextCellParallel

      public static class ReaderTextCellParallel.CellBuffer
      extends Object

  Useful class for buffering unordered cells before locking target onces and appending all buffered cells.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static int` | `CAPACITY`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `CellBuffer()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addCell(int rlen, int clen, double val)`
    `void` | `flushCellBufferToMatrixBlock(MatrixBlock dest)`
    `void` | `reset()`
    `int` | `size()`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### CAPACITY

          public static final int CAPACITY

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### CellBuffer

          public CellBuffer()

  - ### Method Detail

    - #### addCell

          public void addCell(int rlen,
                              int clen,
                              double val)

    - #### flushCellBufferToMatrixBlock

          public void flushCellBufferToMatrixBlock(MatrixBlock dest)

    - #### size

          public int size()

    - #### reset

          public void reset()

Copyright © 2021 The Apache Software Foundation. All rights reserved.