public class CellRequest extends Object
CellRequest
contains the context necessary to get a cell
value from a star.Modifier and Type | Field and Description |
---|---|
boolean |
drillThrough |
boolean |
extendedContext |
Constructor and Description |
---|
CellRequest(RolapStar.Measure measure,
boolean extendedContext,
boolean drillThrough)
Creates a
CellRequest . |
Modifier and Type | Method and Description |
---|---|
void |
addAggregateList(BitKey compoundBitKey,
StarPredicate compoundPredicate)
Add compound member (formed via aggregate function) constraint to the
Cell.
|
void |
addConstrainedColumn(RolapStar.Column column,
StarColumnPredicate predicate)
Adds a constraint to this request.
|
void |
addPredicateString(String predicateString) |
List<String> |
getCompoundPredicateStrings() |
RolapStar.Column[] |
getConstrainedColumns() |
BitKey |
getConstrainedColumnsBitKey()
Returns the BitKey for the list of columns.
|
Map<String,Comparable> |
getMappedCellValues()
Builds a map of column names to values, as specified
by this cell request object.
|
RolapStar.Measure |
getMeasure()
Returns the measure of this cell request.
|
int |
getNumValues()
Return the number of column constraints associated with this CellRequest.
|
Object[] |
getSingleValues()
Returns an array of the values for each column.
|
StarColumnPredicate |
getValueAt(int index)
Return the predicate value associated with the given index.
|
boolean |
isUnsatisfiable()
Returns whether this cell request is impossible to satisfy.
|
public final boolean extendedContext
public final boolean drillThrough
public CellRequest(RolapStar.Measure measure, boolean extendedContext, boolean drillThrough)
CellRequest
.measure
- Measure the request is forextendedContext
- If a drill-through request, whether to join in
unconstrained levels so as to display extra columnsdrillThrough
- Whether this is a request for a drill-through setpublic final void addConstrainedColumn(RolapStar.Column column, StarColumnPredicate predicate)
column
- Column to constraintpredicate
- Constraint to apply, or null to add column to the
output without applying constraintpublic void addAggregateList(BitKey compoundBitKey, StarPredicate compoundPredicate)
compoundBitKey
- Compound bit keycompoundPredicate
- Compound predicatepublic void addPredicateString(String predicateString)
public RolapStar.Measure getMeasure()
public RolapStar.Column[] getConstrainedColumns()
public BitKey getConstrainedColumnsBitKey()
public StarColumnPredicate getValueAt(int index)
It is valid for the predicate at a given index to be null (there should always be a column at that index, but it may not have an associated predicate).
index
- Index of the constraint we're looking uppublic int getNumValues()
public Object[] getSingleValues()
The caller must check whether this request is satisfiable before
calling this method. May throw NullPointerException
if request
is not satisfiable.
public Map<String,Comparable> getMappedCellValues()
public boolean isUnsatisfiable()
Copyright © 2018 Hitachi Vantara. All rights reserved.