001/* An operator for data sinks.
002 * 
003 * Copyright (c) 2014 The Regents of the University of California.
004 * All rights reserved.
005 *
006 * '$Author: crawl $'
007 * '$Date: 2014-06-05 00:10:40 +0000 (Thu, 05 Jun 2014) $' 
008 * '$Revision: 32755 $'
009 * 
010 * Permission is hereby granted, without written agreement and without
011 * license or royalty fees, to use, copy, modify, and distribute this
012 * software and its documentation for any purpose, provided that the above
013 * copyright notice and the following two paragraphs appear in all copies
014 * of this software.
015 *
016 * IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY
017 * FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
018 * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF
019 * THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF
020 * SUCH DAMAGE.
021 *
022 * THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
023 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
024 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE
025 * PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF
026 * CALIFORNIA HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES,
027 * ENHANCEMENTS, OR MODIFICATIONS.
028 *
029 */
030package org.kepler.spark.operator;
031
032/** An operator for writing data.
033 * 
034 *  @author Daniel Crawl
035 *  @version $Id: DataSink.java 32755 2014-06-05 00:10:40Z crawl $
036 */
037public abstract class DataSink extends Operator {
038
039    /** Create a new DataSink.
040     *  @param numInputs the number of input operators
041     *  @param stub the stub for writing the data.
042     *  @param name the name of the operator.
043     */
044    public DataSink(int numInputs, Object stub, String name) {
045        super(numInputs, stub, name);
046    }
047
048    /** Write the output to the file. */
049    public void writeOutput() throws Exception {
050        _getOutput();
051    }
052
053}