accumulator.clear();
currentCount = 0;
}
private long getLastAggregationTime(MigrationTable migratedTable) {
StatelessSession session = getSQLSession(migratorConfiguration);
long aggregationSlice = Integer.MAX_VALUE;
Duration duration = null;
String queryString = null;
if (MigrationTable.RAW.equals(migratedTable)) {
duration = metricsConfiguration.getRawTimeSliceDuration();
queryString = MigrationQuery.MAX_TIMESTAMP_1H_DATA.toString();
} else if (MigrationTable.ONE_HOUR.equals(migratedTable)) {
duration = metricsConfiguration.getOneHourTimeSliceDuration();
queryString = MigrationQuery.MAX_TIMESTAMP_6H_DATA.toString();
} else if (MigrationTable.SIX_HOUR.equals(migratedTable)) {
duration = metricsConfiguration.getSixHourTimeSliceDuration();
queryString = MigrationQuery.MAX_TIMESTAMP_1D_DATA.toString();
}
if (duration != null && queryString != null) {
Query query = session.createSQLQuery(queryString);
Long timeStamp;
Object result = query.uniqueResult();
if(result != null){
String queryResult = query.uniqueResult().toString();