All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alibaba.ververica.connectors.odps.OdpsOptions Maven / Gradle / Ivy

There is a newer version: 1.17-vvr-8.0.8
Show 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 com.alibaba.ververica.connectors.odps;

import org.apache.flink.configuration.ConfigOption;

import static org.apache.flink.configuration.ConfigOptions.key;

/**
 * Odps configs.
 */
public class OdpsOptions {

	public static final ConfigOption END_POINT =
		key("endPoint".toLowerCase()).stringType().noDefaultValue();

	public static final ConfigOption TUNNEL_END_POINT =
		key("tunnelEndPoint".toLowerCase()).stringType().noDefaultValue();

	public static final ConfigOption PROJECT_NAME =
		key("project".toLowerCase()).stringType().noDefaultValue();

	public static final ConfigOption TABLE_NAME =
		key("tableName".toLowerCase()).stringType().noDefaultValue();

	public static final ConfigOption ACCESS_ID =
		key("accessId".toLowerCase()).stringType().noDefaultValue();

	public static final ConfigOption ACCESS_KEY =
		key("accessKey".toLowerCase()).stringType().noDefaultValue();

	public static final ConfigOption PARTITION =
		key("partition".toLowerCase()).stringType().noDefaultValue();

	public static final ConfigOption START_PARTITION =
		key("startPartition".toLowerCase()).stringType().noDefaultValue();

	public static final ConfigOption DYNAMIC_PART_LIMIT =
		key("dynamicPartitionLimit".toLowerCase()).intType().defaultValue(100);

	public static final ConfigOption FLUSH_INTERVAL_MS_CONF =
		key("flushIntervalMs".toLowerCase()).longType().defaultValue(30000L);

	public static final ConfigOption OPTIONAL_CACHE_RELOAD_TIME_BLACKLIST =
		key("cacheReloadTimeBlackList".toLowerCase()).stringType().noDefaultValue();

	public static final ConfigOption SUBSCRIBE_INTERVAL_IN_SEC =
		key("subscribeIntervalInSec".toLowerCase()).intType().defaultValue(30);

	public static final ConfigOption RETRY_TIME =
		key("retryTimes".toLowerCase()).intType().defaultValue(3);

	public static final ConfigOption SLEEP_MILLIS =
		key("sleepMillis".toLowerCase()).intType().defaultValue(1000);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy