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 SegmentHeaderSegment. getHeader()static SegmentHeaderSegmentBuilder. 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 SegmentWithDataSegmentBuilder.SegmentConverter. convert(SegmentHeader header, SegmentBody body)SegmentWithDataSegmentBuilder.SegmentConverterImpl. convert(SegmentHeader header, SegmentBody body)SegmentWithDataSegmentBuilder.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.SegmentBodySegmentCacheWorker. get(SegmentHeader header)Returns a segment body corresponding to a header.SegmentBuilder.SegmentConverterSegmentCacheManager. 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 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 voidSegmentCacheIndex. 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)SegmentBodyMemorySegmentCache. 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)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 SegmentHeader Modifier and Type Method Description SegmentHeaderSegmentHeader. clone(SegmentColumn[] overrideValues)Creates a clone of this header by replacing some of the constrained columns in the process.SegmentHeaderSegmentHeader. 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.SegmentHeaderSegmentCache.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 SegmentBodySegmentCache. 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.
-