/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.facebook.presto.operator;

import com.facebook.presto.spi.type.Type;

import java.util.List;

public interface OperatorFactory
{
    List<Type> getTypes();

    Operator createOperator(DriverContext driverContext);

    void noMoreOperators();

    OperatorFactory duplicate();
}

@@ -779,24 +779,295 @@
 rContext);%0A%0A
+    /**%0A     * Declare that createOperator will not be called any more and release%0A     * any resources associated with this factory.%0A     * %3Cp%3E%0A     * This method will be called only once.%0A     * Implementation doesn't need to worry about duplicate invocations.%0A     */%0A
     void noM

Document guarantee on invocation of OperatorFactory.noMoreOperators