Uses of Class
mondrian.spi.SegmentHeader
Packages that use SegmentHeader
Package
Description
Manages a cache of aggregates containing cell values.
Provides primitives for policy-based caching.
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 SegmentHeaderModifier and TypeMethodDescriptionSegment.getHeader()static SegmentHeaderCreates a SegmentHeader object describing the supplied Segment object.Methods in mondrian.rolap.agg that return types with arguments of type SegmentHeaderModifier and TypeMethodDescriptionSegmentCacheWorker.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 SegmentHeaderModifier and TypeMethodDescriptionSegmentBuilder.SegmentConverter.convert(SegmentHeader header, SegmentBody body) SegmentBuilder.SegmentConverterImpl.convert(SegmentHeader header, SegmentBody body) SegmentBuilder.StarSegmentConverter.convert(SegmentHeader header, SegmentBody body) voidSegmentCacheManager.externalSegmentCreated(SegmentHeader header, MondrianServer server) Tells the cache that a segment is newly available in an external cache.voidSegmentCacheManager.externalSegmentDeleted(SegmentHeader header, MondrianServer server) Tells the cache that a segment is no longer available in an external cache.SegmentCacheWorker.get(SegmentHeader header) Returns a segment body corresponding to a header.SegmentCacheManager.getConverter(RolapStar star, SegmentHeader header) static booleanSegmentBuilder.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.voidSegmentCacheManager.loadFailed(RolapStar star, SegmentHeader header, Throwable throwable) Informs cache manager that a segment load failed.voidSegmentCacheManager.loadSucceeded(RolapStar star, SegmentHeader header, SegmentBody body) Adds a segment to segment index.voidSegmentCacheWorker.put(SegmentHeader header, SegmentBody body) Places a segment in the cache.voidSegmentCacheManager.remove(RolapStar star, SegmentHeader header) Removes a segment from segment index.booleanSegmentCacheWorker.remove(SegmentHeader header) Removes a segment from the cache.static SegmentSegmentBuilder.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 SegmentHeaderModifier and TypeMethodDescriptionstatic 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 SegmentHeaderModifier and TypeMethodDescriptionSegmentCacheIndex.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.SegmentCacheIndexImpl.findRollupCandidates(String schemaName, ByteString schemaChecksum, String cubeName, String measureName, String rolapStarFactTableName, BitKey constrainedColsBitKey, Map<String, Comparable> coordinates, List<String> compoundPredicates) MemorySegmentCache.getSegmentHeaders()SegmentCacheIndex.intersectRegion(String schemaName, ByteString schemaChecksum, String cubeName, String measureName, String rolapStarFactTableName, SegmentColumn[] region) Finds a list of headers that intersect a given region.SegmentCacheIndexImpl.intersectRegion(String schemaName, ByteString schemaChecksum, String cubeName, String measureName, String rolapStarFactTableName, SegmentColumn[] region) 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.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 SegmentHeaderModifier and TypeMethodDescriptionvoidSegmentCacheIndex.add(SegmentHeader header, SegmentBuilder.SegmentConverter converter, boolean loading) Adds a header to the index.voidSegmentCacheIndexImpl.add(SegmentHeader header, SegmentBuilder.SegmentConverter converter, boolean loading) booleanMemorySegmentCache.contains(SegmentHeader header) booleanSegmentCacheIndex.contains(SegmentHeader header) Tells whether or not a given segment is known to this index.booleanSegmentCacheIndexImpl.contains(SegmentHeader header) MemorySegmentCache.get(SegmentHeader header) SegmentCacheIndex.getFuture(Execution exec, SegmentHeader header) Returns a future slot for a segment body, if a segment is currently loading, otherwise null.SegmentCacheIndexImpl.getFuture(Execution exec, SegmentHeader header) voidSegmentCacheIndex.linkSqlStatement(SegmentHeader header, Statement stmt) Allows to link aStatementto a segment.voidSegmentCacheIndexImpl.linkSqlStatement(SegmentHeader header, Statement stmt) voidSegmentCacheIndex.loadFailed(SegmentHeader header, Throwable throwable) Notifies the segment index that a segment failed to load, and removes the segment from the index.voidSegmentCacheIndexImpl.loadFailed(SegmentHeader header, Throwable throwable) voidSegmentCacheIndex.loadSucceeded(SegmentHeader header, SegmentBody body) Changes the state of a header from loading to loaded.voidSegmentCacheIndexImpl.loadSucceeded(SegmentHeader header, SegmentBody body) static ListSegmentCacheIndexImpl.makeConverterKey(SegmentHeader header) static booleanSegmentCacheIndexImpl.matches(SegmentHeader header, Map<String, Comparable> coords, List<String> compoundPredicates) booleanMemorySegmentCache.put(SegmentHeader header, SegmentBody body) booleanMemorySegmentCache.remove(SegmentHeader header) voidSegmentCacheIndex.remove(SegmentHeader header) Removes a header from the index.voidSegmentCacheIndexImpl.remove(SegmentHeader header) voidSegmentCacheIndex.update(SegmentHeader oldHeader, SegmentHeader newHeader) Updates a header in the index.voidSegmentCacheIndexImpl.update(SegmentHeader oldHeader, SegmentHeader newHeader) -
Uses of SegmentHeader in mondrian.spi
Methods in mondrian.spi that return SegmentHeaderModifier and TypeMethodDescriptionSegmentHeader.clone(SegmentColumn[] overrideValues) Creates a clone of this header by replacing some of the constrained columns in the process.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.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 SegmentHeaderModifier and TypeMethodDescriptionSegmentCache.getSegmentHeaders()Returns a list of all segments present in the cache.Methods in mondrian.spi with parameters of type SegmentHeaderModifier and TypeMethodDescriptionSegmentCache.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.booleanSegmentCache.put(SegmentHeader header, SegmentBody body) Stores a segment data in the cache.booleanSegmentCache.remove(SegmentHeader header) Removes a segment from the cache.