|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.rolap.agg.SegmentHeader
public class SegmentHeader
SegmentHeaders are the key objects used to retrieve the segments from the segment cache.
The segment header objects are immutable and fully serializable.
The headers have each an ID which is a SHA-256 checksum of the
following properties, concatenated. See
getUniqueID()
String.valueof([value object])
| Nested Class Summary | |
|---|---|
static class |
SegmentHeader.ConstrainedColumn
Constrained columns are part of the SegmentHeader and SegmentCache. |
| Constructor Summary | |
|---|---|
SegmentHeader(String schemaName,
String schemaChecksum,
String cubeName,
String measureName,
SegmentHeader.ConstrainedColumn[] constrainedColumns,
String[] compoundPredicates,
String rolapStarFactTableName,
BitKey constrainedColsBitKey)
Base constructor for segment headers. |
|
SegmentHeader(String schemaName,
String schemaChecksum,
String cubeName,
String measureName,
SegmentHeader.ConstrainedColumn[] constrainedColumns,
String rolapStarFactTableName,
BitKey constrainedColsBitKey)
Base constructor for segment headers. |
|
| Method Summary | |
|---|---|
SegmentHeader |
clone(SegmentHeader.ConstrainedColumn[] overrideValues)
Creates a clone of this header by replacing some of the constrained columns in the process. |
boolean |
equals(Object obj)
|
static SegmentHeader.ConstrainedColumn[] |
forCacheRegion(RolapCacheRegion region)
|
static SegmentHeader |
forSegment(Segment segment,
List<StarPredicate> compoundPredicates)
Creates a SegmentHeader object describing the supplied Segment object. |
int |
getArity()
Returns the arity of this SegmentHeader. |
SegmentHeader.ConstrainedColumn |
getConstrainedColumn(String columnExpression)
Returns the constrained column object, if any, corresponding to a column name and a table name. |
SegmentHeader.ConstrainedColumn[] |
getConstrainedColumns()
Returns an array of constrained columns which define this segment header. |
BitKey |
getConstrainedColumnsBitKey()
|
String |
getDescription()
Returns a human readable description of this segment header. |
String |
getUniqueID()
Returns a unique identifier for this header. |
int |
hashCode()
|
boolean |
isSubset(Segment segment)
Tells if the passed segment is a subset of this segment and could be used for a rollup in cache operation. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SegmentHeader(String schemaName,
String schemaChecksum,
String cubeName,
String measureName,
SegmentHeader.ConstrainedColumn[] constrainedColumns,
String rolapStarFactTableName,
BitKey constrainedColsBitKey)
schemaName - The name of the schema which this
header belongs to.cubeName - The name of the cube this segment belongs to.measureName - The name of the measure which defines
this header.constrainedColumns - An array of constrained columns
objects which define the predicated of this segment header.
public SegmentHeader(String schemaName,
String schemaChecksum,
String cubeName,
String measureName,
SegmentHeader.ConstrainedColumn[] constrainedColumns,
String[] compoundPredicates,
String rolapStarFactTableName,
BitKey constrainedColsBitKey)
schemaName - The name of the schema which this
header belongs to.cubeName - The name of the cube this segment belongs to.measureName - The name of the measure which defines
this header.constrainedColumns - An array of constrained columns
objects which define the predicated of this segment header.| Method Detail |
|---|
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic static SegmentHeader.ConstrainedColumn[] forCacheRegion(RolapCacheRegion region)
public static SegmentHeader forSegment(Segment segment,
List<StarPredicate> compoundPredicates)
segment - A segment object for which we want to generate
a SegmentHeader.
public SegmentHeader clone(SegmentHeader.ConstrainedColumn[] overrideValues)
overrideValues - A list of constrained columns to either
replace or add to the original header.
public String toString()
toString in class Objectpublic int getArity()
public SegmentHeader.ConstrainedColumn[] getConstrainedColumns()
public SegmentHeader.ConstrainedColumn getConstrainedColumn(String columnExpression)
columnExpression - The column name we want.
public BitKey getConstrainedColumnsBitKey()
public boolean isSubset(Segment segment)
segment - A segment which might be a subset of the
current segment.
public String getUniqueID()
public String getDescription()
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||