Class ADictBasedColGroup

    • Method Detail

      • decompressToDenseBlock

        public final void decompressToDenseBlock​(DenseBlock db,
                                                 int rl,
                                                 int ru,
                                                 int offR,
                                                 int offC)
        Description copied from class: AColGroup
        Decompress into the DenseBlock. (no NNZ handling)
        Specified by:
        decompressToDenseBlock in class AColGroup
        Parameters:
        db - Target DenseBlock
        rl - Row to start decompression from
        ru - Row to end decompression at
        offR - Row offset into the target to decompress
        offC - Column offset into the target to decompress
      • decompressToSparseBlock

        public final void decompressToSparseBlock​(SparseBlock sb,
                                                  int rl,
                                                  int ru,
                                                  int offR,
                                                  int offC)
        Description copied from class: AColGroup
        Decompress into the SparseBlock. (no NNZ handling) Note this method is allowing to calls to append since it is assumed that the sparse column indexes are sorted afterwards
        Specified by:
        decompressToSparseBlock in class AColGroup
        Parameters:
        sb - Target SparseBlock
        rl - Row to start decompression from
        ru - Row to end decompression at
        offR - Row offset into the target to decompress
        offC - Column offset into the target to decompress
      • getExactSizeOnDisk

        public long getExactSizeOnDisk()
        Description copied from class: AColGroup
        Returns the exact serialized size of column group. This can be used for example for buffer preallocation.
        Overrides:
        getExactSizeOnDisk in class AColGroup
        Returns:
        exact serialized size for column group
      • estimateInMemorySize

        public long estimateInMemorySize()
        Description copied from class: AColGroup
        Get the upper bound estimate of in memory allocation for the column group.
        Overrides:
        estimateInMemorySize in class AColGroup
        Returns:
        an upper bound on the number of bytes used to store this ColGroup in memory.
      • rightMultByMatrix

        public final AColGroup rightMultByMatrix​(MatrixBlock right,
                                                 IColIndex allCols)
        Description copied from class: AColGroup
        Right matrix multiplication with this column group. This method can return null, meaning that the output overlapping group would have been empty.
        Specified by:
        rightMultByMatrix in class AColGroup
        Parameters:
        right - The MatrixBlock on the right of this matrix multiplication
        allCols - A pre-materialized list of all col indexes, that can be shared across all column groups if use full, can be set to null.
        Returns:
        The new Column Group or null that is the result of the matrix multiplication.
      • copyAndSet

        public final AColGroup copyAndSet​(IColIndex colIndexes)
        Description copied from class: AColGroup
        Copy the content of the column group with pointers to the previous content but with new column given Note this method does not verify if the colIndexes specified are valid and correct dimensions for the underlying column groups.
        Specified by:
        copyAndSet in class AColGroup
        Parameters:
        colIndexes - the new indexes to use in the copy
        Returns:
        a new object with pointers to underlying data.
      • copyAndSet

        public final AColGroup copyAndSet​(IDictionary newDictionary)
        This method copies the column group and sets the dictionary to another dictionary. The method shallow copies underlying data structures. NOTE: Be very carefull with this since it invalidate the contracts maintained via standard compression.
        Parameters:
        newDictionary - A new dictionary to point to.
        Returns:
        A new shallow copy of the column group