|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.rolap.BatchLoader.LoadBatchResponse
static class BatchLoader.LoadBatchResponse
Request sent from cache manager to a worker to load segments into the cache, create segments by rolling up, and to wait for segments being loaded via SQL.
| Field Summary | |
|---|---|
(package private) List<SegmentHeader> |
cacheSegments
List of segments we are trying to load from the cache. |
(package private) List<CellRequest> |
cellRequests
List of cell requests that will be satisfied by segments we are trying to load from the cache (or create by rolling up). |
(package private) Map<List,SegmentBuilder.SegmentConverter> |
converterMap
|
(package private) Map<SegmentHeader,Future<SegmentBody>> |
futures
|
(package private) List<BatchLoader.RollupInfo> |
rollups
List of segments to be created from segments in the cache, provided that the cache segments come through. |
(package private) List<Future<Map<Segment,SegmentWithData>>> |
sqlSegmentMapFutures
List of segments that are being loaded using SQL. |
| Constructor Summary | |
|---|---|
BatchLoader.LoadBatchResponse(List<CellRequest> cellRequests,
List<SegmentHeader> cacheSegments,
List<BatchLoader.RollupInfo> rollups,
Map<List,SegmentBuilder.SegmentConverter> converterMap,
List<Future<Map<Segment,SegmentWithData>>> sqlSegmentMapFutures,
Map<SegmentHeader,Future<SegmentBody>> futures)
|
|
| Method Summary | |
|---|---|
SegmentWithData |
convert(SegmentHeader header,
SegmentBody body)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
final List<Future<Map<Segment,SegmentWithData>>> sqlSegmentMapFutures
Other workers are executing the SQL. When done, they will write a segment body or an error into the respective futures. The thread processing this request will wait on those futures, once all segments have successfully arrived from cache.
final List<SegmentHeader> cacheSegments
final List<CellRequest> cellRequests
final List<BatchLoader.RollupInfo> rollups
If they do not, we will need to tell the cache manager to remove the pending segments.
final Map<List,SegmentBuilder.SegmentConverter> converterMap
final Map<SegmentHeader,Future<SegmentBody>> futures
| Constructor Detail |
|---|
BatchLoader.LoadBatchResponse(List<CellRequest> cellRequests,
List<SegmentHeader> cacheSegments,
List<BatchLoader.RollupInfo> rollups,
Map<List,SegmentBuilder.SegmentConverter> converterMap,
List<Future<Map<Segment,SegmentWithData>>> sqlSegmentMapFutures,
Map<SegmentHeader,Future<SegmentBody>> futures)
| Method Detail |
|---|
public SegmentWithData convert(SegmentHeader header,
SegmentBody body)
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||