ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rle...@apache.org
Subject [05/50] [abbrv] ambari git commit: Hive view 2.0 : table stats parameters changed from Integer to Long to handle bigger values (Greg Senia via nitirajrathore)
Date Tue, 30 May 2017 18:29:27 GMT
Hive view 2.0 : table stats parameters changed from Integer to Long to handle bigger values
(Greg Senia via nitirajrathore)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/461209a9
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/461209a9
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/461209a9

Branch: refs/heads/branch-feature-AMBARI-20859
Commit: 461209a9050566117f7b7342be875d5cec7e94d8
Parents: f7e9af8
Author: Nitiraj Singh Rathore <nitiraj.rathore@gmail.com>
Authored: Fri May 12 08:44:49 2017 +0530
Committer: Nitiraj Singh Rathore <nitiraj.rathore@gmail.com>
Committed: Fri May 12 08:45:45 2017 +0530

----------------------------------------------------------------------
 .../view/hive20/internal/dto/TableStats.java    | 24 ++++++++++----------
 .../internal/parsers/TableMetaParserImpl.java   |  8 +++----
 2 files changed, 16 insertions(+), 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/461209a9/contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/internal/dto/TableStats.java
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/internal/dto/TableStats.java
b/contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/internal/dto/TableStats.java
index 5d0f307..6af9359 100644
--- a/contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/internal/dto/TableStats.java
+++ b/contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/internal/dto/TableStats.java
@@ -34,11 +34,11 @@ public class TableStats {
 
   private DatabaseMetadataWrapper databaseMetadata;
   private Boolean isTableStatsEnabled;
-  private Integer numFiles;
-  private Integer numRows;
+  private Long numFiles;
+  private Long numRows;
   private String columnStatsAccurate;
-  private Integer rawDataSize;
-  private Integer totalSize;
+  private Long rawDataSize;
+  private Long totalSize;
 
   public Boolean getTableStatsEnabled() {
     return isTableStatsEnabled;
@@ -48,11 +48,11 @@ public class TableStats {
     isTableStatsEnabled = tableStatsEnabled;
   }
 
-  public Integer getNumFiles() {
+  public Long getNumFiles() {
     return numFiles;
   }
 
-  public void setNumFiles(Integer numFiles) {
+  public void setNumFiles(Long numFiles) {
     this.numFiles = numFiles;
   }
 
@@ -64,27 +64,27 @@ public class TableStats {
     this.columnStatsAccurate = columnStatsAccurate;
   }
 
-  public Integer getRawDataSize() {
+  public Long getRawDataSize() {
     return rawDataSize;
   }
 
-  public void setRawDataSize(Integer rawDataSize) {
+  public void setRawDataSize(Long rawDataSize) {
     this.rawDataSize = rawDataSize;
   }
 
-  public Integer getTotalSize() {
+  public Long getTotalSize() {
     return totalSize;
   }
 
-  public void setTotalSize(Integer totalSize) {
+  public void setTotalSize(Long totalSize) {
     this.totalSize = totalSize;
   }
 
-  public Integer getNumRows() {
+  public Long getNumRows() {
     return numRows;
   }
 
-  public void setNumRows(Integer numRows) {
+  public void setNumRows(Long numRows) {
     this.numRows = numRows;
   }
 

http://git-wip-us.apache.org/repos/asf/ambari/blob/461209a9/contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/internal/parsers/TableMetaParserImpl.java
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/internal/parsers/TableMetaParserImpl.java
b/contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/internal/parsers/TableMetaParserImpl.java
index 711cab9..ef1b464 100644
--- a/contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/internal/parsers/TableMetaParserImpl.java
+++ b/contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/internal/parsers/TableMetaParserImpl.java
@@ -102,22 +102,22 @@ public class TableMetaParserImpl implements TableMetaParser<TableMeta>
{
 
     if(!Strings.isNullOrEmpty(numFiles) && !Strings.isNullOrEmpty(numFiles.trim())){
       tableStats.setTableStatsEnabled(true);
-      tableStats.setNumFiles(Integer.valueOf(numFiles.trim()));
+      tableStats.setNumFiles(Long.valueOf(numFiles.trim()));
     }
 
     if(!Strings.isNullOrEmpty(numRows) && !Strings.isNullOrEmpty(numRows.trim())){
       tableStats.setTableStatsEnabled(true);
-      tableStats.setNumRows(Integer.valueOf(numRows.trim()));
+      tableStats.setNumRows(Long.valueOf(numRows.trim()));
     }
 
     if(!Strings.isNullOrEmpty(rawDataSize) && !Strings.isNullOrEmpty(rawDataSize.trim())){
       tableStats.setTableStatsEnabled(true);
-      tableStats.setRawDataSize(Integer.valueOf(rawDataSize.trim()));
+      tableStats.setRawDataSize(Long.valueOf(rawDataSize.trim()));
     }
 
     if(!Strings.isNullOrEmpty(totalSize) && !Strings.isNullOrEmpty(totalSize.trim())){
       tableStats.setTableStatsEnabled(true);
-      tableStats.setTotalSize(Integer.valueOf(totalSize.trim()));
+      tableStats.setTotalSize(Long.valueOf(totalSize.trim()));
     }
 
     if(!Strings.isNullOrEmpty(columnStatsAccurate) && !Strings.isNullOrEmpty(columnStatsAccurate.trim()))
{


Mime
View raw message