Uses of Class
mondrian.spi.SegmentHeader
-
Packages that use SegmentHeader 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. -
-
Uses of SegmentHeader in mondrian.rolap.agg
Methods in mondrian.rolap.agg that return SegmentHeader Modifier and Type Method Description SegmentHeader
Segment. getHeader()
static SegmentHeader
SegmentBuilder. toHeader(Segment segment)
Creates a SegmentHeader object describing the supplied Segment object.Methods in mondrian.rolap.agg that return types with arguments of type SegmentHeader Modifier and Type Method 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.Methods in mondrian.rolap.agg with parameters of type SegmentHeader Modifier and Type Method 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.Method parameters in mondrian.rolap.agg with type arguments of type SegmentHeader Modifier and Type Method 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. -
Uses of SegmentHeader in mondrian.rolap.cache
Methods in mondrian.rolap.cache that return types with arguments of type SegmentHeader Modifier and Type Method Description 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<List<SegmentHeader>>
SegmentCacheIndexImpl. findRollupCandidates(String schemaName, ByteString schemaChecksum, String cubeName, String measureName, String rolapStarFactTableName, BitKey constrainedColsBitKey, Map<String,Comparable> coordinates, List<String> compoundPredicates)
List<SegmentHeader>
MemorySegmentCache. getSegmentHeaders()
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. intersectRegion(String schemaName, ByteString schemaChecksum, String cubeName, String measureName, String rolapStarFactTableName, SegmentColumn[] region)
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.List<SegmentHeader>
SegmentCacheIndexImpl. locate(String schemaName, ByteString schemaChecksum, String cubeName, String measureName, String rolapStarFactTableName, BitKey constrainedColsBitKey, Map<String,Comparable> coordinates, List<String> compoundPredicates)
Methods in mondrian.rolap.cache with parameters of type SegmentHeader Modifier and Type Method Description void
SegmentCacheIndex. add(SegmentHeader header, SegmentBuilder.SegmentConverter converter, boolean loading)
Adds a header to the index.void
SegmentCacheIndexImpl. add(SegmentHeader header, SegmentBuilder.SegmentConverter converter, boolean loading)
boolean
MemorySegmentCache. contains(SegmentHeader header)
boolean
SegmentCacheIndex. contains(SegmentHeader header)
Tells whether or not a given segment is known to this index.boolean
SegmentCacheIndexImpl. contains(SegmentHeader header)
SegmentBody
MemorySegmentCache. get(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.Future<SegmentBody>
SegmentCacheIndexImpl. getFuture(Execution exec, SegmentHeader header)
void
SegmentCacheIndex. linkSqlStatement(SegmentHeader header, Statement stmt)
Allows to link aStatement
to a segment.void
SegmentCacheIndexImpl. linkSqlStatement(SegmentHeader header, Statement stmt)
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. loadFailed(SegmentHeader header, Throwable throwable)
void
SegmentCacheIndex. loadSucceeded(SegmentHeader header, SegmentBody body)
Changes the state of a header from loading to loaded.void
SegmentCacheIndexImpl. loadSucceeded(SegmentHeader header, SegmentBody body)
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)
boolean
MemorySegmentCache. remove(SegmentHeader header)
void
SegmentCacheIndex. remove(SegmentHeader header)
Removes a header from the index.void
SegmentCacheIndexImpl. remove(SegmentHeader header)
void
SegmentCacheIndex. update(SegmentHeader oldHeader, SegmentHeader newHeader)
Updates a header in the index.void
SegmentCacheIndexImpl. update(SegmentHeader oldHeader, SegmentHeader newHeader)
-
Uses of SegmentHeader in mondrian.spi
Methods in mondrian.spi that return SegmentHeader Modifier and Type Method 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.Methods in mondrian.spi that return types with arguments of type SegmentHeader Modifier and Type Method Description List<SegmentHeader>
SegmentCache. getSegmentHeaders()
Returns a list of all segments present in the cache.Methods in mondrian.spi with parameters of type SegmentHeader Modifier and Type Method 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.
-