public LogicalNode visitAlterTablespace(PlanContext context, Stack<Expr> stack, AlterTablespace alterTablespace) { AlterTablespaceNode alter = context.queryBlock.getNodeFromExpr(alterTablespace); alter.setTablespaceName(alterTablespace.getTablespaceName()); alter.setLocation(alterTablespace.getLocation()); return alter; }
public LogicalNode visitAlterTablespace(PlanContext context, Stack<Expr> stack, AlterTablespace alterTablespace) { AlterTablespaceNode alter = context.queryBlock.getNodeFromExpr(alterTablespace); alter.setTablespaceName(alterTablespace.getTablespaceName()); alter.setLocation(alterTablespace.getLocation()); return alter; }
private static AlterTablespaceNode convertAlterTablespace(PlanProto.LogicalNode protoNode) { AlterTablespaceNode alterTablespace = new AlterTablespaceNode(protoNode.getNodeId()); PlanProto.AlterTablespaceNode alterTablespaceProto = protoNode.getAlterTablespace(); alterTablespace.setTablespaceName(alterTablespaceProto.getTableSpaceName()); switch (alterTablespaceProto.getSetType()) { case LOCATION: alterTablespace.setLocation(alterTablespaceProto.getSetLocation().getLocation()); break; default: throw new TajoRuntimeException( new NotImplementedException("Unknown SET type in ALTER TABLE: " + alterTablespaceProto.getSetType().name())); } return alterTablespace; }
private static AlterTablespaceNode convertAlterTablespace(PlanProto.LogicalNode protoNode) { AlterTablespaceNode alterTablespace = new AlterTablespaceNode(protoNode.getNodeId()); PlanProto.AlterTablespaceNode alterTablespaceProto = protoNode.getAlterTablespace(); alterTablespace.setTablespaceName(alterTablespaceProto.getTableSpaceName()); switch (alterTablespaceProto.getSetType()) { case LOCATION: alterTablespace.setLocation(alterTablespaceProto.getSetLocation().getLocation()); break; default: throw new TajoRuntimeException( new NotImplementedException("Unknown SET type in ALTER TABLE: " + alterTablespaceProto.getSetType().name())); } return alterTablespace; }