Package | Description |
---|---|
mondrian.rolap.agg |
Manages a cache of aggregates containing cell values.
|
mondrian.rolap.cache |
Provides primitives for policy-based caching.
|
mondrian.spi |
Contains the server-provider interfaces (SPIs) which user-defined
extensions to Mondrian should implement.
|
Modifier and Type | Method and Description |
---|---|
SegmentHeader |
Segment.getHeader() |
static SegmentHeader |
SegmentBuilder.toHeader(Segment segment)
Creates a SegmentHeader object describing the supplied
Segment object.
|
Modifier and Type | Method and Description |
---|---|
List<SegmentHeader> |
SegmentCacheWorker.getSegmentHeaders()
Returns a list of segments present in the cache.
|
static Pair<SegmentHeader,SegmentBody> |
SegmentBuilder.rollup(Map<SegmentHeader,SegmentBody> map,
Set<String> keepColumns,
BitKey targetBitkey,
Aggregator rollupAggregator,
Dialect.Datatype datatype)
Given a collection of segments, all of the same dimensionality, rolls up
to create a segment with reduced dimensionality.
|
Modifier and Type | Method and Description |
---|---|
SegmentWithData |
SegmentBuilder.SegmentConverter.convert(SegmentHeader header,
SegmentBody body) |
SegmentWithData |
SegmentBuilder.SegmentConverterImpl.convert(SegmentHeader header,
SegmentBody body) |
SegmentWithData |
SegmentBuilder.StarSegmentConverter.convert(SegmentHeader header,
SegmentBody body) |
void |
SegmentCacheManager.externalSegmentCreated(SegmentHeader header,
MondrianServer server)
Tells the cache that a segment is newly available in an external cache.
|
void |
SegmentCacheManager.externalSegmentDeleted(SegmentHeader header,
MondrianServer server)
Tells the cache that a segment is no longer available in an external
cache.
|
SegmentBody |
SegmentCacheWorker.get(SegmentHeader header)
Returns a segment body corresponding to a header.
|
SegmentBuilder.SegmentConverter |
SegmentCacheManager.getConverter(RolapStar star,
SegmentHeader header) |
static boolean |
SegmentBuilder.isSubset(SegmentHeader header,
Segment segment)
Tells if the passed segment is a subset of this segment
and could be used for a rollup in cache operation.
|
void |
SegmentCacheManager.loadFailed(RolapStar star,
SegmentHeader header,
Throwable throwable)
Informs cache manager that a segment load failed.
|
void |
SegmentCacheManager.loadSucceeded(RolapStar star,
SegmentHeader header,
SegmentBody body)
Adds a segment to segment index.
|
void |
SegmentCacheWorker.put(SegmentHeader header,
SegmentBody body)
Places a segment in the cache.
|
void |
SegmentCacheManager.remove(RolapStar star,
SegmentHeader header)
Removes a segment from segment index.
|
boolean |
SegmentCacheWorker.remove(SegmentHeader header)
Removes a segment from the cache.
|
static Segment |
SegmentBuilder.toSegment(SegmentHeader header,
RolapStar star,
BitKey constrainedColumnsBitKey,
RolapStar.Column[] constrainedColumns,
RolapStar.Measure measure,
List<StarPredicate> compoundPredicates)
Creates a segment from a SegmentHeader.
|
Modifier and Type | Method and Description |
---|---|
static Pair<SegmentHeader,SegmentBody> |
SegmentBuilder.rollup(Map<SegmentHeader,SegmentBody> map,
Set<String> keepColumns,
BitKey targetBitkey,
Aggregator rollupAggregator,
Dialect.Datatype datatype)
Given a collection of segments, all of the same dimensionality, rolls up
to create a segment with reduced dimensionality.
|
Modifier and Type | Method and Description |
---|---|
List<List<SegmentHeader>> |
SegmentCacheIndexImpl.findRollupCandidates(String schemaName,
ByteString schemaChecksum,
String cubeName,
String measureName,
String rolapStarFactTableName,
BitKey constrainedColsBitKey,
Map<String,Comparable> coordinates,
List<String> compoundPredicates) |
List<List<SegmentHeader>> |
SegmentCacheIndex.findRollupCandidates(String schemaName,
ByteString schemaChecksum,
String cubeName,
String measureName,
String rolapStarFactTableName,
BitKey constrainedColsBitKey,
Map<String,Comparable> coordinates,
List<String> compoundPredicates)
Returns a list of segments that can be rolled up to satisfy a given
cell request.
|
List<SegmentHeader> |
MemorySegmentCache.getSegmentHeaders() |
List<SegmentHeader> |
SegmentCacheIndexImpl.intersectRegion(String schemaName,
ByteString schemaChecksum,
String cubeName,
String measureName,
String rolapStarFactTableName,
SegmentColumn[] region) |
List<SegmentHeader> |
SegmentCacheIndex.intersectRegion(String schemaName,
ByteString schemaChecksum,
String cubeName,
String measureName,
String rolapStarFactTableName,
SegmentColumn[] region)
Finds a list of headers that intersect a given region.
|
List<SegmentHeader> |
SegmentCacheIndexImpl.locate(String schemaName,
ByteString schemaChecksum,
String cubeName,
String measureName,
String rolapStarFactTableName,
BitKey constrainedColsBitKey,
Map<String,Comparable> coordinates,
List<String> compoundPredicates) |
List<SegmentHeader> |
SegmentCacheIndex.locate(String schemaName,
ByteString schemaChecksum,
String cubeName,
String measureName,
String rolapStarFactTableName,
BitKey constrainedColsBitKey,
Map<String,Comparable> coordinates,
List<String> compoundPredicates)
Identifies the segment headers that contain a given cell.
|
Modifier and Type | Method and Description |
---|---|
void |
SegmentCacheIndexImpl.add(SegmentHeader header,
SegmentBuilder.SegmentConverter converter,
boolean loading) |
void |
SegmentCacheIndex.add(SegmentHeader header,
SegmentBuilder.SegmentConverter converter,
boolean loading)
Adds a header to the index.
|
boolean |
SegmentCacheIndexImpl.contains(SegmentHeader header) |
boolean |
SegmentCacheIndex.contains(SegmentHeader header)
Tells whether or not a given segment is known to this index.
|
boolean |
MemorySegmentCache.contains(SegmentHeader header) |
SegmentBody |
MemorySegmentCache.get(SegmentHeader header) |
Future<SegmentBody> |
SegmentCacheIndexImpl.getFuture(Execution exec,
SegmentHeader header) |
Future<SegmentBody> |
SegmentCacheIndex.getFuture(Execution exec,
SegmentHeader header)
Returns a future slot for a segment body, if a segment is currently
loading, otherwise null.
|
void |
SegmentCacheIndexImpl.linkSqlStatement(SegmentHeader header,
Statement stmt) |
void |
SegmentCacheIndex.linkSqlStatement(SegmentHeader header,
Statement stmt)
Allows to link a
Statement to a segment. |
void |
SegmentCacheIndexImpl.loadFailed(SegmentHeader header,
Throwable throwable) |
void |
SegmentCacheIndex.loadFailed(SegmentHeader header,
Throwable throwable)
Notifies the segment index that a segment failed to load, and removes the
segment from the index.
|
void |
SegmentCacheIndexImpl.loadSucceeded(SegmentHeader header,
SegmentBody body) |
void |
SegmentCacheIndex.loadSucceeded(SegmentHeader header,
SegmentBody body)
Changes the state of a header from loading to loaded.
|
static List |
SegmentCacheIndexImpl.makeConverterKey(SegmentHeader header) |
static boolean |
SegmentCacheIndexImpl.matches(SegmentHeader header,
Map<String,Comparable> coords,
List<String> compoundPredicates) |
boolean |
MemorySegmentCache.put(SegmentHeader header,
SegmentBody body) |
void |
SegmentCacheIndexImpl.remove(SegmentHeader header) |
void |
SegmentCacheIndex.remove(SegmentHeader header)
Removes a header from the index.
|
boolean |
MemorySegmentCache.remove(SegmentHeader header) |
void |
SegmentCacheIndexImpl.update(SegmentHeader oldHeader,
SegmentHeader newHeader) |
void |
SegmentCacheIndex.update(SegmentHeader oldHeader,
SegmentHeader newHeader)
Updates a header in the index.
|
Modifier and Type | Method and Description |
---|---|
SegmentHeader |
SegmentHeader.clone(SegmentColumn[] overrideValues)
Creates a clone of this header by replacing some of the
constrained columns in the process.
|
SegmentHeader |
SegmentHeader.constrain(SegmentColumn[] region)
Applies a set of exclusions to this segment header and returns
a new segment header representing the original one to which a
region has been excluded.
|
SegmentHeader |
SegmentCache.SegmentCacheListener.SegmentCacheEvent.getSource()
Returns the segment header at the source of the event.
|
Modifier and Type | Method and Description |
---|---|
List<SegmentHeader> |
SegmentCache.getSegmentHeaders()
Returns a list of all segments present in the cache.
|
Modifier and Type | Method and Description |
---|---|
SegmentBody |
SegmentCache.get(SegmentHeader header)
Returns a SegmentBody once the
cache has returned any results, or null if no
segment corresponding to the header could be found.
|
boolean |
SegmentCache.put(SegmentHeader header,
SegmentBody body)
Stores a segment data in the cache.
|
boolean |
SegmentCache.remove(SegmentHeader header)
Removes a segment from the cache.
|
Copyright © 2020 Hitachi Vantara. All rights reserved.