Package org.teiid.metadata

Examples of org.teiid.metadata.ColumnStats


            TableStats stats = metadataRepository.getTableStats(vdbName, vdbVersion, t);
            if (stats != null) {
              t.setTableStats(stats);
            }
            for (Column c : t.getColumns()) {
              ColumnStats cStats = metadataRepository.getColumnStats(vdbName, vdbVersion, c);
              if (cStats != null) {
                c.setColumnStats(cStats);
              }
            }
          } else {
View Full Code Here


          }
          Integer distinctVals = (Integer)((Constant)proc.getParameter(3).getExpression()).getValue();
          Integer nullVals = (Integer)((Constant)proc.getParameter(4).getExpression()).getValue();
          String max = (String) ((Constant)proc.getParameter(5).getExpression()).getValue();
          String min = (String) ((Constant)proc.getParameter(6).getExpression()).getValue();
          ColumnStats columnStats = new ColumnStats();
          columnStats.setDistinctValues(distinctVals);
          columnStats.setNullValues(nullVals);
          columnStats.setMaximumValue(max);
          columnStats.setMinimumValue(min);
          if (this.metadataRepository != null) {
            this.metadataRepository.setColumnStats(vdbName, vdbVersion, c, columnStats);
          }
          c.setColumnStats(columnStats);
          if (eventDistributor != null) {
View Full Code Here

TOP

Related Classes of org.teiid.metadata.ColumnStats

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.