JingsongLi commented on a change in pull request #12004: URL: https://github.com/apache/flink/pull/12004#discussion_r422753767
########## File path: flink-table/flink-table-runtime-blink/src/main/java/org/apache/flink/table/filesystem/FileSystemOptions.java ########## @@ -0,0 +1,95 @@ +/* + * 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.filesystem; + +import org.apache.flink.configuration.ConfigOption; + +import java.time.Duration; + +import static org.apache.flink.configuration.ConfigOptions.key; + +/** + * This class holds configuration constants used by filesystem(Including hive) connector. + */ +public class FileSystemOptions { + + public static final ConfigOption<Boolean> STREAMING_SOURCE_ENABLE = + key("streaming-source.enable") + .booleanType() + .defaultValue(false) + .withDescription("Enable streaming source or not."); + + public static final ConfigOption<Duration> STREAMING_SOURCE_MONITOR_INTERVAL = + key("streaming-source.monitor-interval") + .durationType() + .defaultValue(Duration.ofMillis(1)) + .withDescription("The minimum interval allowed between consecutive partition/file discovery."); + + public static final ConfigOption<String> STREAMING_SOURCE_CONSUME_ORDER = + key("streaming-source.consume-order") + .stringType() + .defaultValue("create-time") + .withDescription("The consume order of streaming source," + + " support create-time and partition-time." + + " create-time compare partition/file creation time;" + + " partition-time compare time represented by partition name."); + + public static final ConfigOption<String> STREAMING_SOURCE_CONSUME_START_OFFSET = + key("streaming-source.consume-start-offset") + .stringType() + .defaultValue("1970-00-00") + .withDescription("Start offset for streaming consuming." + + " How to parse and compare offsets depends on your order." + + " For create-time and partition-time, should be a timestamp string."); + + public static final ConfigOption<String> PARTITION_TIME_EXTRACTOR_TYPE = + key("partition.time-extractor.type") + .stringType() + .defaultValue("timestamp") + .withDescription("Time extractor to extract time from partition values." + + " Support timestamp and custom." + Review comment: +1 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org