gpt4 book ai didi

org.apache.lens.api.metastore.XJoinChains类的使用及代码示例

转载 作者:知者 更新时间:2024-03-20 15:09:40 27 4
gpt4 key购买 nike

本文整理了Java中org.apache.lens.api.metastore.XJoinChains类的一些代码示例,展示了XJoinChains类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XJoinChains类的具体详情如下:
包路径:org.apache.lens.api.metastore.XJoinChains
类名称:XJoinChains

XJoinChains介绍

[英]Set of join chains.

Java class for x_join_chains complex type.

The following schema fragment specifies the expected content contained within this class.

<complexType name="x_join_chains"> 
<complexContent> 
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 
<sequence> 
<element name="join_chain" type="{uri:lens:cube:0.1}x_join_chain" maxOccurs="unbounded" minOccurs="0"/> 
</sequence> 
</restriction> 
</complexContent> 
</complexType>

[中]一组连接链。
x_join_chains复杂类型的Java类。
以下架构片段指定了该类中包含的预期内容。

<complexType name="x_join_chains"> 
<complexContent> 
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 
<sequence> 
<element name="join_chain" type="{uri:lens:cube:0.1}x_join_chain" maxOccurs="unbounded" minOccurs="0"/> 
</sequence> 
</restriction> 
</complexContent> 
</complexType>

代码示例

代码示例来源:origin: org.apache.lens/lens-api

public XJoinChains withJoinChain(XJoinChain... values) {
  if (values!= null) {
    for (XJoinChain value: values) {
      getJoinChain().add(value);
    }
  }
  return this;
}

代码示例来源:origin: org.apache.lens/lens-api

/**
 * Create an instance of {@link XJoinChains }
 * 
 */
public XJoinChains createXJoinChains() {
  return new XJoinChains();
}

代码示例来源:origin: org.apache.lens/lens-api

public String toString() {
  final ToStringStrategy strategy = new YAMLToStringStrategy();
  final StringBuilder buffer = new StringBuilder();
  append(null, buffer, strategy);
  return buffer.toString();
}

代码示例来源:origin: apache/lens

@Override
public XJoinChains getAllJoinChains(LensSessionHandle sessionHandle, String tableName) throws LensException {
 try (SessionContext ignored = new SessionContext(sessionHandle)){
  CubeMetastoreClient client = getClient(sessionHandle);
  Set<JoinChain> chains;
  if (client.isCube(tableName)) {
   chains = client.getCube(tableName).getJoinChains();
  } else if (client.isDimension(tableName)) {
   chains = client.getDimension(tableName).getJoinChains();
  } else {
   throw new BadRequestException("Can't get join chains. '"
    + tableName + "' is neither a cube nor a dimension");
  }
  XJoinChains xJoinChains = new XJoinChains();
  List<XJoinChain> joinChains = xJoinChains.getJoinChain();
  if (chains != null) {
   for (JoinChain chain : chains) {
    joinChains.add(JAXBUtils.getXJoinChainFromJoinChain(chain));
   }
  }
  return xJoinChains;
 }
}

代码示例来源:origin: org.apache.lens/lens-api

public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
  strategy.appendStart(locator, this, buffer);
  appendFields(locator, buffer, strategy);
  strategy.appendEnd(locator, this, buffer);
  return buffer;
}

代码示例来源:origin: org.apache.lens/lens-api

public int hashCode() {
  final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
  return this.hashCode(null, strategy);
}

代码示例来源:origin: org.apache.lens/lens-api

public boolean equals(Object object) {
  final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
  return equals(null, null, object, strategy);
}

代码示例来源:origin: org.apache.lens/lens-cube

public static XDimension xdimensionFromDimension(Dimension dimension) {
 XDimension xd = XCF.createXDimension();
 xd.setName(dimension.getName());
 xd.setAttributes(new XDimAttributes());
 xd.setExpressions(new XExpressions());
 xd.setJoinChains(new XJoinChains());
 xd.setProperties(new XProperties());
 xd.getProperties().getProperty().addAll(xPropertiesFromMap(((AbstractCubeTable) dimension).getProperties()));
 for (CubeDimAttribute cd : dimension.getAttributes()) {
  xd.getAttributes().getDimAttribute().add(xDimAttrFromHiveDimAttr(cd, dimension));
 }
 for (ExprColumn ec : dimension.getExpressions()) {
  xd.getExpressions().getExpression().add(xExprColumnFromHiveExprColumn(ec));
 }
 for (JoinChain jc : dimension.getJoinChains()) {
  xd.getJoinChains().getJoinChain().add(getXJoinChainFromJoinChain(jc));
 }
 return xd;
}

代码示例来源:origin: apache/lens

public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
  strategy.appendStart(locator, this, buffer);
  appendFields(locator, buffer, strategy);
  strategy.appendEnd(locator, this, buffer);
  return buffer;
}

代码示例来源:origin: apache/lens

public int hashCode() {
  final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
  return this.hashCode(null, strategy);
}

代码示例来源:origin: apache/lens

public boolean equals(Object object) {
  final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
  return equals(null, null, object, strategy);
}

代码示例来源:origin: apache/lens

public static XDimension xdimensionFromDimension(Dimension dimension) {
 XDimension xd = XCF.createXDimension();
 xd.setName(dimension.getName());
 xd.setAttributes(new XDimAttributes());
 xd.setExpressions(new XExpressions());
 xd.setJoinChains(new XJoinChains());
 xd.setProperties(new XProperties());
 xd.getProperties().getProperty().addAll(xPropertiesFromMap(((AbstractCubeTable) dimension).getProperties()));
 for (CubeDimAttribute cd : dimension.getAttributes()) {
  xd.getAttributes().getDimAttribute().add(xDimAttrFromHiveDimAttr(cd, dimension));
 }
 for (ExprColumn ec : dimension.getExpressions()) {
  xd.getExpressions().getExpression().add(xExprColumnFromHiveExprColumn(ec));
 }
 for (JoinChain jc : dimension.getJoinChains()) {
  xd.getJoinChains().getJoinChain().add(getXJoinChainFromJoinChain(jc));
 }
 return xd;
}

代码示例来源:origin: apache/lens

public XJoinChains withJoinChain(XJoinChain... values) {
  if (values!= null) {
    for (XJoinChain value: values) {
      getJoinChain().add(value);
    }
  }
  return this;
}

代码示例来源:origin: apache/lens

/**
 * Create an instance of {@link XJoinChains }
 * 
 */
public XJoinChains createXJoinChains() {
  return new XJoinChains();
}

代码示例来源:origin: apache/lens

public String toString() {
  final ToStringStrategy strategy = new YAMLToStringStrategy();
  final StringBuilder buffer = new StringBuilder();
  append(null, buffer, strategy);
  return buffer.toString();
}

代码示例来源:origin: org.apache.lens/lens-cube

xbc.setDimAttributes(new XDimAttributes());
xbc.setExpressions(new XExpressions());
xbc.setJoinChains(new XJoinChains());
xc = xbc;
for (CubeMeasure cm : c.getMeasures()) {
 xbc.getJoinChains().getJoinChain().add(getXJoinChainFromJoinChain(jc));

代码示例来源:origin: org.apache.lens/lens-api

public XJoinChains withJoinChain(Collection<XJoinChain> values) {
  if (values!= null) {
    getJoinChain().addAll(values);
  }
  return this;
}

代码示例来源:origin: apache/lens

dimension.setJoinChains(new XJoinChains());
dimension.setProperties(new XProperties().withProperty(
 new XProperty().withName(MetastoreUtil.getDimTimedDimensionKey(dimName)).withValue("dt"))

代码示例来源:origin: apache/lens

xbc.setDimAttributes(new XDimAttributes());
xbc.setExpressions(new XExpressions());
xbc.setJoinChains(new XJoinChains());
xc = xbc;
for (CubeMeasure cm : c.getMeasures()) {
 xbc.getJoinChains().getJoinChain().add(getXJoinChainFromJoinChain(jc));

代码示例来源:origin: apache/lens

public XJoinChains withJoinChain(Collection<XJoinChain> values) {
  if (values!= null) {
    getJoinChain().addAll(values);
  }
  return this;
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com