本文整理汇总了Java中mondrian.rolap.RolapStar.Column方法的典型用法代码示例。如果您正苦于以下问题:Java RolapStar.Column方法的具体用法?Java RolapStar.Column怎么用?Java RolapStar.Column使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mondrian.rolap.RolapStar
的用法示例。
在下文中一共展示了RolapStar.Column方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ListPredicate
import mondrian.rolap.RolapStar; //导入方法依赖的package包/类
protected ListPredicate(List<StarPredicate> predicateList) {
columnBitKey = null;
childrenHashMap = null;
hashValue = 0;
for (StarPredicate predicate : predicateList) {
if (columnBitKey == null) {
columnBitKey =
predicate.getConstrainedColumnBitKey().copy();
} else {
columnBitKey =
columnBitKey.or(predicate.getConstrainedColumnBitKey());
}
children.add(predicate);
for (RolapStar.Column column
: predicate.getConstrainedColumnList())
{
if (!columns.contains(column)) {
columns.add(column);
}
}
}
}
示例2: lookupInChildren
import mondrian.rolap.RolapStar; //导入方法依赖的package包/类
protected RolapStar.Column lookupInChildren(
final RolapStar.Table table,
final String factColumnName)
{
// This can happen if we are looking at a collapsed dimension
// table, and the collapsed dimension in question in the
// fact table is a snowflake (not just a star), so we
// must look deeper...
for (RolapStar.Table child : table.getChildren()) {
RolapStar.Column rc = child.lookupColumn(factColumnName);
if (rc != null) {
return rc;
} else {
rc = lookupInChildren(child, factColumnName);
if (rc != null) {
return rc;
}
}
}
return null;
}
示例3: AbstractColumnPredicate
import mondrian.rolap.RolapStar; //导入方法依赖的package包/类
/**
* Creates an AbstractColumnPredicate.
*
* @param constrainedColumn Constrained column
*/
protected AbstractColumnPredicate(RolapStar.Column constrainedColumn) {
this.constrainedColumn = constrainedColumn;
/*
* Check if contraintedColumns are null.
* (Example: FastBatchingCellReader.testAggregateDistinctCount5()).
*/
if (constrainedColumn != null && constrainedColumn.getTable() != null) {
constrainedColumnBitKey =
BitKey.Factory.makeBitKey(
constrainedColumn.getStar().getColumnCount());
constrainedColumnBitKey.clear();
constrainedColumnBitKey.set(constrainedColumn.getBitPosition());
} else {
constrainedColumnBitKey = null;
}
}
示例4: RangeColumnPredicate
import mondrian.rolap.RolapStar; //导入方法依赖的package包/类
/**
* Creates a RangeColumnPredicate.
*
* @param column Constrained column
* @param lowerInclusive Whether range includes the lower bound;
* must be false if not bounded below
* @param lowerBound Lower bound, or null if not bounded below
* @param upperInclusive Whether range includes the upper bound;
* must be false if not bounded above
* @param upperBound Upper bound, or null if not bounded above
*/
public RangeColumnPredicate(
RolapStar.Column column,
boolean lowerInclusive,
ValueColumnPredicate lowerBound,
boolean upperInclusive,
ValueColumnPredicate upperBound)
{
super(column);
assert lowerBound == null
|| lowerBound.getConstrainedColumn() == column;
assert !(lowerBound == null && lowerInclusive);
assert upperBound == null
|| upperBound.getConstrainedColumn() == column;
assert !(upperBound == null && upperInclusive);
this.lowerInclusive = lowerInclusive;
this.lowerBound = lowerBound;
this.upperInclusive = upperInclusive;
this.upperBound = upperBound;
}
示例5: getColumn
import mondrian.rolap.RolapStar; //导入方法依赖的package包/类
public AggStar.Table.Column getColumn(final int i) {
RolapStar.Column[] columns = segment0.getColumns();
int bitPos = columns[i].getBitPosition();
AggStar.Table.Column column = aggStar.lookupColumn(bitPos);
// this should never happen
if (column == null) {
LOGGER.error("column null for bitPos=" + bitPos);
}
return column;
}
示例6: addGroupingSets
import mondrian.rolap.RolapStar; //导入方法依赖的package包/类
private void addGroupingSets(SqlQuery sqlQuery) {
List<RolapStar.Column[]> groupingSetsColumns =
groupingSetsList.getGroupingSetsColumns();
for (RolapStar.Column[] groupingSetColumns : groupingSetsColumns) {
ArrayList<String> groupingColumnsExpr = new ArrayList<String>();
for (RolapStar.Column aColumnArr : groupingSetColumns) {
groupingColumnsExpr.add(findColumnExpr(aColumnArr, sqlQuery));
}
sqlQuery.addGroupingSet(groupingColumnsExpr);
}
}
示例7: includeInSelect
import mondrian.rolap.RolapStar; //导入方法依赖的package包/类
public boolean includeInSelect(RolapStar.Column column) {
if (drillThroughColumns.size() == 0
&& drillThroughMeasures.size() == 0)
{
return true;
}
return drillThroughColumns.contains(column);
}
示例8: AggGen
import mondrian.rolap.RolapStar; //导入方法依赖的package包/类
public AggGen(
String cubeName,
RolapStar star,
RolapStar.Column[] columns)
{
this.cubeName = cubeName;
this.star = star;
this.columns = columns;
init();
}
示例9: getRolapStarColumnName
import mondrian.rolap.RolapStar; //导入方法依赖的package包/类
protected String getRolapStarColumnName(RolapStar.Column rColumn) {
MondrianDef.Expression expr = rColumn.getExpression();
if (expr instanceof MondrianDef.Column) {
MondrianDef.Column cx = (MondrianDef.Column) expr;
return cx.getColumnName();
}
return null;
}
示例10: computeColumnList
import mondrian.rolap.RolapStar; //导入方法依赖的package包/类
private List<RolapStar.Column> computeColumnList(
RolapMember member,
RolapCube baseCube)
{
List<RolapStar.Column> columnList = new ArrayList<RolapStar.Column>();
while (true) {
RolapLevel level = member.getLevel();
RolapStar.Column column = null;
if (level instanceof RolapCubeLevel) {
column = ((RolapCubeLevel)level)
.getBaseStarKeyColumn(baseCube);
} else {
(new Exception()).printStackTrace();
}
if (columnBitKey == null) {
columnBitKey =
BitKey.Factory.makeBitKey(
column.getStar().getColumnCount());
columnBitKey.clear();
}
columnBitKey.set(column.getBitPosition());
columnList.add(0, column);
if (level.isUnique()) {
return columnList;
}
member = member.getParentMember();
}
}
示例11: cloneListWithColumn
import mondrian.rolap.RolapStar; //导入方法依赖的package包/类
protected static List<StarColumnPredicate> cloneListWithColumn(
RolapStar.Column column,
List<StarColumnPredicate> list)
{
List<StarColumnPredicate> newList =
new ArrayList<StarColumnPredicate>(list.size());
for (StarColumnPredicate predicate : list) {
newList.add(predicate.cloneWithColumn(column));
}
return newList;
}
示例12: ListColumnPredicate
import mondrian.rolap.RolapStar; //导入方法依赖的package包/类
/**
* Creates a ListColumnPredicate
*
* @param column Column being constrained
* @param list List of child predicates
*/
public ListColumnPredicate(
RolapStar.Column column,
List<StarColumnPredicate> list)
{
super(column);
this.children = list;
childrenHashMap = null;
hashValue = 0;
}
示例13: GroupingSet
import mondrian.rolap.RolapStar; //导入方法依赖的package包/类
public GroupingSet(
Segment[] segments, BitKey levelBitKey, BitKey measureBitKey,
Aggregation.Axis[] axes, RolapStar.Column[] columns)
{
this.segments = segments;
this.levelBitKey = levelBitKey;
this.measureBitKey = measureBitKey;
this.axes = axes;
this.columns = columns;
}
示例14: getColumn
import mondrian.rolap.RolapStar; //导入方法依赖的package包/类
public AggStar.Table.Column getColumn(final int i) {
RolapStar.Column[] columns = segments[0].aggregation.getColumns();
int bitPos = columns[i].getBitPosition();
AggStar.Table.Column column = aggStar.lookupColumn(bitPos);
// this should never happen
if (column == null) {
LOGGER.error("column null for bitPos=" + bitPos);
}
return column;
}
示例15: computeDistinctColumnNames
import mondrian.rolap.RolapStar; //导入方法依赖的package包/类
private List<String> computeDistinctColumnNames() {
final List<String> columnNames = new ArrayList<String>();
final Set<String> columnNameSet = new HashSet<String>();
final RolapStar.Column[] columns = getColumns();
for (RolapStar.Column column : columns) {
addColumnName(column, columnNames, columnNameSet);
}
addColumnName(request.getMeasure(), columnNames, columnNameSet);
return columnNames;
}