stringStats.setAvgColLen(mStatsObj.getAvgColLen()); stringStats.setMaxColLen(mStatsObj.getMaxColLen()); stringStats.setNumDVs(mStatsObj.getNumDVs()); stringStats.setBitVectors((mStatsObj.getBitVector()==null||!enableBitVector)? null : mStatsObj.getBitVector()); colStatsData.setStringStats(stringStats); longStats.setLowValue(longLowValue); longStats.setNumDVs(mStatsObj.getNumDVs()); longStats.setBitVectors((mStatsObj.getBitVector()==null||!enableBitVector)? null : mStatsObj.getBitVector()); colStatsData.setLongStats(longStats); doubleStats.setLowValue(doubleLowValue); doubleStats.setNumDVs(mStatsObj.getNumDVs()); doubleStats.setBitVectors((mStatsObj.getBitVector()==null||!enableBitVector)? null : mStatsObj.getBitVector()); colStatsData.setDoubleStats(doubleStats); decimalStats.setLowValue(DecimalUtils.createThriftDecimal(decimalLowValue)); decimalStats.setNumDVs(mStatsObj.getNumDVs()); decimalStats.setBitVectors((mStatsObj.getBitVector()==null||!enableBitVector)? null : mStatsObj.getBitVector()); colStatsData.setDecimalStats(decimalStats); dateStats.setNumDVs(mStatsObj.getNumDVs()); dateStats.setBitVectors((mStatsObj.getBitVector()==null||!enableBitVector)? null : mStatsObj.getBitVector()); colStatsData.setDateStats(dateStats);
stringStats.setAvgColLen(mStatsObj.getAvgColLen()); stringStats.setMaxColLen(mStatsObj.getMaxColLen()); stringStats.setNumDVs(mStatsObj.getNumDVs()); colStatsData.setStringStats(stringStats); } else if (colType.equalsIgnoreCase("binary")) { longStats.setHighValue(mStatsObj.getLongHighValue()); longStats.setLowValue(mStatsObj.getLongLowValue()); longStats.setNumDVs(mStatsObj.getNumDVs()); colStatsData.setLongStats(longStats); } else if (colType.equalsIgnoreCase("double") || colType.equalsIgnoreCase("float")) { doubleStats.setHighValue(mStatsObj.getDoubleHighValue()); doubleStats.setLowValue(mStatsObj.getDoubleLowValue()); doubleStats.setNumDVs(mStatsObj.getNumDVs()); colStatsData.setDoubleStats(doubleStats);
stringStats.setAvgColLen(mStatsObj.getAvgColLen()); stringStats.setMaxColLen(mStatsObj.getMaxColLen()); stringStats.setNumDVs(mStatsObj.getNumDVs()); colStatsData.setStringStats(stringStats); } else if (colType.equals("binary")) { longStats.setLowValue(longLowValue); longStats.setNumDVs(mStatsObj.getNumDVs()); colStatsData.setLongStats(longStats); } else if (colType.equals("double") || colType.equals("float")) { doubleStats.setLowValue(doubleLowValue); doubleStats.setNumDVs(mStatsObj.getNumDVs()); colStatsData.setDoubleStats(doubleStats); } else if (colType.startsWith("decimal")) { decimalStats.setLowValue(createThriftDecimal(decimalLowValue)); decimalStats.setNumDVs(mStatsObj.getNumDVs()); colStatsData.setDecimalStats(decimalStats); } else if (colType.equals("date")) { dateStats.setLowValue(new Date(lowValue)); dateStats.setNumDVs(mStatsObj.getNumDVs()); colStatsData.setDateStats(dateStats);
stringStats.setAvgColLen(mStatsObj.getAvgColLen()); stringStats.setMaxColLen(mStatsObj.getMaxColLen()); stringStats.setNumDVs(mStatsObj.getNumDVs()); colStatsData.setStringStats(stringStats); } else if (colType.equals("binary")) { longStats.setLowValue(longLowValue); longStats.setNumDVs(mStatsObj.getNumDVs()); colStatsData.setLongStats(longStats); } else if (colType.equals("double") || colType.equals("float")) { doubleStats.setLowValue(doubleLowValue); doubleStats.setNumDVs(mStatsObj.getNumDVs()); colStatsData.setDoubleStats(doubleStats); } else if (colType.startsWith("decimal")) { decimalStats.setLowValue(createThriftDecimal(decimalLowValue)); decimalStats.setNumDVs(mStatsObj.getNumDVs()); colStatsData.setDecimalStats(decimalStats); } else if (colType.equals("date")) { dateStats.setLowValue(new Date(lowValue)); dateStats.setNumDVs(mStatsObj.getNumDVs()); colStatsData.setDateStats(dateStats);
oldStatsObj.setDoubleLowValue(mStatsObj.getDoubleLowValue()); oldStatsObj.setMaxColLen(mStatsObj.getMaxColLen()); oldStatsObj.setNumDVs(mStatsObj.getNumDVs()); oldStatsObj.setNumFalses(mStatsObj.getNumFalses()); oldStatsObj.setNumTrues(mStatsObj.getNumTrues());