
org.apache.flink.table.delegation.ExecutorFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of flink-table-api-java Show documentation
Show all versions of flink-table-api-java Show documentation
This module contains the Table/SQL API for writing table programs
within the table ecosystem using the Java programming language.
The newest version!
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 org.apache.flink.table.delegation;
import org.apache.flink.annotation.Internal;
import org.apache.flink.table.factories.ComponentFactory;
import java.util.Map;
/**
* Factory that creates {@link Executor}.
*
* This factory is used with Java's Service Provider Interfaces (SPI) for discovering. A factory is
* called with a set of normalized properties that describe the desired configuration. Those properties
* may include execution configurations such as watermark interval, max parallelism etc., table specific
* initialization configuration such as if the queries should be executed in batch mode.
*
*
Important: The implementations of this interface should also implement method
*
{@code public Executor create(Map properties, StreamExecutionEnvironment executionEnvironment);}
*
This method will be used when instantiating a {@link org.apache.flink.table.api.TableEnvironment} from a
* bridging module which enables conversion from/to {@code DataStream} API and requires a pre configured
* {@code StreamTableEnvironment}.
*/
@Internal
public interface ExecutorFactory extends ComponentFactory {
/**
* Creates a corresponding {@link Executor}.
*
* @param properties Static properties of the {@link Executor}, the same that were used for factory lookup.
* @return instance of a {@link Executor}
*/
Executor create(Map properties);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy