}
protected BarrChartStatisticDatasBean generateAllMonthsVeiw(String key1,
String key2, String key3)
{
BarrChartStatisticDatasBean totalResolutBean = new BarrChartStatisticDatasBean(
key1, key2, key3);
totalResolutBean.setName(key2);
totalResolutBean.setHits(1);
try
{
FacetField times = solrResponse.getFacetDate("time");
String[][] data = new String[times.getValues().size()][2];
for (int i = 0; i < times.getValues().size(); i++)
{
data[i][0] = times.getValues().get(i).getName();
data[i][1] = String
.valueOf(times.getValues().get(i).getCount());
}
totalResolutBean.setDataTable(data);
}
catch (Exception e)
{
log.warn(e.getMessage());
totalResolutBean
.setDataTable(new String[][] { new String[] { _NotAvailable } });
}
return totalResolutBean;
}