Java Code Examples for org.apache.flink.table.api.TableConfig#getDefault()

The following examples show how to use org.apache.flink.table.api.TableConfig#getDefault() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ExecutionContext.java    From flink with Apache License 2.0 5 votes vote down vote up
private static TableEnvironment createStreamTableEnvironment(
		StreamExecutionEnvironment env,
		EnvironmentSettings settings,
		Executor executor) {

	final TableConfig config = TableConfig.getDefault();

	final CatalogManager catalogManager = new CatalogManager(
		settings.getBuiltInCatalogName(),
		new GenericInMemoryCatalog(settings.getBuiltInCatalogName(), settings.getBuiltInDatabaseName()));

	final FunctionCatalog functionCatalog = new FunctionCatalog(catalogManager);

	final Map<String, String> plannerProperties = settings.toPlannerProperties();
	final Planner planner = ComponentFactoryService.find(PlannerFactory.class, plannerProperties)
		.create(plannerProperties, executor, config, functionCatalog, catalogManager);

	return new StreamTableEnvironmentImpl(
		catalogManager,
		functionCatalog,
		config,
		env,
		planner,
		executor,
		settings.isStreamingMode()
	);
}
 
Example 2
Source File: FunctionCatalogTest.java    From flink with Apache License 2.0 5 votes vote down vote up
@Before
public void init() {
	catalog = new GenericInMemoryCatalog(
		DEFAULT_CATALOG,
		DEFAULT_DATABASE);

	moduleManager = new ModuleManager();

	functionCatalog = new FunctionCatalog(
		TableConfig.getDefault(),
		CatalogManagerMocks.preparedCatalogManager()
			.defaultCatalog(DEFAULT_CATALOG, catalog)
			.build(),
		moduleManager);
}
 
Example 3
Source File: TableEnvironmentMock.java    From flink with Apache License 2.0 4 votes vote down vote up
private static TableConfig createTableConfig() {
	return TableConfig.getDefault();
}
 
Example 4
Source File: TableEnvironmentMock.java    From flink with Apache License 2.0 4 votes vote down vote up
private static TableConfig createTableConfig() {
	return TableConfig.getDefault();
}