当前位置: 首页>>代码示例>>Java>>正文


Java CellSetAxisMetaData类代码示例

本文整理汇总了Java中org.olap4j.CellSetAxisMetaData的典型用法代码示例。如果您正苦于以下问题:Java CellSetAxisMetaData类的具体用法?Java CellSetAxisMetaData怎么用?Java CellSetAxisMetaData使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


CellSetAxisMetaData类属于org.olap4j包,在下文中一共展示了CellSetAxisMetaData类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: handleHierInfo

import org.olap4j.CellSetAxisMetaData; //导入依赖的package包/类
protected void handleHierInfo(JRXmlaResultAxis xmlaAxis, CellSetAxisMetaData axisMetaData)
{
	for (Hierarchy h : axisMetaData.getHierarchies())
	{
		String dimName = h.getName(); // Get the Dimension Name

		JRXmlaHierarchy hier = new JRXmlaHierarchy(dimName);
		if (log.isDebugEnabled())
		{
			log.debug("Adding hierarchy: " + dimName);
		}
		xmlaAxis.addHierarchy(hier);
	}
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:15,代码来源:Olap4jXmlaQueryExecuter.java

示例2: getProps

import org.olap4j.CellSetAxisMetaData; //导入依赖的package包/类
@SuppressWarnings("unchecked")
private List<Property> getProps(CellSetAxisMetaData queryAxis) {
   if (queryAxis == null) {
      return defaultProps;
   }
   return CompositeList.of(defaultProps, queryAxis.getProperties());
}
 
开发者ID:OpenlinkFinancial,项目名称:MXMLABridge,代码行数:8,代码来源:MDataSet.java

示例3: getAxisMetaData

import org.olap4j.CellSetAxisMetaData; //导入依赖的package包/类
@Override
public CellSetAxisMetaData getAxisMetaData() {
	return metaData;
}
 
开发者ID:Wondersoft,项目名称:olaper,代码行数:5,代码来源:ServerCellSetAxis.java

示例4: getName

import org.olap4j.CellSetAxisMetaData; //导入依赖的package包/类
public String getName(Object element) {
	return ((CellSetAxisMetaData)element).getAxisOrdinal().name();
}
 
开发者ID:Wondersoft,项目名称:olaper,代码行数:4,代码来源:MetadataUtils.java

示例5: cellSetNamedList

import org.olap4j.CellSetAxisMetaData; //导入依赖的package包/类
public static  NamedList<CellSetAxisMetaData> cellSetNamedList(List<CellSetAxis> list){
	return new CellSetAxisMetaDataNamedList(list);
}
 
开发者ID:Wondersoft,项目名称:olaper,代码行数:4,代码来源:MetadataUtils.java

示例6: getCellSetMetaData

import org.olap4j.CellSetAxisMetaData; //导入依赖的package包/类
public void getCellSetMetaData(final CellSet cellSet) {
	CellSetMetaData cellSetMD = null;
	NamedList<CellSetAxisMetaData> cellSetAxisMD = null;
	NamedList<Property> properties = null;
	Cube cube = null;
	final CellSetAxisMetaData filterAxisMD = null;
	try {
		cellSetMD = cellSet.getMetaData();
		cellSetAxisMD = cellSetMD.getAxesMetaData(); // MAP<K,V>
		properties = cellSetMD.getCellProperties();
		cube = cellSetMD.getCube();
		// print
		// System.out.println("CellSetAxis Meta Data");
		final int m = cellSetAxisMD.size();
		for (int i = 0; i < m; i++) {
			final CellSetAxisMetaData cellMD = cellSetAxisMD.get(i);
			final List<Hierarchy> hierarchy = cellMD.getHierarchies();
			final List<Property> property = cellMD.getProperties();
			// System.out.println("Hierarchy");
			int n = hierarchy.size();
			for (int j = 0; j < n; ++j) {
				System.out.print(hierarchy.get(j).getName() + Strings.TAB);
			}
			// System.out.println("\n Properties");
			n = property.size();
			for (int j = 0; j < n; ++j) {
				System.out.print(property.get(j).getName() + Strings.TAB);
			}

		}
		// System.out.println("\n End Cell Set Meta Data ------------");
		// System.out.println("Cell Set Axis Meta Data:" +
		// cellSetAxisMD.iterator().toString());
		// System.out.println("propertis Meta Data:" +
		// properties.iterator().toString());
		// System.out.println("cubes Meta Data:" + cube.toString());
	} catch (final OlapException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
}
 
开发者ID:gama-platform,项目名称:gama,代码行数:42,代码来源:MdxConnection.java

示例7: getName

import org.olap4j.CellSetAxisMetaData; //导入依赖的package包/类
public String getName(Object axisMetaData) {
    return ((CellSetAxisMetaData)axisMetaData)
        .getAxisOrdinal().name();
}
 
开发者ID:OSBI,项目名称:mondrian,代码行数:5,代码来源:MondrianOlap4jCellSetMetaData.java

示例8: getAxesMetaData

import org.olap4j.CellSetAxisMetaData; //导入依赖的package包/类
public NamedList<CellSetAxisMetaData> getAxesMetaData() {
    return axesMetaData;
}
 
开发者ID:OSBI,项目名称:mondrian,代码行数:4,代码来源:MondrianOlap4jCellSetMetaData.java

示例9: getFilterAxisMetaData

import org.olap4j.CellSetAxisMetaData; //导入依赖的package包/类
public CellSetAxisMetaData getFilterAxisMetaData() {
    return filterAxisMetaData;
}
 
开发者ID:OSBI,项目名称:mondrian,代码行数:4,代码来源:MondrianOlap4jCellSetMetaData.java

示例10: ServerCellSetAxis

import org.olap4j.CellSetAxisMetaData; //导入依赖的package包/类
public ServerCellSetAxis(	CellSet cellSet, 
							Axis ordinal){

	this.ordinal = ordinal;
	this.cellSet = cellSet;
	
	
	this.metaData = new CellSetAxisMetaData(){

		@Override
		public Axis getAxisOrdinal() {
			return ServerCellSetAxis.this.getAxisOrdinal();
		}

		@Override
		public List<Hierarchy> getHierarchies() {
			return ServerCellSetAxis.this.getHierarchies();
		}

		@Override
		public List<Property> getProperties() {
			return Collections.emptyList();
		}
		
	};
	
	
}
 
开发者ID:Wondersoft,项目名称:olaper,代码行数:29,代码来源:ServerCellSetAxis.java


注:本文中的org.olap4j.CellSetAxisMetaData类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。