CalvinKirs commented on code in PR #63400: URL: https://github.com/apache/doris/pull/63400#discussion_r3361954816
########## fe/fe-filesystem/fe-filesystem-spi/src/main/java/org/apache/doris/filesystem/spi/ObjectStorageFileSystem.java: ########## @@ -0,0 +1,1086 @@ +// 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.doris.filesystem.spi; + +import org.apache.doris.filesystem.DorisInputFile; +import org.apache.doris.filesystem.DorisInputStream; +import org.apache.doris.filesystem.DorisOutputFile; +import org.apache.doris.filesystem.FileEntry; +import org.apache.doris.filesystem.FileIterator; +import org.apache.doris.filesystem.GlobListing; +import org.apache.doris.filesystem.Location; + +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +import java.nio.file.FileAlreadyExistsException; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.regex.Pattern; + +/* Object-storage-backed FileSystem implementation for the Doris FE filesystem SPI. + * Does not depend on fe-core, fe-common, or fe-catalog. + */ +public class ObjectStorageFileSystem extends ObjFileSystem { Review Comment: On abstract: agreed — it's never instantiated directly (only extended by S3/OSS/OBS/COS), so I've made it abstract. On the rename to S3CompatibleFileSystem: I'd prefer to keep ObjectStorageFileSystem to avoid baking "S3" into a type that several non-S3-branded backends share, but I've clarified the role in the class Javadoc per the thread above. -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
