public class BatchLoader.Batch extends Object
Modifier and Type | Field and Description |
---|---|
(package private) AggregationKey |
batchKey |
(package private) RolapStar.Column[] |
columns |
(package private) List<RolapStar.Measure> |
measuresList |
(package private) Set<StarColumnPredicate>[] |
valueSets |
Constructor and Description |
---|
Batch(CellRequest request) |
Modifier and Type | Method and Description |
---|---|
void |
add(CellRequest request) |
(package private) boolean |
canBatch(BatchLoader.Batch other)
Returns whether another Batch can be batched to this Batch.
|
SegmentCacheManager |
getCacheMgr() |
BitKey |
getConstrainedColumnsBitKey() |
(package private) RolapStar.Measure |
getFirstDistinctMeasure(List<RolapStar.Measure> measuresList)
Returns the first measure based upon a distinct aggregation, or null
if there is none.
|
(package private) boolean |
hasDistinctCountMeasure() |
(package private) boolean |
hasOverlappingBitKeys(BatchLoader.Batch other) |
(package private) boolean |
hasSameCompoundPredicate(BatchLoader.Batch other) |
(package private) boolean |
haveSameClosureColumns(BatchLoader.Batch other)
Returns whether this batch has the same closure columns as another.
|
(package private) boolean |
haveSameStarAndAggregation(BatchLoader.Batch other) |
(package private) boolean |
haveSameValues(BatchLoader.Batch other)
Return whether have same values for overlapping columns or
has all children for others.
|
(package private) void |
loadAggregation(GroupingSetsCollector groupingSetsCollector,
List<Future<Map<Segment,SegmentWithData>>> segmentFutures) |
void |
loadAggregation(List<Future<Map<Segment,SegmentWithData>>> segmentFutures) |
String |
toString() |
final RolapStar.Column[] columns
final List<RolapStar.Measure> measuresList
final Set<StarColumnPredicate>[] valueSets
final AggregationKey batchKey
public Batch(CellRequest request)
public final void add(CellRequest request)
public BitKey getConstrainedColumnsBitKey()
public SegmentCacheManager getCacheMgr()
public final void loadAggregation(List<Future<Map<Segment,SegmentWithData>>> segmentFutures)
final void loadAggregation(GroupingSetsCollector groupingSetsCollector, List<Future<Map<Segment,SegmentWithData>>> segmentFutures)
final RolapStar.Measure getFirstDistinctMeasure(List<RolapStar.Measure> measuresList)
boolean canBatch(BatchLoader.Batch other)
This is possible if:
boolean hasOverlappingBitKeys(BatchLoader.Batch other)
boolean hasDistinctCountMeasure()
boolean hasSameCompoundPredicate(BatchLoader.Batch other)
boolean haveSameStarAndAggregation(BatchLoader.Batch other)
boolean haveSameClosureColumns(BatchLoader.Batch other)
Ensures that we do not group together a batch that includes a level of a parent-child closure dimension with a batch that does not. It is not safe to roll up from a parent-child closure level; due to multiple accounting, the 'all' level is less than the sum of the members of the closure level.
other
- Other batchboolean haveSameValues(BatchLoader.Batch other)