本文整理汇总了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);
}
}
示例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());
}
示例3: getAxisMetaData
import org.olap4j.CellSetAxisMetaData; //导入依赖的package包/类
@Override
public CellSetAxisMetaData getAxisMetaData() {
return metaData;
}
示例4: getName
import org.olap4j.CellSetAxisMetaData; //导入依赖的package包/类
public String getName(Object element) {
return ((CellSetAxisMetaData)element).getAxisOrdinal().name();
}
示例5: cellSetNamedList
import org.olap4j.CellSetAxisMetaData; //导入依赖的package包/类
public static NamedList<CellSetAxisMetaData> cellSetNamedList(List<CellSetAxis> list){
return new CellSetAxisMetaDataNamedList(list);
}
示例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();
}
}
示例7: getName
import org.olap4j.CellSetAxisMetaData; //导入依赖的package包/类
public String getName(Object axisMetaData) {
return ((CellSetAxisMetaData)axisMetaData)
.getAxisOrdinal().name();
}
示例8: getAxesMetaData
import org.olap4j.CellSetAxisMetaData; //导入依赖的package包/类
public NamedList<CellSetAxisMetaData> getAxesMetaData() {
return axesMetaData;
}
示例9: getFilterAxisMetaData
import org.olap4j.CellSetAxisMetaData; //导入依赖的package包/类
public CellSetAxisMetaData getFilterAxisMetaData() {
return filterAxisMetaData;
}
示例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();
}
};
}