org.sonar.batch.components
Class PastMeasuresLoader

java.lang.Object
  extended by org.sonar.batch.components.PastMeasuresLoader
All Implemented Interfaces:
BatchComponent, BatchExtension, Extension

public class PastMeasuresLoader
extends Object
implements BatchExtension


Constructor Summary
PastMeasuresLoader(DatabaseSession session, MetricFinder metricFinder)
           
 
Method Summary
static Integer getCharacteristicId(Object[] row)
           
static int getMetricId(Object[] row)
           
 Collection<Metric> getMetrics()
           
 List<Object[]> getPastMeasures(Resource resource, PastSnapshot projectPastSnapshot)
           
 List<Object[]> getPastMeasures(String resourceKey, Snapshot projectPastSnapshot)
           
static Integer getRuleId(Object[] row)
           
static double getValue(Object[] row)
           
static boolean hasValue(Object[] row)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PastMeasuresLoader

public PastMeasuresLoader(DatabaseSession session,
                          MetricFinder metricFinder)
Method Detail

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)

hasValue

public static boolean hasValue(Object[] row)

getValue

public static double getValue(Object[] row)


Copyright © 2009-2012 SonarSource. All Rights Reserved.