@ Deprecated public Optional < TableStats > getTableStats ( ) { DescriptorProperties normalizedProps = new DescriptorProperties ( ) ; normalizedProps . putProperties ( normalizedProps ) ; Optional < Long > rowCount = normalizedProps . getOptionalLong ( STATISTICS_ROW_COUNT ) ; if ( rowCount . isPresent ( ) ) { Map < String , ColumnStats > columnStats = readColumnStats ( normalizedProps , STATISTICS_COLUMNS ) ; return Optional . of ( new TableStats ( rowCount . get ( ) , columnStats ) ) ; } else { return Optional . empty ( ) ; } }
Reads table statistics from the descriptors properties .