public function getSizeTable($database_table)
    {
        $nodes = $this->getNodesByTable($database_table);
        // scan need node`s
        foreach ($nodes as $node)
        {
            if (empty($this->_table_size_cache[$node]))
            {
                $this->_table_size_cache[$node] = $this->client($node)->tablesSize(true);
            }
        }

        $sizes = [];
        foreach ($this->_table_size_cache as $node=>$rows)
        {
            foreach ($rows as $row)
            {
                $sizes[$row['database'] . '.' . $row['table']][$node] = $row;
                @$sizes[$row['database'] . '.' . $row['table']]['total']['sizebytes'] += $row['sizebytes'];



            }
        }

        if (empty($sizes[$database_table]))
        {
            return null;
        }
        return $sizes[$database_table]['total']['sizebytes'];
    }
public function getSizeTable($database_table)
    {
        $nodes = $this->getNodesByTable($database_table);
        // scan need node`s
        foreach ($nodes as $node)
        {
            if (empty($this->_table_size_cache[$node]))
            {
                $this->_table_size_cache[$node] = $this->client($node)->tablesSize(true);
            }
        }

        $sizes = [];
        foreach ($this->_table_size_cache as $node=>$rows)
        {
            foreach ($rows as $row)
            {
                $sizes[$row['database'] . '.' . $row['table']][$node] = $row;
                @$sizes[$row['database'] . '.' . $row['table']]['total']['sizebytes'] += $row['sizebytes'];



            }
        }

        if (empty($sizes[$database_table]))
        {
            return null;
        }
        return $sizes[$database_table]['total']['sizebytes'];
    }
public function getSizeTable ( $ database_table ) { $ nodes = $ this -> getNodesByTable ( $ database_table ) ; // scan need node`s foreach ( $ nodes as $ node ) { if ( empty ( $ this -> _table_size_cache [ $ node ] ) ) { $ this -> _table_size_cache [ $ node ] = $ this -> client ( $ node ) -> tablesSize ( true ) ; } } $ sizes = [ ] ; foreach ( $ this -> _table_size_cache as $ node => $ rows ) { foreach ( $ rows as $ row ) { $ sizes [ $ row [ 'database' ] . '.' . $ row [ 'table' ] ] [ $ node ] = $ row ; @ $ sizes [ $ row [ 'database' ] . '.' . $ row [ 'table' ] ] [ 'total' ] [ 'sizebytes' ] += $ row [ 'sizebytes' ] ; } } if ( empty ( $ sizes [ $ database_table ] ) ) { return null ; } return $ sizes [ $ database_table ] [ 'total' ] [ 'sizebytes' ] ; }
Table size on cluster

@param string $database_table
@return array|null

@throws Exception\TransportException
Table size on cluster