samperson1997 commented on a change in pull request #417: [IOTDB-234] Refactor 
TsFile storage on HDFS
URL: https://github.com/apache/incubator-iotdb/pull/417#discussion_r335488952
 
 

 ##########
 File path: 
tsfile/src/main/java/org/apache/iotdb/tsfile/fileSystem/fileInputFactory/HDFSInputFactory.java
 ##########
 @@ -17,36 +17,22 @@
  * under the License.
  */
 
-package org.apache.iotdb.tsfile.fileSystem;
+package org.apache.iotdb.tsfile.fileSystem.fileInputFactory;
 
-import java.io.IOException;
 import java.lang.reflect.InvocationTargetException;
-import java.nio.file.Paths;
-import org.apache.iotdb.tsfile.common.conf.TSFileDescriptor;
-import org.apache.iotdb.tsfile.read.reader.DefaultTsFileInput;
 import org.apache.iotdb.tsfile.read.reader.TsFileInput;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public enum FileInputFactory {
+public class HDFSInputFactory implements FileInputFactory {
 
-  INSTANCE;
-
-  private static FSType fsType = 
TSFileDescriptor.getInstance().getConfig().getTSFileStorageFs();
-  private static final Logger logger = 
LoggerFactory.getLogger(FileInputFactory.class);
+  private static final Logger logger = 
LoggerFactory.getLogger(HDFSInputFactory.class);
   private static Class<?> clazz;
 
 Review comment:
   Sorry for the inconsideration! I have fixed it.

----------------------------------------------------------------
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


With regards,
Apache Git Services

Reply via email to