package org.aksw.sparqlify.algebra.sql.nodes;

import java.util.ArrayList;
import java.util.List;

import org.aksw.sparqlify.core.sql.schema.Schema;

public abstract class SqlOpBase2
	extends SqlOpBase
{
	protected SqlOp left;
	protected SqlOp right;

	public SqlOpBase2(Schema schema, SqlOp left, SqlOp right) {
		super(schema);
		this.left = left;
		this.right = right;
	}
	
	public SqlOp getLeft() {
		return left;
	}
	
	public SqlOp getRight() {
		return right;
	}

	@Override
	public List<SqlOp> getSubOps() {
		List<SqlOp> result = new ArrayList<SqlOp>(2);
		result.add(left);
		result.add(right);
		
		return result;
	}
}
