本文整理汇总了Java中org.voltdb.expressions.ConjunctionExpression类的典型用法代码示例。如果您正苦于以下问题:Java ConjunctionExpression类的具体用法?Java ConjunctionExpression怎么用?Java ConjunctionExpression使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ConjunctionExpression类属于org.voltdb.expressions包,在下文中一共展示了ConjunctionExpression类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: debug
import org.voltdb.expressions.ConjunctionExpression; //导入依赖的package包/类
public static String debug(AbstractExpression exp, String spacer) {
assert (exp != null);
final String orig_spacer = spacer;
String name = exp.getClass().getSimpleName();
ExpressionType etype = exp.getExpressionType();
final StringBuilder sb = new StringBuilder();
spacer += " ";
sb.append(spacer).append("ValueType[").append(exp.getValueType()).append("]\n");
if (exp instanceof AggregateExpression) {
// Nothing
} else if (exp instanceof ComparisonExpression) {
name += "[" + etype.name().replace("COMPARE_", "") + "]";
} else if (exp instanceof ConjunctionExpression) {
name += "[" + etype.name().replace("CONJUNCTION_", "") + "]";
} else if (exp instanceof ConstantValueExpression) {
sb.append(spacer).append("Value[").append(((ConstantValueExpression) exp).getValue()).append("]\n");
} else if (exp instanceof InComparisonExpression) {
InComparisonExpression in_exp = (InComparisonExpression) exp;
sb.append(spacer).append("Values[").append(in_exp.getValues().size()).append("]:\n");
for (int ctr = 0, cnt = in_exp.getValues().size(); ctr < cnt; ctr++) {
sb.append(ExpressionUtil.debug(in_exp.getValues().get(ctr), spacer));
} // FOR
} else if (exp instanceof NullValueExpression) {
// Nothing
} else if (exp instanceof OperatorExpression) {
name += "[" + etype.name().replace("OPERATOR_", "") + "]";
} else if (exp instanceof ParameterValueExpression) {
sb.append(spacer).append("Parameter[").append(((ParameterValueExpression) exp).getParameterId()).append("]\n");
} else if (exp instanceof TupleAddressExpression) {
// Nothing
} else if (exp instanceof TupleValueExpression) {
sb.append(spacer).append("Column Reference: ").append("[").append(((TupleValueExpression) exp).getColumnIndex()).append("] ").append(((TupleValueExpression) exp).getTableName())
.append(".").append(((TupleValueExpression) exp).getColumnName()).append(" AS ").append(((TupleValueExpression) exp).getColumnAlias()).append("\n");
}
// Print out all of our children
if (exp.getLeft() != null || exp.getRight() != null) {
sb.append(spacer).append("left: ").append(exp.getLeft() != null ? "\n" + ExpressionUtil.debug(exp.getLeft(), spacer) : null + "\n");
sb.append(spacer).append("right: ").append(exp.getRight() != null ? "\n" + ExpressionUtil.debug(exp.getRight(), spacer) : null + "\n");
}
return (orig_spacer + "+ " + name + "\n" + sb.toString());
}