public class CrosstabBucketingService extends BucketingService implements BucketingData
| Modifier and Type | Class and Description |
|---|---|
protected static class |
CrosstabBucketingService.CollectedList |
protected static class |
CrosstabBucketingService.CollectedListComparator |
protected static class |
CrosstabBucketingService.OrderedCollectedList |
protected static class |
CrosstabBucketingService.SequentialCollectedList |
BucketingService.BucketListMap, BucketingService.BucketMap, BucketingService.BucketMapMap, BucketingService.MapEntry| Modifier and Type | Field and Description |
|---|---|
protected CrosstabCell[][] |
cells |
protected HeaderCell[][] |
colHeaders |
static String |
EXCEPTION_MESSAGE_KEY_DATA_NOT_PROCESSED |
protected HeaderCell[][] |
rowHeaders |
allBuckets, buckets, bucketValueMap, colBucketCount, columnBucketMap, dataCount, DIMENSION_COLUMN, DIMENSION_ROW, DIMENSIONS, EXCEPTION_MESSAGE_KEY_BUCKET_DATA_PROCESSED, EXCEPTION_MESSAGE_KEY_BUCKET_MEASURE_LIMIT, measureIndexes, measures, origMeasureCount, processed, PROPERTY_BUCKET_MEASURE_LIMIT, retrieveTotal, rowBucketCount, rowRetrColMax, rowRetrTotalMax, rowRetrTotalMin, rowRetrTotals, serviceContext, sorted, zeroMeasureValues, zeroUserMeasureValues| Constructor and Description |
|---|
CrosstabBucketingService(BucketingServiceContext serviceContext,
List<BucketDefinition> rowBuckets,
List<BucketDefinition> columnBuckets,
List<MeasureDefinition> measures,
boolean sorted,
boolean[][] retrieveTotal) |
addData, addMeasure, bucketMeasuresCreated, checkBucketMeasureCount, checkTotals, clear, computeColumnTotal, computeRowTotals, computeTotals, createBucketMap, createBucketMapMap, createRowTotalsBucketMap, getBucketValues, getGrandTotals, getMeasureValues, getRowBuckets, getUserMeasureValues, getZeroUserMeasureValues, hasData, initMeasureValues, initUserMeasureValues, processData, sumValspublic static final String EXCEPTION_MESSAGE_KEY_DATA_NOT_PROCESSED
protected HeaderCell[][] colHeaders
protected HeaderCell[][] rowHeaders
protected CrosstabCell[][] cells
public CrosstabBucketingService(BucketingServiceContext serviceContext, List<BucketDefinition> rowBuckets, List<BucketDefinition> columnBuckets, List<MeasureDefinition> measures, boolean sorted, boolean[][] retrieveTotal)
public void createCrosstab()
throws JRException
JRExceptionprotected HeaderCell[][] createHeaders(byte dimension, CrosstabBucketingService.CollectedList[] headersLists, BucketingService.BucketMap totalsMap)
protected CrosstabBucketingService.CollectedList createHeadersList(byte dimension, BucketingService.BucketMap bucketMap, int level, boolean total) throws JRException
JRExceptionpublic MeasureDefinition.MeasureValue[] getMeasureTotals(BucketingService.BucketMap bucketMap, BucketDefinition.Bucket bucket)
getMeasureTotals in interface BucketingDataprotected void fillHeaders(byte dimension,
HeaderCell[][] headers,
int level,
int col,
CrosstabBucketingService.CollectedList list,
List<BucketDefinition.Bucket> vals,
BucketingService.BucketMap totalsMap)
protected MeasureDefinition.MeasureValue[][] retrieveHeaderTotals(byte dimension, BucketDefinition.Bucket[] values, BucketingService.BucketMap totalsMap)
protected void fillCells(CrosstabBucketingService.CollectedList[] collectedHeaders, BucketingService.BucketMap bucketMap, int level, int[] pos, List<BucketDefinition.Bucket> vals, List<BucketingService.BucketMap> bucketMaps)
protected void fillCell(int[] pos,
List<BucketDefinition.Bucket> vals,
List<BucketingService.BucketMap> bucketMaps,
MeasureDefinition.MeasureValue[] values)
protected MeasureDefinition.MeasureValue[][][] retrieveTotals(List<BucketDefinition.Bucket> vals, List<BucketingService.BucketMap> bucketMaps)
public HeaderCell[][] getColumnHeaders()
processData() has to be called before this.
public HeaderCell[][] getRowHeaders()
processData() has to be called before this.
public CrosstabCell[][] getCrosstabCells()
processData() has to be called before this.
public BucketingServiceContext getServiceContext()
getServiceContext in interface BucketingDatapublic BucketDefinition.Bucket getColumnTotalBucket(int columnGroupIndex)
getColumnTotalBucket in interface BucketingDatapublic BucketDefinition.Bucket getColumnBucket(int columnGroupIndex, Object value)
getColumnBucket in interface BucketingDatapublic MeasureDefinition.MeasureValue[] getMeasureValues(BucketingService.BucketMap bucketMap, BucketDefinition.Bucket bucket, List<BucketDefinition.Bucket> columnValues)
getMeasureValues in interface BucketingDataCopyright © 2017. All rights reserved.