org.sonar.batch.components
Class PastMeasuresLoader
java.lang.Object
org.sonar.batch.components.PastMeasuresLoader
- All Implemented Interfaces:
- BatchComponent, BatchExtension, Extension
public class PastMeasuresLoader
- extends Object
- implements BatchExtension
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PastMeasuresLoader
public PastMeasuresLoader(DatabaseSession session,
MetricFinder metricFinder)
getMetrics
public Collection<Metric> getMetrics()
getPastMeasures
public List<Object[]> getPastMeasures(Resource resource,
PastSnapshot projectPastSnapshot)
getPastMeasures
public List<Object[]> getPastMeasures(String resourceKey,
Snapshot projectPastSnapshot)
getMetricId
public static int getMetricId(Object[] row)
getCharacteristicId
public static Integer getCharacteristicId(Object[] row)
getRuleId
public static Integer getRuleId(Object[] row)
getSeverityId
public static Integer getSeverityId(Object[] row)
hasValue
public static boolean hasValue(Object[] row)
getValue
public static double getValue(Object[] row)
Copyright © 2009-2011 SonarSource. All Rights Reserved.