本文整理了Java中com.facebook.presto.sql.tree.Union.isDistinct()
方法的一些代码示例,展示了Union.isDistinct()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Union.isDistinct()
方法的具体详情如下:
包路径:com.facebook.presto.sql.tree.Union
类名称:Union
方法名:isDistinct
暂无
代码示例来源:origin: prestodb/presto
@Override
public int hashCode()
{
return Objects.hash(relations, isDistinct());
}
}
代码示例来源:origin: prestodb/presto
@Override
public boolean equals(Object obj)
{
if (this == obj) {
return true;
}
if ((obj == null) || (getClass() != obj.getClass())) {
return false;
}
Union o = (Union) obj;
return Objects.equals(relations, o.relations) &&
Objects.equals(isDistinct(), o.isDistinct());
}
代码示例来源:origin: prestodb/presto
@Override
public String toString()
{
return toStringHelper(this)
.add("relations", relations)
.add("distinct", isDistinct())
.toString();
}
代码示例来源:origin: prestodb/presto
@Override
protected Void visitUnion(Union node, Integer indent)
{
Iterator<Relation> relations = node.getRelations().iterator();
while (relations.hasNext()) {
processRelation(relations.next(), indent);
if (relations.hasNext()) {
builder.append("UNION ");
if (!node.isDistinct()) {
builder.append("ALL ");
}
}
}
return null;
}
代码示例来源:origin: prestodb/presto
@Override
protected RelationPlan visitUnion(Union node, Void context)
{
checkArgument(!node.getRelations().isEmpty(), "No relations specified for UNION");
SetOperationPlan setOperationPlan = process(node);
PlanNode planNode = new UnionNode(idAllocator.getNextId(), setOperationPlan.getSources(), setOperationPlan.getSymbolMapping(), ImmutableList.copyOf(setOperationPlan.getSymbolMapping().keySet()));
if (node.isDistinct()) {
planNode = distinct(planNode);
}
return new RelationPlan(planNode, analysis.getScope(node), planNode.getOutputSymbols());
}
代码示例来源:origin: rakam-io/rakam
@Override
protected Void visitUnion(Union node, Integer indent) {
Iterator<Relation> relations = node.getRelations().iterator();
while (relations.hasNext()) {
processRelation(relations.next(), indent);
if (relations.hasNext()) {
builder.append("UNION ");
if (!node.isDistinct()) {
builder.append("ALL ");
}
}
}
return null;
}
代码示例来源:origin: com.facebook.presto/presto-parser
@Override
public int hashCode()
{
return Objects.hash(relations, isDistinct());
}
}
代码示例来源:origin: com.facebook.presto/presto-parser
@Override
public boolean equals(Object obj)
{
if (this == obj) {
return true;
}
if ((obj == null) || (getClass() != obj.getClass())) {
return false;
}
Union o = (Union) obj;
return Objects.equals(relations, o.relations) &&
Objects.equals(isDistinct(), o.isDistinct());
}
代码示例来源:origin: com.facebook.presto/presto-parser
@Override
public String toString()
{
return toStringHelper(this)
.add("relations", relations)
.add("distinct", isDistinct())
.toString();
}
代码示例来源:origin: com.facebook.presto/presto-parser
@Override
protected Void visitUnion(Union node, Integer indent)
{
Iterator<Relation> relations = node.getRelations().iterator();
while (relations.hasNext()) {
processRelation(relations.next(), indent);
if (relations.hasNext()) {
builder.append("UNION ");
if (!node.isDistinct()) {
builder.append("ALL ");
}
}
}
return null;
}
代码示例来源:origin: uk.co.nichesolutions.presto/presto-parser
@Override
protected Void visitUnion(Union node, Integer indent)
{
Iterator<Relation> relations = node.getRelations().iterator();
while (relations.hasNext()) {
processRelation(relations.next(), indent);
if (relations.hasNext()) {
builder.append("UNION ");
if (!node.isDistinct()) {
builder.append("ALL ");
}
}
}
return null;
}
代码示例来源:origin: vqtran/EchoQuery
@Override
protected Void visitUnion(Union node, Integer indent)
{
Iterator<Relation> relations = node.getRelations().iterator();
while (relations.hasNext()) {
processRelation(relations.next(), indent);
if (relations.hasNext()) {
builder.append("UNION ");
if (!node.isDistinct()) {
builder.append("ALL ");
}
}
}
return null;
}
代码示例来源:origin: uk.co.nichesolutions.presto/presto-main
if (node.isDistinct()) {
planNode = distinct(planNode);
内容来源于网络,如有侵权,请联系作者删除!