This is an automated email from the ASF dual-hosted git repository.
lzljs3620320 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-paimon.git
The following commit(s) were added to refs/heads/master by this push:
new f23622603 [fs] add fileIo viewfs support (#948)
f23622603 is described below
commit f23622603d47f06aef20cd983ba2583fb22b412e
Author: 吴祥平 <[email protected]>
AuthorDate: Thu Apr 20 12:04:26 2023 +0800
[fs] add fileIo viewfs support (#948)
---
.../paimon/fs/hadoop/HadoopViewFsFileIOLoader.java | 36 ++++++++++++++++++++++
.../services/org.apache.paimon.fs.FileIOLoader | 1 +
2 files changed, 37 insertions(+)
diff --git
a/paimon-common/src/main/java/org/apache/paimon/fs/hadoop/HadoopViewFsFileIOLoader.java
b/paimon-common/src/main/java/org/apache/paimon/fs/hadoop/HadoopViewFsFileIOLoader.java
new file mode 100644
index 000000000..262b7df3a
--- /dev/null
+++
b/paimon-common/src/main/java/org/apache/paimon/fs/hadoop/HadoopViewFsFileIOLoader.java
@@ -0,0 +1,36 @@
+/*
+ * 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.paimon.fs.hadoop;
+
+import org.apache.paimon.fs.FileIOLoader;
+import org.apache.paimon.fs.Path;
+
+/** {@link FileIOLoader} to load {@link HadoopFileIO}. */
+public class HadoopViewFsFileIOLoader implements FileIOLoader {
+
+ @Override
+ public String getScheme() {
+ return "viewfs";
+ }
+
+ @Override
+ public HadoopFileIO load(Path path) {
+ return new HadoopFileIO();
+ }
+}
diff --git
a/paimon-common/src/main/resources/META-INF/services/org.apache.paimon.fs.FileIOLoader
b/paimon-common/src/main/resources/META-INF/services/org.apache.paimon.fs.FileIOLoader
index 053ee9ab0..171d5dea3 100644
---
a/paimon-common/src/main/resources/META-INF/services/org.apache.paimon.fs.FileIOLoader
+++
b/paimon-common/src/main/resources/META-INF/services/org.apache.paimon.fs.FileIOLoader
@@ -15,3 +15,4 @@
org.apache.paimon.fs.local.LocalFileIOLoader
org.apache.paimon.fs.hadoop.HadoopFileIOLoader
+org.apache.paimon.fs.hadoop.HadoopViewFsFileIOLoader